From 8d65b877ddcd23e422cdd1270e71430c4bfba533 Mon Sep 17 00:00:00 2001 From: Al Azhar Date: Mon, 27 Apr 2026 21:34:30 +0700 Subject: [PATCH] rev1.3 --- index.html | 210 ++++++++++++++++++++++++++++++----------------------- 1 file changed, 118 insertions(+), 92 deletions(-) diff --git a/index.html b/index.html index 427327e..825fd29 100644 --- a/index.html +++ b/index.html @@ -4,7 +4,7 @@ - Log Viewer Pro // Analytics + Log Viewer Pro // Timeline Brush @@ -18,6 +18,8 @@ --bg-dark: #0f172a; --card-dark: #1e293b; --border-color: #334155; + --selection-bg: rgba(74, 222, 128, 0.2); + --selection-border: rgba(74, 222, 128, 0.5); } body { @@ -34,7 +36,6 @@ height: 100vh; } - /* Sidebar */ aside { width: var(--sidebar-width); background: var(--card-dark); @@ -74,7 +75,6 @@ font-weight: 600; } - /* Main Content */ main { flex-grow: 1; display: flex; @@ -91,16 +91,34 @@ align-items: center; } - /* Intensity Chart */ + /* Chart Area with Selection Overlay */ .chart-container { - height: 150px; + height: 160px; background: #0b0e14; padding: 10px 20px; border-bottom: 1px solid var(--border-color); position: relative; + user-select: none; } - /* Stats & Toggles */ + #selection-overlay { + position: absolute; + top: 10px; + left: 20px; + right: 20px; + bottom: 10px; + pointer-events: none; + z-index: 10; + } + + .selection-rect { + fill: var(--selection-bg); + stroke: var(--selection-border); + stroke-width: 1; + display: none; + } + + /* Toggles & Controls */ .level-toggles .btn { border: none; font-size: 0.7rem; @@ -114,16 +132,6 @@ filter: grayscale(0.8); } - .btn-trc { - background: #64748b; - color: #fff; - } - - .btn-dbg { - background: #0ea5e9; - color: #fff; - } - .btn-inf { background: #10b981; color: #fff; @@ -144,16 +152,9 @@ color: #fff; } - /* Search & Time Filter */ - .controls-group { - display: flex; - align-items: center; - gap: 10px; - } - .search-container { position: relative; - width: 250px; + width: 280px; } .search-container input { @@ -185,17 +186,6 @@ display: none; } - /* Time Filter Dropdown */ - .time-range-select { - background: #242b3d; - border: 1px solid var(--border-color); - color: #94a3b8; - font-size: 0.75rem; - border-radius: 6px; - padding: 4px 8px; - } - - /* Table */ .content-area { flex-grow: 1; padding: 1rem; @@ -240,10 +230,10 @@