diff --git a/src/index.html b/src/index.html index e0d598b..58e67fb 100644 --- a/src/index.html +++ b/src/index.html @@ -1593,6 +1593,24 @@ .previewActionsRow > #nostrPreviewActions[data-visible="false"] { display:none; } .previewActionsRow button { font-size:.78rem; padding:5px 10px; line-height:1.2; white-space:nowrap; } + .toastStack { position:fixed; bottom:20px; right:20px; z-index:2000; display:flex; flex-direction:column; gap:8px; pointer-events:none; max-width:calc(100vw - 40px); } + .toast { background:var(--panel); color:var(--ink); border:1px solid var(--line); border-radius:8px; padding:10px 36px 10px 14px; max-width:380px; box-shadow:0 6px 18px rgba(0,0,0,.3); font-size:.85rem; pointer-events:auto; position:relative; line-height:1.35; animation:toastIn .18s ease-out; } + .toast.toast-error { border-left:3px solid var(--warn); } + .toast.toast-success { border-left:3px solid var(--accent); } + .toast.toast-info { border-left:3px solid var(--muted); } + .toast .toastClose { position:absolute; top:6px; right:6px; width:22px; height:22px; border:0; background:transparent; color:var(--muted); cursor:pointer; font-size:16px; line-height:1; padding:0; border-radius:4px; } + .toast .toastClose:hover { background:rgba(127,127,127,.15); color:var(--ink); } + .toast.toastOut { opacity:0; transition:opacity .2s; } + @keyframes toastIn { from { transform:translateY(8px); opacity:0; } to { transform:translateY(0); opacity:1; } } + + .publishConfirmPreview { background:var(--bg); border:1px solid var(--line); border-radius:8px; padding:10px; margin:0 0 12px; display:flex; justify-content:center; align-items:center; max-height:280px; overflow:hidden; } + .publishConfirmPreview > * { max-width:100%; max-height:260px; } + .publishConfirmMeta { margin:0 0 12px; font-size:.82rem; } + .publishConfirmMetaRow { display:flex; gap:10px; padding:5px 0; border-bottom:1px solid var(--line); } + .publishConfirmMetaRow:last-child { border-bottom:0; } + .publishConfirmMetaRow dt { min-width:108px; font-weight:600; color:var(--muted); margin:0; } + .publishConfirmMetaRow dd { margin:0; flex:1; word-break:break-word; color:var(--ink); } + .editingBanner { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:8px 14px; background:rgba(251,191,36,.12); border-bottom:1px solid rgba(251,191,36,.4); font-size:.85rem; color:#92400e; flex-wrap:wrap; } body.dark .editingBanner { background:rgba(251,191,36,.1); color:#fbbf24; } .editingBannerText { flex:1; min-width:0; } @@ -2807,6 +2825,24 @@ +
+ + +