feat: red text and border on every close button

This commit is contained in:
redtea committed 2026-10-14 16:15:03 +03:00
1 parent 68ede6ab25
commit 2db44e53f7
3 files changed
+7 -5

No files matched your search

+3
View File
@@ -62,6 +62,9 @@ button, .btn {
button:hover, .btn:hover { background: var(--accent-hover); text-decoration: none; } button:hover, .btn:hover { background: var(--accent-hover); text-decoration: none; }
.btn.ghost { background: transparent; border: 1px solid var(--border); color: var(--text); } .btn.ghost { background: transparent; border: 1px solid var(--border); color: var(--text); }
.btn.danger { background: var(--danger); } .btn.danger { background: var(--danger); }
/* Close buttons: red text and border on the ghost button. */
.btn.close, .btn.ghost.close { background: transparent; border: 1px solid rgba(255, 92, 92, .6); color: var(--danger); }
.btn.close:hover, .btn.ghost.close:hover { background: #3a1d1d; border-color: var(--danger); }
.btn.small { padding: 6px 10px; font-size: 13px; } .btn.small { padding: 6px 10px; font-size: 13px; }
.btn.icon { width: 30px; height: 30px; padding: 0; display: inline-flex; .btn.icon { width: 30px; height: 30px; padding: 0; display: inline-flex;
align-items: center; justify-content: center; font-size: 14px; line-height: 1; text-decoration: none; } align-items: center; justify-content: center; font-size: 14px; line-height: 1; text-decoration: none; }
+3 -4
View File
@@ -90,7 +90,6 @@
display:inline-flex; align-items:center; justify-content:center; } display:inline-flex; align-items:center; justify-content:center; }
.find button.tg { background:transparent; border:1px solid var(--border); color:var(--muted); font-family:ui-monospace,Menlo,monospace; } .find button.tg { background:transparent; border:1px solid var(--border); color:var(--muted); font-family:ui-monospace,Menlo,monospace; }
.find button.tg.on { border-color:var(--accent); color:var(--text); background:#12202f; } .find button.tg.on { border-color:var(--accent); color:var(--text); background:#12202f; }
.find .fx { color:var(--danger); }
.find #frow2, .find #frow2b { grid-row:2; } .find #frow2, .find #frow2b { grid-row:2; }
/* Documents and tables, drawn in the panel's colours. */ /* Documents and tables, drawn in the panel's colours. */
.vdoc { height:75vh; overflow:auto; background:#0c0f13; border-radius:0 0 12px 12px; } .vdoc { height:75vh; overflow:auto; background:#0c0f13; border-radius:0 0 12px 12px; }
@@ -219,7 +218,7 @@
<button class="btn ghost small" id="vtext" hidden>Редактировать</button> <button class="btn ghost small" id="vtext" hidden>Редактировать</button>
<button class="btn ghost small" id="vhex" hidden>Редактировать бинарно</button> <button class="btn ghost small" id="vhex" hidden>Редактировать бинарно</button>
<button class="btn small" id="save" hidden>Сохранить</button> <button class="btn small" id="save" hidden>Сохранить</button>
<button class="btn ghost small" id="closev">Закрыть</button> <button class="btn ghost small close" id="closev">Закрыть</button>
<div class="vmsg muted" id="vmsg"></div> <div class="vmsg muted" id="vmsg"></div>
</div> </div>
<div class="vbody"> <div class="vbody">
@@ -234,7 +233,7 @@
<button type="button" class="btn ghost" id="fnext" title="Следующее (Enter)" aria-label="Следующее"> <button type="button" class="btn ghost" id="fnext" title="Следующее (Enter)" aria-label="Следующее">
<svg width="12" height="12" viewBox="0 0 12 12"><path d="M6 9.5 1 2.5h10z" fill="currentColor"/></svg> <svg width="12" height="12" viewBox="0 0 12 12"><path d="M6 9.5 1 2.5h10z" fill="currentColor"/></svg>
</button> </button>
<button type="button" class="btn ghost fx" id="fclose" title="Закрыть поиск (Esc)" aria-label="Закрыть поиск"> <button type="button" class="btn ghost close" id="fclose" title="Закрыть поиск (Esc)" aria-label="Закрыть поиск">
<svg width="13" height="13" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round"><path d="M18 6 6 18M6 6l12 12"/></svg> <svg width="13" height="13" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round"><path d="M18 6 6 18M6 6l12 12"/></svg>
</button> </button>
</div> </div>
@@ -254,7 +253,7 @@
<dialog id="updlg"> <dialog id="updlg">
<div class="dlg-h"> <div class="dlg-h">
<strong style="flex:1">Загрузка файлов</strong> <strong style="flex:1">Загрузка файлов</strong>
<button class="btn ghost small" id="updlg-close">Закрыть</button> <button class="btn ghost small close" id="updlg-close">Закрыть</button>
</div> </div>
<div class="dlg-b" id="updlg-list"></div> <div class="dlg-b" id="updlg-list"></div>
</dialog> </dialog>
+1 -1
View File
@@ -54,7 +54,7 @@
<button type="button" data-a="copy">Копировать</button> <button type="button" data-a="copy">Копировать</button>
<button type="button" class="btn ghost" data-a="paste">Вставить</button> <button type="button" class="btn ghost" data-a="paste">Вставить</button>
<button type="button" class="btn ghost" data-a="all">Всё</button> <button type="button" class="btn ghost" data-a="all">Всё</button>
<button type="button" class="btn ghost" data-a="close" aria-label="Закрыть">×</button> <button type="button" class="btn ghost close" data-a="close" aria-label="Закрыть">×</button>
</div> </div>
<div class="keys" id="keys"> <div class="keys" id="keys">
<button type="button" data-k="esc">ESC</button> <button type="button" data-k="esc">ESC</button>