mirror of
https://github.com/bilawalsidhu/gods-eye-view.git
synced 2026-11-17 00:32:21 +00:00
Place the Data Layers group label outside the panel and soften the finder's focus
The group label is drawn on the page just outside the panel's edge instead of over the rows; the panel clips what leaves it, so the label is teleported to the body and placed from the tick. The finder shows focus as a soft ring on the field's frame in place of the hard outline round the bare input. Co-authored-by: Sameh Khamis <[email protected]>
This commit is contained in:
1 parent
584e77dc4f
commit
0550f7c2d2
3 files changed
+53
-20
No files matched your search
@@ -60,12 +60,11 @@
|
||||
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. */
|
||||
/* The group's name, drawn on the page just outside the panel's edge while a
|
||||
tick is pointed at or focused, so it covers none of the rows. */
|
||||
.layer-section-index__label {
|
||||
position: absolute;
|
||||
top: 50%;
|
||||
right: 14px;
|
||||
position: fixed;
|
||||
z-index: 30;
|
||||
padding: 0.25rem 0.5rem;
|
||||
color: rgba(236, 244, 248, 0.92);
|
||||
font-family: var(--font-mono);
|
||||
@@ -76,21 +75,26 @@
|
||||
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%);
|
||||
transform: translateY(-50%);
|
||||
pointer-events: none;
|
||||
z-index: 3;
|
||||
transition:
|
||||
opacity 120ms ease,
|
||||
transform 120ms ease;
|
||||
animation: layer-section-index-label 120ms ease both;
|
||||
}
|
||||
|
||||
.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%);
|
||||
@keyframes layer-section-index-label {
|
||||
from {
|
||||
opacity: 0;
|
||||
translate: -4px 0;
|
||||
}
|
||||
to {
|
||||
opacity: 1;
|
||||
translate: 0 0;
|
||||
}
|
||||
}
|
||||
|
||||
@media (prefers-reduced-motion: reduce) {
|
||||
.layer-section-index__label {
|
||||
animation: none;
|
||||
}
|
||||
}
|
||||
|
||||
body.mobile-shell .layer-section-index {
|
||||
|
||||
Reference in new issue
Block a user