Something went wrong. Try again.
[READ-ONLY] Mirror of https://github.com/crutchcorn/hearthspace-ui-experiments. crutchcorn.github.io/hearthspace-ui-experiments
Something went wrong. Try again.
7.1 kB · 407 lines
CSS
at main
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408.bar { position: relative; z-index: 1000; display: flex; width: max-content; align-items: center; gap: 4px; line-height: 1; user-select: none;}
.bar input:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px;}
.bar .clockButton { display: grid; width: auto; min-width: 70px; max-width: calc(100dvw - 34px); height: 44px; flex-shrink: 0; padding: 0 12px; place-items: center; font-size: 14px; font-weight: 500; font-variant-numeric: tabular-nums; white-space: nowrap;}
.clockLabel { overflow: hidden; max-width: 100%; text-overflow: ellipsis;}
.statusButton { display: grid; width: 44px; height: 44px; flex-shrink: 0; padding: 0; place-items: center;}
.withDetail { display: flex; width: auto; min-width: 44px; align-items: center; justify-content: center; gap: 5px; padding: 0 10px;}
.detail { font-size: 11px; font-weight: 500; font-variant-numeric: tabular-nums; white-space: nowrap;}
.popover { --widget-panel-width: 320px; --chrome-hover: var(--surface-control-hover);
overflow: auto; box-sizing: border-box; border: 1px solid var(--chrome-border); border-radius: var(--radius-panel); background: var(--material-surface); box-shadow: var(--shadow-panel), var(--glass-edge); backdrop-filter: var(--glass-blur); color: var(--chrome-text); text-align: left; line-height: 1.4; scrollbar-color: var(--scrollbar) transparent; scrollbar-width: thin; animation: panel-in 160ms ease-out; transition: border-color 180ms ease, box-shadow 180ms ease;}
.popover:is(:hover, :focus-within) { border-color: var(--accent-border); box-shadow: var(--shadow-glow), var(--glass-edge-active);}
.systemPopover { padding: 20px;}
.powerMenu { --widget-panel-width: 224px;
padding: 6px;}
.powerMenu button { display: flex; width: 100%; min-height: 44px; align-items: center; gap: 12px; padding: 0 12px; border: 0; border-radius: var(--radius-control); background: transparent; color: var(--chrome-text); text-align: left;}
.powerMenu button:is(:hover, :focus-visible) { outline: none; background: var(--chrome-hover); box-shadow: var(--control-glow), var(--glass-edge-active);}
.powerMenu button:first-child { color: var(--accent-strong);}
.menuDivider { height: 1px; margin: 5px 12px; background: var(--line);}
.popover:focus { outline: none;}
.popover:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px;}
.toggleRow,.settingHeading { display: flex; min-height: 44px; align-items: center; justify-content: space-between; gap: 16px;}
.toggleRow strong,.settingHeading strong,.settingHeading label { font-size: 16px; font-weight: 500;}
.settingHeading > span { font-size: 30px; font-weight: 400; font-variant-numeric: tabular-nums; letter-spacing: -1px; line-height: 1;}
.settingHeading small { margin-left: 2px; font-size: 12px; letter-spacing: 0;}
.toggle { transition: background 180ms ease, border-color 180ms ease, box-shadow 180ms ease;}
.toggle::before { transition: transform 140ms ease;}
.wirelessList { margin: 16px -8px -8px;}
.listHeading { margin: 0 8px 8px; color: var(--chrome-muted); font-size: 11px; font-weight: 500;}
.wirelessItem { display: flex; width: 100%; min-height: 64px; align-items: center; gap: 12px; padding: 10px 8px; border: 1px solid transparent; border-radius: var(--radius-control); background: transparent; color: var(--chrome-text); text-align: left;}
.wirelessItem > svg { flex-shrink: 0;}
.wirelessItem[data-connected='true'] > svg { color: var(--accent-strong);}
.wirelessItem:is(:hover, :focus-visible) { outline: none; border-color: var(--accent-border); background: var(--chrome-hover); box-shadow: var(--control-glow), var(--glass-edge-active);}
.wirelessName { display: flex; min-width: 0; flex: 1; flex-direction: column; gap: 3px;}
.wirelessName strong { overflow: hidden; font-size: 13px; font-weight: 500; text-overflow: ellipsis; white-space: nowrap;}
.wirelessName > span { font-size: 11px; color: var(--chrome-muted);}
.wirelessOff { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 28px 0 16px; color: var(--chrome-muted); text-align: center; font-size: 12px;}
.wirelessOff strong { color: var(--chrome-text); font-size: 14px; font-weight: 500;}
.volumeRow { display: flex; align-items: center; gap: 12px; margin-top: 24px;}
.volumeSlider { flex: 1; min-width: 0; height: 28px; margin: 0; accent-color: var(--accent); cursor: pointer; transition: filter 180ms ease;}
.volumeSlider:is(:hover, :focus-visible) { filter: drop-shadow( 0 0 8px color-mix(in srgb, var(--accent) 35%, transparent) );}
.batteryMeter { height: 8px; overflow: hidden; margin: 24px 0 20px; border: 1px solid var(--chrome-border); border-radius: var(--radius-round); background: var(--control-track);}
.batteryMeter > span { display: block; width: 87%; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--accent-light), var(--accent));}
.batteryDescription { margin: 0; font-size: 13px;}
.calendarPopover { padding: 22px;}
.calendarHeading { padding-bottom: 20px;}
.calendarHeading > div { display: flex; flex-direction: column; gap: 8px;}
.calendarHeading strong { font-size: 20px; font-weight: 500; letter-spacing: -0.4px;}
.calendarHeading > div > span { color: var(--chrome-muted); font-size: 12px;}
.calendar { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px 2px; font-size: 12px; font-variant-numeric: tabular-nums;}
.calendar > span { display: grid; min-height: 34px; place-items: center;}
.calendar .weekday { min-height: 26px; color: var(--chrome-muted); font-size: 11px;}
.today { border: 1px solid var(--accent-border); border-radius: var(--radius-control); background: var(--accent-soft); box-shadow: var(--control-glow), var(--glass-edge-active); color: var(--accent);}
@keyframes panel-in { from { opacity: 0; transform: translateY(-5px); }
to { opacity: 1; transform: translateY(0); }}
@media (prefers-reduced-motion: reduce) { .toggle, .toggle::before, .volumeSlider, .popover { transition: none; }
.popover { animation: none; }}
:global(:is([data-layout-widget], [data-widget-popover])) .bar { position: relative; inset: auto; max-width: 100%;}
:global( [data-layout-widget]:is([data-frame-edge='left'], [data-frame-edge='right']) ) .withDetail { width: max-content; min-width: 44px; flex-direction: column; gap: 2px; padding: 2px 6px;}
:global( [data-layout-widget]:is([data-frame-edge='left'], [data-frame-edge='right']) ) .detail { max-width: 100px; overflow: hidden; font-size: 10px; text-overflow: ellipsis;}