diff --git a/ts/index.html b/ts/index.html index 1618acb..7bde6fb 100644 --- a/ts/index.html +++ b/ts/index.html @@ -25,7 +25,6 @@ font-size: 12px } - /* TOP BAR */ #topbar { height: 36px; background: #1a1a1a; @@ -97,14 +96,16 @@ background: #2a2a2a } - /* MAIN */ + .dirty { + color: #886622 !important + } + #main { flex: 1; display: flex; min-height: 0 } - /* LEFT */ #left { width: 48%; border-right: 1px solid #1e1e1e; @@ -140,7 +141,13 @@ text-transform: uppercase } - /* SECTION META */ + #demo-btns { + display: flex; + flex-wrap: wrap; + gap: 5px; + margin-top: 6px + } + #sec-meta { background: #141414; border: 1px solid #1e1e1e; @@ -185,7 +192,6 @@ cursor: pointer } - /* RIGHT */ #right { flex: 1; display: flex; @@ -213,38 +219,6 @@ text-transform: uppercase } - .rh-btn { - background: transparent; - color: #444; - border: 1px solid #252525; - border-radius: 3px; - padding: 2px 8px; - font-family: monospace; - font-size: 11px; - cursor: pointer; - display: flex; - align-items: center; - gap: 4px; - white-space: nowrap - } - - .rh-btn:hover { - color: #aaa; - border-color: #3a3a3a; - background: #1a1a1a - } - - .rh-btn svg { - width: 11px; - height: 11px; - stroke: currentColor; - fill: none; - stroke-width: 2; - stroke-linecap: round; - stroke-linejoin: round - } - - /* SECTIONS SCROLL */ #sections-wrap { flex: 1; overflow-y: auto; @@ -259,7 +233,7 @@ line-height: 2 } - /* SECTION CARD */ + /* section card */ .sec-card { border: 1px solid #222; border-radius: 3px; @@ -278,7 +252,8 @@ padding: 6px 8px; cursor: pointer; user-select: none; - background: #161616 + background: #161616; + position: relative } .sec-hdr:hover { @@ -317,24 +292,26 @@ flex-shrink: 0 } - .sec-del { + /* red × — section & element */ + .x-btn { background: none; border: none; color: #2a2a2a; cursor: pointer; font-size: 15px; line-height: 1; - padding: 1px 4px; + padding: 2px 5px; border-radius: 2px; - flex-shrink: 0 + flex-shrink: 0; + transition: color .1s, background .1s } - .sec-del:hover { - color: #cc3333; + .x-btn:hover { + color: #ff4444; background: #1e1010 } - /* ELEMENT LIST */ + /* element */ .el-list { background: #0f0f0f; border-top: 1px solid #1c1c1c; @@ -382,25 +359,13 @@ .el-name { flex: 1; color: #555; - font-size: 11px - } - - .el-del { - background: none; - border: none; - color: #252525; - cursor: pointer; - font-size: 13px; - line-height: 1; - padding: 2px 4px; - border-radius: 2px - } - - .el-del:hover { - color: #cc3333 + font-size: 11px; + overflow: hidden; + text-overflow: ellipsis; + white-space: nowrap; + max-width: 120px } - /* FIELDS */ .el-fields { padding: 6px 8px 8px; border-top: 1px solid #1a1a1a; @@ -488,6 +453,70 @@ color: #888; border-color: #444 } + + /* confirm dialog */ + #confirm-overlay { + display: none; + position: fixed; + inset: 0; + background: rgba(0, 0, 0, .6); + z-index: 100; + align-items: center; + justify-content: center + } + + #confirm-overlay.show { + display: flex + } + + #confirm-box { + background: #1a1a1a; + border: 1px solid #333; + border-radius: 4px; + padding: 20px 24px; + max-width: 340px; + width: 90%; + display: flex; + flex-direction: column; + gap: 14px + } + + #confirm-msg { + color: #aaa; + font-size: 12px; + line-height: 1.6 + } + + #confirm-btns { + display: flex; + gap: 8px; + justify-content: flex-end + } + + .cb { + background: #161616; + color: #888; + border: 1px solid #2d2d2d; + border-radius: 3px; + padding: 4px 14px; + font-family: monospace; + font-size: 11px; + cursor: pointer + } + + .cb:hover { + background: #222; + color: #bbb + } + + .cb.primary { + border-color: #2b3d2b; + color: #33ff66 + } + + .cb.primary:hover { + background: #182018 + } @@ -525,16 +554,13 @@