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.
10 kB · 555 lines
CSS
at main
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556.corner { position: relative; z-index: 1000; max-width: 100%; color: var(--chrome-text);}
.panel button,.toast button { cursor: pointer; transition: background 140ms ease, color 140ms ease, box-shadow 140ms ease;}
.panel button:focus-visible,.toast button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px;}
.panel button:is(:hover, :focus-visible, :active):not(:disabled),.toast button:is(:hover, :focus-visible, :active):not(:disabled) { box-shadow: var(--control-glow), var(--glass-edge-active);}
.bar { display: flex; width: max-content;}
.trigger { position: relative; display: inline-flex; width: max-content; align-items: center; justify-content: flex-start; gap: 9px; padding: 0 10px; font-size: 13px; font-weight: 500; font-variant-numeric: tabular-nums; text-align: left; white-space: nowrap;}
.trigger[data-display-expanded='false'] { width: 44px; justify-content: center; padding: 0;}
.trigger[data-unread='true'] { color: var(--accent);}
.trigger[data-unread='false']:not([aria-expanded='true']) { color: var(--chrome-muted);}
.panel,.toast { --widget-panel-width: 390px;
overflow: auto; 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); overscroll-behavior: contain; scrollbar-color: var(--scrollbar) transparent; scrollbar-width: thin; animation: panel-in 160ms ease-out; transition: border-color 180ms ease, box-shadow 180ms ease;}
.panel:is(:hover, :focus-within),.toast:is(:hover, :focus-within) { border-color: var(--accent-border); box-shadow: var(--shadow-glow), var(--glass-edge-active);}
.panel { --chrome-hover: var(--surface-control-hover);
display: flex; flex-direction: column; overflow: hidden;}
.heading { display: flex; flex-shrink: 0; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 12px; padding: 14px 14px 14px 22px; border-bottom: 1px solid var(--line); background: var(--surface-subtle);}
.heading h2 { margin: 0; font-size: 24px; font-weight: 500; line-height: 1.2; letter-spacing: -0.6px;}
.markRead { display: inline-flex; flex-shrink: 0; min-height: 44px; align-items: center; justify-content: center; gap: 7px; margin-left: auto; padding: 0 8px; border: 0; border-radius: var(--radius-control); background: transparent; color: var(--chrome-text); font-size: 11px;}
.markRead:hover:not(:disabled) { background: var(--chrome-hover);}
.markRead:disabled { opacity: 0.4; cursor: default;}
.list { min-height: 0; overflow: auto; overscroll-behavior: contain; scrollbar-color: var(--scrollbar) transparent; scrollbar-width: thin;}
.notification { position: relative; display: flex; gap: 14px; padding: 20px 20px 6px;}
.notification::before { content: ''; position: absolute; top: 0; bottom: 0; left: 34px; width: 1px; background: color-mix(in srgb, var(--accent) 27%, transparent);}
.notification:first-child::before { top: 34px;}
.notification:last-child::before { bottom: calc(100% - 34px);}
.notification[data-unread='true']::before { background: linear-gradient( color-mix(in srgb, var(--accent-bright) 44%, transparent), color-mix(in srgb, var(--accent) 50%, transparent) ); box-shadow: 0 0 8px color-mix(in srgb, var(--accent) 8%, transparent);}
.itemIcon { position: relative; z-index: 1; display: grid; flex-shrink: 0; width: 29px; height: 29px; place-items: center; border: 1px solid var(--chrome-border); border-radius: var(--radius-control); background: var(--surface-control); color: var(--chrome-muted); box-shadow: var(--glass-edge);}
.notification[data-unread='true'] .itemIcon { border-color: var(--accent-border); background: var(--accent-soft); box-shadow: var(--control-glow), var(--glass-edge-active); color: var(--accent);}
:global([data-presentation='realistic']) .itemIcon { border-color: transparent; background: transparent; box-shadow: none;}
.itemContent { flex: 1; min-width: 0; padding-top: 2px;}
.itemMeta { display: flex; min-height: 16px; align-items: center; gap: 8px; padding-right: 24px; color: var(--chrome-muted); font-size: 11px;}
.itemMeta > span:first-child { color: var(--chrome-text); font-weight: 500;}
.unreadDot { width: 5px; height: 5px; flex-shrink: 0; border-radius: var(--radius-round); background: var(--accent);}
.itemContent h3 { margin: 9px 18px 6px 0; font-size: 15px; font-weight: 500; line-height: 1.35; letter-spacing: -0.2px;}
.itemContent p { margin: 0; color: var(--chrome-muted); font-size: 12px; line-height: 1.6; overflow-wrap: anywhere;}
.openButton { display: inline-flex; min-height: 44px; align-items: center; justify-content: center; gap: 7px; margin: 4px 0 0 -8px; padding: 0 8px; border: 0; border-radius: var(--radius-control); background: transparent; color: var(--accent); font-size: 12px; font-weight: 500;}
.openButton:hover { background: var(--chrome-hover);}
.dismissButton { position: absolute; top: 6px; right: 6px; display: grid; width: 44px; height: 44px; padding: 0; place-items: center; border: 0; border-radius: var(--radius-control); background: transparent; color: var(--chrome-muted);}
.dismissButton:hover { background: var(--chrome-hover); color: var(--chrome-text);}
.empty { display: flex; min-height: 200px; flex-direction: column; align-items: flex-start; justify-content: center; padding: 24px;}
.empty > span { margin-bottom: 18px; color: var(--chrome-muted);}
.empty h3 { margin: 0 0 8px; font-size: 20px; font-weight: 500; letter-spacing: -0.4px;}
.empty p { margin: 0; color: var(--chrome-muted); font-size: 12px; line-height: 1.5;}
.previewTools { display: flex; flex-shrink: 0; align-items: center; justify-content: flex-end; padding: 4px 14px; border-top: 1px solid var(--line);}
.previewButton { display: inline-flex; flex-shrink: 0; min-height: 44px; align-items: center; justify-content: center; gap: 6px; padding: 0 10px; border: 0; border-radius: var(--radius-control); background: transparent; color: var(--chrome-muted); font-size: 11px;}
.previewButton:hover { background: var(--chrome-hover); color: var(--chrome-text);}
.toast { --chrome-hover: var(--surface-control-hover);
padding: 12px 20px 16px;}
.toastTop { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: -6px -12px 0 0;}
.toastTop > span { display: inline-flex; align-items: center; gap: 8px; color: var(--chrome-muted); font-size: 11px;}
.toastTop > span > svg { color: var(--accent);}
.toastDismiss { display: grid; flex-shrink: 0; width: 44px; height: 44px; padding: 0; place-items: center; border: 0; border-radius: var(--radius-control); background: transparent; color: var(--chrome-muted);}
.toastDismiss:hover { background: var(--chrome-hover); color: var(--chrome-text);}
.toast h3 { margin: 8px 0; font-size: 20px; font-weight: 500; line-height: 1.3; letter-spacing: -0.4px;}
.toast > p { margin: 0 0 18px; color: var(--chrome-muted); font-size: 12px; line-height: 1.6; overflow-wrap: anywhere;}
.toastFooter { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 12px; border-top: 1px solid var(--line);}
.toastFooter > span { display: inline-flex; align-items: center; gap: 7px; color: var(--chrome-muted); font-size: 11px;}
.toastOpen { display: inline-flex; min-height: 44px; align-items: center; justify-content: center; gap: 7px; padding: 0 12px; border: 1px solid var(--accent-border); border-radius: var(--radius-control); background: var(--accent-soft); box-shadow: var(--glass-edge); color: var(--accent); font-size: 12px;}
.toastOpen:hover { background: var(--chrome-hover);}
@keyframes panel-in { from { opacity: 0; transform: translateY(-5px); }
to { opacity: 1; transform: translateY(0); }}
@media (width <= 760px) { .corner { flex: none; }
.corner .bar { height: 44px; padding: 0; border: 0; background: transparent; box-shadow: none; }
.corner .bar::before { content: none; }}
@media (height <= 480px) { .panel { display: block; overflow: auto; }
.list { overflow: visible; }}
@media (prefers-reduced-motion: reduce) { .corner button, .panel, .toast { transition: none; }
.panel, .toast { animation: none; }}
@media (width <= 760px) { :global(:is([data-layout-widget], [data-widget-popover])) .corner .bar { height: 54px; padding: var(--shell-padding); border: var(--shell-border-width) solid var(--chrome-border); box-shadow: var(--shadow-panel); }
:global(:is([data-layout-widget], [data-widget-popover])) .corner .bar::before { content: ''; }}
@media (width <= 760px) { :global([data-layout-widget][data-merged]) .corner .bar { height: 44px; padding: 0; border: 0; background: transparent; box-shadow: none; }
:global([data-layout-widget][data-merged]) .corner .bar::before { content: none; }}
:global( [data-layout-widget]:is([data-frame-edge='left'], [data-frame-edge='right']) ) .corner .bar { height: auto;}
:global( [data-layout-widget]:is([data-frame-edge='left'], [data-frame-edge='right']) ) .trigger[data-display-expanded='true'] { width: 44px; height: auto; min-height: 44px; flex-direction: column; justify-content: center; padding: 10px 0;}
:global( [data-layout-widget]:is([data-frame-edge='left'], [data-frame-edge='right']) ) .triggerText { writing-mode: vertical-rl;}