diff --git a/src/infragraph/visualizer/frontend/css/style.css b/src/infragraph/visualizer/frontend/css/style.css index 2fb94ca..112ec4c 100644 --- a/src/infragraph/visualizer/frontend/css/style.css +++ b/src/infragraph/visualizer/frontend/css/style.css @@ -621,4 +621,111 @@ div.vis-tooltip { font-size: 11px; color: var(--conn-text); display: none; +} + +/* Controller Toggle */ +#controlToggle { + position: fixed; + top: 50px; + left: 15px; + z-index: 20; + padding: 10px 16px; + font-size: 13px; + cursor: pointer; + background: var(--accent-orange); + color: var(--text-primary); + border: none; + border-radius: 20px; + box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2); +} + +#controlToggle.active { + background: var(--accent-hover); + box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3) inset; +} + +#controlToggle:hover { + background: var(--accent-hover); +} +/* Controller Panel */ +#controlPanel { + position: fixed; + top: 90px; + left: 15px; + z-index: 20; + width: 320px; + background: var(--filter-bg); + border-radius: 12px; + box-shadow: var(--shadow); + font-size: 13px; + display: flex; + flex-direction: column; +} + +.control-header { + padding: 12px 16px; + font-weight: 600; + font-size: 14px; + color: var(--filter-text); + border-bottom: 1px solid var(--filter-header-border); + display: flex; + justify-content: space-between; + align-items: center; +} + +.control-header button { + background: none; + border: none; + font-size: 18px; + cursor: pointer; + color: var(--filter-muted); + padding: 0 4px; +} + +.controller-body { + padding: 16px; +} + +.controller-items { + display: flex; + flex-direction: column; + gap: 16px; +} + +.controller-items label { + display: flex; + align-items: center; + justify-content: space-between; + font-size: 12px; + color: var(--filter-text); + gap: 12px; + white-space: nowrap; +} + +.controller-items input[type="range"] { + flex: 1; + min-width: 150px; + height: 4px; + -webkit-appearance: none; + appearance: none; + background: var(--border); + border-radius: 2px; + outline: none; +} + +.controller-items input[type="range"]::-webkit-slider-thumb { + -webkit-appearance: none; + appearance: none; + width: 14px; + height: 14px; + border-radius: 50%; + background: var(--accent-orange); + cursor: pointer; + border: 2px solid var(--bg-primary); + box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2); +} + +.controller-items input[type="range"]::-webkit-slider-thumb:hover { + background: var(--accent-hover); + transform: scale(1.15); } \ No newline at end of file diff --git a/src/infragraph/visualizer/frontend/index.html b/src/infragraph/visualizer/frontend/index.html index deb176f..6bf719d 100644 --- a/src/infragraph/visualizer/frontend/index.html +++ b/src/infragraph/visualizer/frontend/index.html @@ -138,6 +138,25 @@
Link Types
+ + + +