fix: align macOS title bar spacing
This commit is contained in:
parent
5699882938
commit
b8d4f22c20
@ -9,7 +9,7 @@
|
||||
box-shadow: inset 0 0 0 1px var(--border-primary);
|
||||
}
|
||||
|
||||
.hololake-bar { height: 44px; flex: 0 0 44px; display: flex; align-items: center; gap: 12px; padding: 0 16px; color: var(--text-primary); background: var(--surface-panel); border-bottom: 1px solid var(--border-default); letter-spacing: .02em; }
|
||||
.hololake-bar { height: 52px; flex: 0 0 52px; display: flex; align-items: center; gap: 12px; padding: 0 16px; color: var(--text-primary); background: var(--surface-panel); border-bottom: 1px solid var(--border-default); letter-spacing: .02em; }
|
||||
.hololake-bar__brand, .hololake-bar__library { border: 0; background: transparent; color: inherit; cursor: pointer; }
|
||||
.hololake-bar__brand { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 650; letter-spacing: .02em; }
|
||||
.hololake-bar__brand b { color: var(--accent-blue); font-weight: 600; }
|
||||
@ -20,6 +20,11 @@
|
||||
.hololake-bar__library:hover { background: var(--state-hover-subtle); color: var(--text-primary); }
|
||||
.hololake-bar__theme { padding: 5px 9px; border: 1px solid var(--border-default); border-radius: 6px; background: transparent; color: var(--text-secondary); font-size: 12px; cursor: pointer; }
|
||||
.hololake-bar__theme:hover { background: var(--state-hover-subtle); color: var(--text-primary); }
|
||||
/* Tauri's macOS traffic lights are overlaid on the title bar. Keep the
|
||||
product mark and title in a separate, stable lane so they never collide. */
|
||||
body.mac-chrome .hololake-bar { padding-left: 92px; }
|
||||
.hololake-bar__brand { min-width: max-content; white-space: nowrap; }
|
||||
.hololake-bar__context { white-space: nowrap; }
|
||||
.hololake-home { position: relative; z-index: 2; width: 100%; overflow: auto; padding: clamp(28px, 5vw, 64px); color: var(--text-primary); background: var(--surface-app); }
|
||||
.hololake-home__hero { position: relative; max-width: 740px; padding: 24px 0 56px; overflow: hidden; }
|
||||
.hololake-home__halo { position: absolute; right: -80px; top: -140px; width: 300px; aspect-ratio: 1; border: 1px solid var(--border-default); border-radius: 50%; opacity: .45; }
|
||||
@ -38,6 +43,7 @@
|
||||
.hololake-home__modules { margin-top: 44px; }.hololake-home__section-head { display: flex; align-items: end; justify-content: space-between; margin-bottom: 14px; }.hololake-home__section-head p { margin: 0; color: var(--text-secondary); font-size: 13px; }
|
||||
.hololake-module { min-height: 185px; padding: 20px; display: flex; flex-direction: column; }.hololake-module__number { color: var(--accent-blue); font-family: monospace; font-size: 12px; }.hololake-module h2 { margin: auto 0 8px; font-size: 20px; font-weight: 600; }.hololake-module p { margin: 0; color: var(--text-secondary); font-size: 13px; line-height: 1.7; }.hololake-module button { margin-top: 19px; padding: 0; border: 0; color: var(--accent-blue); background: transparent; text-align: left; font: inherit; cursor: pointer; }.hololake-module__soon { margin-top: 19px; color: var(--text-muted); font-size: 12px; }
|
||||
@media (max-width: 780px) { .hololake-home__signal-grid, .hololake-home__module-grid { grid-template-columns: 1fr; }.hololake-bar__context { display: none; }.hololake-home { padding: 28px; } }
|
||||
@media (max-width: 700px) { body.mac-chrome .hololake-bar { padding-left: 84px; }.hololake-bar__line { display: none; } }
|
||||
|
||||
.app {
|
||||
display: flex;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user