478 lines
12 KiB
CSS
478 lines
12 KiB
CSS
/* toolbar.css - orbital hub toolbar */
|
|
|
|
.earth-toolbar-group {
|
|
position: absolute;
|
|
bottom: 18px;
|
|
left: 50%;
|
|
transform: translateX(-50%);
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
z-index: 200;
|
|
pointer-events: none;
|
|
}
|
|
|
|
.earth-toolbar-group,
|
|
.hud-panel {
|
|
transition:
|
|
top 0.45s ease,
|
|
right 0.45s ease,
|
|
bottom 0.45s ease,
|
|
left 0.45s ease,
|
|
transform 0.45s ease,
|
|
box-shadow 0.45s ease;
|
|
}
|
|
|
|
.earth-toolbar {
|
|
--toolbar-scale: 1;
|
|
--toolbar-orb-size: calc(46px * var(--toolbar-scale));
|
|
--toolbar-hub-size: calc(58px * var(--toolbar-scale));
|
|
--toolbar-arc-width: calc(420px * var(--toolbar-scale));
|
|
--toolbar-arc-height: calc(160px * var(--toolbar-scale));
|
|
--toolbar-inner-arc-width: calc(260px * var(--toolbar-scale));
|
|
--toolbar-inner-arc-height: calc(56px * var(--toolbar-scale));
|
|
position: relative;
|
|
width: min(620px, calc(100vw - 40px));
|
|
height: calc(200px * var(--toolbar-scale));
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
background: transparent;
|
|
border: none;
|
|
box-shadow: none;
|
|
padding: 0;
|
|
pointer-events: none;
|
|
}
|
|
|
|
.earth-toolbar-cluster {
|
|
position: relative;
|
|
width: 100%;
|
|
height: 100%;
|
|
pointer-events: none;
|
|
}
|
|
|
|
.earth-toolbar-cluster::before {
|
|
content: "";
|
|
position: absolute;
|
|
left: 50%;
|
|
bottom: calc(14px * var(--toolbar-scale));
|
|
width: var(--toolbar-arc-width);
|
|
height: var(--toolbar-arc-height);
|
|
transform: translateX(-50%);
|
|
border-radius: 50%;
|
|
border: 1px solid rgba(145, 186, 255, 0.08);
|
|
border-bottom-color: transparent;
|
|
background:
|
|
radial-gradient(circle at 50% 100%, rgba(145, 186, 255, 0.05), transparent 58%);
|
|
opacity: 0.9;
|
|
mask: linear-gradient(180deg, rgba(0, 0, 0, 0.82), transparent 86%);
|
|
pointer-events: none;
|
|
}
|
|
|
|
.earth-toolbar-orb {
|
|
position: absolute;
|
|
left: 50%;
|
|
bottom: calc(30px * var(--toolbar-scale));
|
|
transform: translate(-50%, -50%);
|
|
}
|
|
|
|
.earth-toolbar-hub {
|
|
position: absolute;
|
|
left: 50%;
|
|
bottom: calc(8px * var(--toolbar-scale));
|
|
transform: translateX(-50%);
|
|
}
|
|
|
|
.earth-toolbar-orb {
|
|
pointer-events: none;
|
|
opacity: 1;
|
|
transition:
|
|
transform 0.36s cubic-bezier(0.34, 1.15, 0.64, 1),
|
|
opacity 0.24s ease;
|
|
}
|
|
|
|
.earth-toolbar-cluster.is-expanded .earth-toolbar-orb {
|
|
transform: translate(calc(-50% + var(--orb-x)), calc(-50% + var(--orb-y)));
|
|
}
|
|
|
|
.earth-toolbar-cluster.is-collapsed .earth-toolbar-orb {
|
|
transform: translate(-50%, -50%) scale(0.42);
|
|
opacity: 0;
|
|
}
|
|
|
|
.earth-toolbar-orb > *,
|
|
.earth-toolbar-hub > * {
|
|
pointer-events: auto;
|
|
}
|
|
|
|
.earth-toolbar-cluster.is-collapsed .earth-toolbar-orb > * {
|
|
pointer-events: none;
|
|
}
|
|
|
|
.earth-toolbar-hub > * {
|
|
pointer-events: auto;
|
|
}
|
|
|
|
.earth-toolbar-orb > .liquid-glass-surface {
|
|
animation: floatDock 4.6s ease-in-out infinite;
|
|
animation-delay: var(--orb-delay, 0s);
|
|
}
|
|
|
|
.earth-toolbar-cluster.is-dock-engaged .earth-toolbar-orb > .liquid-glass-surface {
|
|
animation-play-state: paused;
|
|
}
|
|
|
|
.earth-toolbar-btn,
|
|
.earth-toolbar-hub-btn {
|
|
position: relative;
|
|
width: 28px;
|
|
height: 28px;
|
|
border: none;
|
|
background: transparent;
|
|
color: var(--hud-text-soft);
|
|
font-size: calc(14px * var(--toolbar-scale));
|
|
cursor: pointer;
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
box-sizing: border-box;
|
|
padding: 0;
|
|
margin: 0;
|
|
appearance: none;
|
|
-webkit-appearance: none;
|
|
}
|
|
|
|
.earth-toolbar-btn.floating-btn {
|
|
width: var(--toolbar-orb-size);
|
|
height: var(--toolbar-orb-size);
|
|
min-width: var(--toolbar-orb-size);
|
|
min-height: var(--toolbar-orb-size);
|
|
border-radius: 50%;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.earth-toolbar-hub-btn {
|
|
width: var(--toolbar-hub-size);
|
|
height: var(--toolbar-hub-size);
|
|
min-width: var(--toolbar-hub-size);
|
|
min-height: var(--toolbar-hub-size);
|
|
border-radius: 50%;
|
|
overflow: hidden;
|
|
color: var(--hud-title);
|
|
}
|
|
|
|
.earth-toolbar-btn .icon,
|
|
.earth-toolbar-hub-btn .material-symbols-rounded {
|
|
position: relative;
|
|
z-index: 1;
|
|
line-height: 1;
|
|
}
|
|
|
|
.earth-toolbar-btn .icon {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
transition: transform 0.16s ease, opacity 0.16s ease;
|
|
backface-visibility: hidden;
|
|
-webkit-backface-visibility: hidden;
|
|
}
|
|
|
|
.earth-toolbar-btn .material-symbols-rounded,
|
|
.earth-toolbar-hub-btn .material-symbols-rounded {
|
|
font-size: calc(21px * var(--toolbar-scale));
|
|
line-height: 1;
|
|
font-variation-settings:
|
|
'FILL' 0,
|
|
'wght' 500,
|
|
'GRAD' 0,
|
|
'opsz' 24;
|
|
color: currentColor;
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
user-select: none;
|
|
pointer-events: none;
|
|
text-rendering: geometricPrecision;
|
|
-webkit-font-smoothing: antialiased;
|
|
-moz-osx-font-smoothing: grayscale;
|
|
}
|
|
|
|
.liquid-glass-surface {
|
|
--elastic-x: 0px;
|
|
--elastic-y: 0px;
|
|
--tilt-x: 0deg;
|
|
--tilt-y: 0deg;
|
|
--btn-scale: 1;
|
|
--press-offset: 0px;
|
|
--float-offset: 0px;
|
|
--glow-opacity: 0.24;
|
|
--glow-x: 50%;
|
|
--glow-y: 22%;
|
|
position: relative;
|
|
isolation: isolate;
|
|
transform-style: preserve-3d;
|
|
transform-origin: center center;
|
|
will-change: transform, box-shadow;
|
|
overflow: hidden;
|
|
background:
|
|
radial-gradient(circle at var(--glow-x) var(--glow-y), rgba(255, 255, 255, 0.12), transparent 34%),
|
|
radial-gradient(circle at 50% 118%, rgba(255, 255, 255, 0.05), transparent 30%),
|
|
linear-gradient(180deg, var(--hud-surface-top), var(--hud-surface-bottom)),
|
|
rgba(8, 20, 38, 0.12);
|
|
border: 1px solid var(--hud-border);
|
|
box-shadow:
|
|
inset 0 1px 0 rgba(255, 255, 255, 0.14),
|
|
inset 0 -1px 0 rgba(255, 255, 255, 0.05),
|
|
var(--glass-shadow),
|
|
var(--glass-glow);
|
|
backdrop-filter: blur(18px) saturate(145%);
|
|
-webkit-backdrop-filter: blur(18px) saturate(145%);
|
|
transform:
|
|
translate3d(
|
|
var(--elastic-x),
|
|
calc(var(--float-offset) + var(--press-offset) + var(--elastic-y)),
|
|
0
|
|
)
|
|
scale(var(--btn-scale));
|
|
transition:
|
|
transform 0.22s ease,
|
|
box-shadow 0.22s ease,
|
|
background 0.22s ease,
|
|
opacity 0.18s ease,
|
|
border-color 0.22s ease;
|
|
}
|
|
|
|
.liquid-glass-surface::before {
|
|
content: "";
|
|
position: absolute;
|
|
inset: 1px 1px 18px 1px;
|
|
border-radius: inherit;
|
|
background:
|
|
linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.04) 28%, transparent 68%);
|
|
opacity: 0.42;
|
|
pointer-events: none;
|
|
transform:
|
|
perspective(120px)
|
|
rotateX(calc(var(--tilt-x) * 0.7))
|
|
rotateY(calc(var(--tilt-y) * 0.7))
|
|
translate3d(calc(var(--elastic-x) * 0.22), calc(var(--elastic-y) * 0.22), 0);
|
|
transition: opacity 0.18s ease, transform 0.18s ease;
|
|
}
|
|
|
|
.liquid-glass-surface::after {
|
|
content: "";
|
|
position: absolute;
|
|
inset: -1px;
|
|
padding: 1.35px;
|
|
border-radius: inherit;
|
|
background:
|
|
linear-gradient(135deg, rgba(255, 255, 255, 0.36), rgba(168, 222, 255, 0.22) 34%, rgba(96, 175, 255, 0.16) 66%, rgba(255, 255, 255, 0.28));
|
|
opacity: 0.72;
|
|
pointer-events: none;
|
|
filter: url(#liquid-glass-distortion) blur(0.35px);
|
|
transform:
|
|
perspective(120px)
|
|
rotateX(calc(var(--tilt-x) * 0.5))
|
|
rotateY(calc(var(--tilt-y) * 0.5))
|
|
translate3d(calc(var(--elastic-x) * 0.16), calc(var(--elastic-y) * 0.16), 0);
|
|
-webkit-mask:
|
|
linear-gradient(#000 0 0) content-box,
|
|
linear-gradient(#000 0 0);
|
|
-webkit-mask-composite: xor;
|
|
mask:
|
|
linear-gradient(#000 0 0) content-box,
|
|
linear-gradient(#000 0 0);
|
|
mask-composite: exclude;
|
|
transition: opacity 0.18s ease, transform 0.18s ease;
|
|
}
|
|
|
|
.earth-toolbar-hub-btn.liquid-glass-surface {
|
|
background:
|
|
radial-gradient(circle at 50% 24%, rgba(255, 255, 255, 0.16), transparent 34%),
|
|
linear-gradient(180deg, rgba(28, 54, 90, 0.26), rgba(11, 24, 43, 0.22)),
|
|
rgba(10, 28, 52, 0.16);
|
|
border-color: var(--hud-border);
|
|
box-shadow:
|
|
inset 0 1px 0 rgba(255, 255, 255, 0.14),
|
|
inset 0 -1px 0 rgba(255, 255, 255, 0.05),
|
|
0 16px 30px rgba(0, 0, 0, 0.24),
|
|
0 0 30px rgba(104, 181, 247, 0.18);
|
|
}
|
|
|
|
.liquid-glass-surface:hover {
|
|
--btn-scale: 1.04;
|
|
--press-offset: -1px;
|
|
--glow-opacity: 0.32;
|
|
background:
|
|
radial-gradient(circle at var(--glow-x) var(--glow-y), rgba(255, 255, 255, 0.14), transparent 34%),
|
|
radial-gradient(circle at 50% 118%, rgba(255, 255, 255, 0.08), transparent 30%),
|
|
linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(128, 198, 255, 0.06)),
|
|
rgba(8, 20, 38, 0.14);
|
|
border-color: var(--hud-border-hover);
|
|
box-shadow:
|
|
inset 0 1px 0 rgba(255, 255, 255, 0.2),
|
|
inset 0 -1px 0 rgba(255, 255, 255, 0.08),
|
|
0 18px 36px rgba(0, 0, 0, 0.24),
|
|
0 0 28px rgba(145, 214, 255, 0.22);
|
|
}
|
|
|
|
.liquid-glass-surface:hover::before {
|
|
opacity: 0.62;
|
|
transform: scale(1.01);
|
|
}
|
|
|
|
.liquid-glass-surface:hover::after {
|
|
opacity: 0.96;
|
|
transform: scale(1.01);
|
|
}
|
|
|
|
.liquid-glass-surface:active,
|
|
.liquid-glass-surface.is-pressed {
|
|
--btn-scale: 0.95;
|
|
--press-offset: 2px;
|
|
--glow-opacity: 0.2;
|
|
}
|
|
|
|
.liquid-glass-surface.active {
|
|
background:
|
|
radial-gradient(circle at var(--glow-x) var(--glow-y), rgba(255, 255, 255, 0.14), transparent 34%),
|
|
linear-gradient(180deg, rgba(255, 255, 255, 0.14), rgba(118, 200, 255, 0.08)),
|
|
rgba(11, 34, 58, 0.18);
|
|
border-color: var(--hud-border-active);
|
|
box-shadow:
|
|
inset 0 1px 0 rgba(255, 255, 255, 0.22),
|
|
inset 0 0 18px rgba(160, 220, 255, 0.14),
|
|
0 18px 34px rgba(0, 0, 0, 0.24),
|
|
0 0 30px rgba(145, 214, 255, 0.24);
|
|
}
|
|
|
|
.earth-rotate-toggle .icon-play,
|
|
.earth-rotate-toggle.is-stopped .icon-pause,
|
|
.earth-layout-toggle .layout-collapse,
|
|
.earth-layout-toggle.active .layout-expand {
|
|
display: none;
|
|
}
|
|
|
|
.earth-rotate-toggle.is-stopped .icon-play,
|
|
.earth-layout-toggle.active .layout-collapse {
|
|
display: inline-flex;
|
|
}
|
|
|
|
.earth-zoom-group:hover > .earth-zoom-toolbar,
|
|
.earth-zoom-group:focus-within > .earth-zoom-toolbar,
|
|
.earth-zoom-group.open > .earth-zoom-toolbar {
|
|
opacity: 1;
|
|
visibility: visible;
|
|
pointer-events: auto;
|
|
transform: translate(-50%, 0);
|
|
}
|
|
|
|
.earth-zoom-group.force-closed > .earth-zoom-toolbar {
|
|
opacity: 0;
|
|
visibility: hidden;
|
|
pointer-events: none;
|
|
transform: translate(-50%, calc(8px * var(--toolbar-scale)));
|
|
}
|
|
|
|
.earth-toolbar-popover::before {
|
|
content: "";
|
|
position: absolute;
|
|
left: 50%;
|
|
bottom: 100%;
|
|
transform: translateX(-50%);
|
|
width: calc(56px * var(--toolbar-scale));
|
|
height: calc(16px * var(--toolbar-scale));
|
|
background: transparent;
|
|
}
|
|
|
|
.earth-toolbar-popover > .earth-stack-toolbar {
|
|
position: absolute;
|
|
left: 50%;
|
|
top: auto;
|
|
right: auto;
|
|
bottom: calc(100% + (12px * var(--toolbar-scale)));
|
|
transform: translate(-50%, calc(10px * var(--toolbar-scale)));
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
gap: calc(8px * var(--toolbar-scale));
|
|
opacity: 0;
|
|
visibility: hidden;
|
|
pointer-events: none;
|
|
transition:
|
|
opacity 0.22s ease,
|
|
transform 0.22s ease,
|
|
visibility 0.22s ease;
|
|
z-index: 220;
|
|
}
|
|
|
|
.earth-zoom-toolbar .earth-zoom-btn,
|
|
.earth-zoom-toolbar .earth-zoom-value {
|
|
width: calc(42px * var(--toolbar-scale));
|
|
min-width: calc(42px * var(--toolbar-scale));
|
|
border-radius: 50%;
|
|
color: var(--hud-text-soft);
|
|
animation: none;
|
|
}
|
|
|
|
.earth-zoom-toolbar .earth-zoom-btn {
|
|
height: calc(42px * var(--toolbar-scale));
|
|
font-size: calc(20px * var(--toolbar-scale));
|
|
font-weight: 500;
|
|
line-height: 1;
|
|
}
|
|
|
|
.earth-zoom-toolbar .earth-zoom-value {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
height: calc(42px * var(--toolbar-scale));
|
|
padding: 0;
|
|
font-size: calc(11px * var(--toolbar-scale));
|
|
letter-spacing: normal;
|
|
}
|
|
|
|
.earth-app.layout-expanded .earth-toolbar-group {
|
|
bottom: 18px;
|
|
transform: translateX(-50%);
|
|
}
|
|
|
|
.earth-toolbar-btn .earth-toolbar-tooltip {
|
|
position: absolute;
|
|
bottom: calc(56px * var(--toolbar-scale));
|
|
left: 50%;
|
|
transform: translateX(-50%);
|
|
background:
|
|
linear-gradient(180deg, rgba(18, 31, 52, 0.96), rgba(8, 18, 32, 0.95));
|
|
color: var(--hud-text);
|
|
padding: calc(6px * var(--toolbar-scale)) calc(12px * var(--toolbar-scale));
|
|
border-radius: calc(6px * var(--toolbar-scale));
|
|
font-size: calc(12px * var(--toolbar-scale));
|
|
white-space: nowrap;
|
|
opacity: 0;
|
|
visibility: hidden;
|
|
transition: all 0.2s ease;
|
|
border: 1px solid var(--hud-border);
|
|
pointer-events: none;
|
|
z-index: 100;
|
|
box-shadow: var(--hud-shadow-soft);
|
|
}
|
|
|
|
.earth-toolbar-btn:hover .earth-toolbar-tooltip,
|
|
.earth-toolbar-popover:hover > .earth-toolbar-btn .earth-toolbar-tooltip,
|
|
.earth-toolbar-popover:focus-within > .earth-toolbar-btn .earth-toolbar-tooltip {
|
|
opacity: 1;
|
|
visibility: visible;
|
|
bottom: calc(58px * var(--toolbar-scale));
|
|
}
|
|
|
|
.earth-toolbar-btn .earth-toolbar-tooltip::after {
|
|
content: "";
|
|
position: absolute;
|
|
top: 100%;
|
|
left: 50%;
|
|
transform: translateX(-50%);
|
|
border: calc(6px * var(--toolbar-scale)) solid transparent;
|
|
border-top-color: rgba(18, 31, 52, 0.96);
|
|
}
|