A full-featured download manager.
.toolbar-glass-surface {
position: relative;
isolation: isolate;
}
.toolbar-glass-surface:has(> .toolbar-glass) {
--toolbar-glass-border: rgb(0 0 0 / 9%);
--toolbar-glass-hover: rgb(0 0 0 / 5%);
--toolbar-glass-pressed: rgb(0 0 0 / 9%);
background: transparent;
}
.dark .toolbar-glass-surface:has(> .toolbar-glass) {
--toolbar-glass-border: rgb(255 255 255 / 6%);
--toolbar-glass-hover: rgb(255 255 255 / 8%);
--toolbar-glass-pressed: rgb(255 255 255 / 13%);
}
/* Keep the search field's focus border above the material's quiet rim. */
.toolbar-glass-surface:has(> .toolbar-glass):not(:has(input:focus)) {
border-color: var(--toolbar-glass-border);
}
.toolbar-glass {
position: absolute;
inset: 0;
z-index: -1;
pointer-events: none;
border-radius: inherit;
background: linear-gradient(
180deg,
rgb(255 255 255 / 92%),
rgb(248 248 248 / 88%)
);
backdrop-filter: blur(10px) saturate(1.03);
box-shadow:
inset 0 1px 0 rgb(255 255 255 / 40%),
inset 0 -1px 0 rgb(0 0 0 / 3%),
0 1px 2px rgb(0 0 0 / 2%);
}
.dark .toolbar-glass {
background: linear-gradient(180deg, rgb(44 46 50 / 88%), rgb(34 36 40 / 86%));
box-shadow:
inset 0 1px 0 rgb(255 255 255 / 7%),
inset 0 -1px 0 rgb(0 0 0 / 10%),
0 1px 3px rgb(0 0 0 / 8%);
}
.toolbar-glass-surface .toolbar-button:hover:not(:disabled) {
background-color: var(--toolbar-glass-hover, var(--accent));
}
.toolbar-glass-surface
.toolbar-button:is(:active, [aria-pressed="true"], [data-popup-open]):not(
:disabled
) {
background-color: var(--toolbar-glass-pressed, var(--accent));
}
@media (prefers-reduced-transparency: reduce), (prefers-contrast: more),
(forced-colors: active) {
.toolbar-glass-surface {
background: var(--background);
}
}