mirror of
https://github.com/bilawalsidhu/gods-eye-view.git
synced 2026-11-17 00:32:21 +00:00
Add a finder and a section index to Data Layers
The Data Layers panel gains a search field, an All / On / Off and category filter, and a tick index down its side for jumping between sections. Both sit beside the Data Library browse control. Co-authored-by: Sameh Khamis <[email protected]>
This commit is contained in:
1 parent
b7160492e0
commit
584e77dc4f
5 files changed
+512
No files matched your search
@@ -0,0 +1,98 @@
|
||||
/* ── Data Layers group index: ticks along the panel's right edge ─────── */
|
||||
#data-panel {
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.layer-section-index {
|
||||
position: absolute;
|
||||
top: 64px;
|
||||
right: 2px;
|
||||
bottom: 24px;
|
||||
z-index: 2;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
justify-content: center;
|
||||
gap: 6px;
|
||||
width: 10px;
|
||||
}
|
||||
|
||||
#data-panel.collapsed .layer-section-index {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.layer-section-index__tick {
|
||||
position: relative;
|
||||
width: 10px;
|
||||
height: 16px;
|
||||
padding: 0;
|
||||
background: none;
|
||||
border: 0;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.layer-section-index__tick::before {
|
||||
content: '';
|
||||
position: absolute;
|
||||
top: 2px;
|
||||
bottom: 2px;
|
||||
left: 4px;
|
||||
width: 2px;
|
||||
border-radius: 2px;
|
||||
background: rgba(199, 214, 222, 0.32);
|
||||
transition:
|
||||
background 140ms ease,
|
||||
box-shadow 140ms ease,
|
||||
transform 140ms ease;
|
||||
}
|
||||
|
||||
.layer-section-index__tick:hover::before,
|
||||
.layer-section-index__tick:focus-visible::before {
|
||||
background: rgba(236, 244, 248, 0.85);
|
||||
transform: scaleX(1.5);
|
||||
}
|
||||
|
||||
.layer-section-index__tick.is-current::before {
|
||||
background: #36dcff;
|
||||
box-shadow: 0 0 6px rgba(54, 220, 255, 0.6);
|
||||
}
|
||||
|
||||
.layer-section-index__tick:focus-visible {
|
||||
outline: none;
|
||||
}
|
||||
|
||||
/* The group's name, shown to the left (inside the panel) on hover or
|
||||
focus. Hidden labels take no room, so nothing reaches past the panel. */
|
||||
.layer-section-index__label {
|
||||
position: absolute;
|
||||
top: 50%;
|
||||
right: 14px;
|
||||
padding: 0.25rem 0.5rem;
|
||||
color: rgba(236, 244, 248, 0.92);
|
||||
font-family: var(--font-mono);
|
||||
font-size: 0.56rem;
|
||||
letter-spacing: 0.12rem;
|
||||
text-transform: uppercase;
|
||||
white-space: nowrap;
|
||||
background: rgba(12, 12, 20, 0.88);
|
||||
border: 1px solid rgba(255, 255, 255, 0.1);
|
||||
border-radius: 6px;
|
||||
display: none;
|
||||
opacity: 0;
|
||||
transform: translate(4px, -50%);
|
||||
pointer-events: none;
|
||||
z-index: 3;
|
||||
transition:
|
||||
opacity 120ms ease,
|
||||
transform 120ms ease;
|
||||
}
|
||||
|
||||
.layer-section-index__tick:hover .layer-section-index__label,
|
||||
.layer-section-index__tick:focus-visible .layer-section-index__label {
|
||||
display: block;
|
||||
opacity: 1;
|
||||
transform: translate(0, -50%);
|
||||
}
|
||||
|
||||
body.mobile-shell .layer-section-index {
|
||||
display: none;
|
||||
}
|
||||
Reference in new issue
Block a user