1
Fork 0
mirror of https://github.com/Steffo99/bluelib.git synced 2024-12-22 11:34:21 +00:00
bluelib/dist/glass.module.css

84 lines
4.6 KiB
CSS
Raw Normal View History

2022-10-11 14:48:22 +00:00
/*
* Bluelib Glass
* by <me@steffo.eu>
*/
:where(.bluelib) {
2022-10-11 14:48:22 +00:00
--b-panel-blur: 16px;
--b-panel-initial-opacity: 0.3;
--b-panel-nested-opacity: 0.075;
2022-10-11 14:48:22 +00:00
}
@supports (backdrop-filter: blur(var(--b-panel-blur))) {
:where(.bluelib) .panel,
:where(.bluelib) .table.panel > .table-caption {
background-color: hsl(var(--bhsl-background-hue) var(--bhsl-background-saturation) var(--bhsl-background-lightness) / var(--b-panel-initial-opacity));
2022-10-11 14:48:22 +00:00
backdrop-filter: blur(var(--b-panel-blur)) hue-rotate(calc(var(--bhsl-current-hue) - var(--bhsl-foreground-hue)));
}
:where(.bluelib) .panel .panel,
:where(.bluelib) .table.panel > .table-caption .panel {
background-color: hsl(var(--bhsl-current-hue) var(--bhsl-current-saturation) var(--bhsl-current-lightness) / var(--b-panel-nested-opacity));
2022-10-11 14:48:22 +00:00
backdrop-filter: none;
}
:where(.bluelib) .modifier-mark,
:where(.bluelib) .element-mark,
:where(.bluelib) .panel.modifier-mark {
2022-10-11 14:48:22 +00:00
background-color: hsl(var(--bhsl-mark-background-hue) var(--bhsl-mark-background-saturation) var(--bhsl-mark-background-lightness));
backdrop-filter: none;
}
:where(.bluelib) .modifier-mark .modifier-mark,
:where(.bluelib) .element-mark .modifier-mark,
:where(.bluelib) .panel.modifier-mark .modifier-mark,
:where(.bluelib) .modifier-mark .element-mark,
:where(.bluelib) .element-mark .element-mark,
:where(.bluelib) .panel.modifier-mark .element-mark,
:where(.bluelib) .modifier-mark .panel.modifier-mark,
:where(.bluelib) .element-mark .panel.modifier-mark,
:where(.bluelib) .panel.modifier-mark .panel.modifier-mark {
2022-10-11 14:48:22 +00:00
background-color: hsl(var(--bhsl-background-hue) var(--bhsl-background-saturation) var(--bhsl-background-lightness));
}
:where(.bluelib) .modifier-mark .modifier-mark .modifier-mark,
:where(.bluelib) .element-mark .modifier-mark .modifier-mark,
:where(.bluelib) .panel.modifier-mark .modifier-mark .modifier-mark,
:where(.bluelib) .modifier-mark .element-mark .modifier-mark,
:where(.bluelib) .element-mark .element-mark .modifier-mark,
:where(.bluelib) .panel.modifier-mark .element-mark .modifier-mark,
:where(.bluelib) .modifier-mark .panel.modifier-mark .modifier-mark,
:where(.bluelib) .element-mark .panel.modifier-mark .modifier-mark,
:where(.bluelib) .panel.modifier-mark .panel.modifier-mark .modifier-mark,
:where(.bluelib) .modifier-mark .modifier-mark .element-mark,
:where(.bluelib) .element-mark .modifier-mark .element-mark,
:where(.bluelib) .panel.modifier-mark .modifier-mark .element-mark,
:where(.bluelib) .modifier-mark .element-mark .element-mark,
:where(.bluelib) .element-mark .element-mark .element-mark,
:where(.bluelib) .panel.modifier-mark .element-mark .element-mark,
:where(.bluelib) .modifier-mark .panel.modifier-mark .element-mark,
:where(.bluelib) .element-mark .panel.modifier-mark .element-mark,
:where(.bluelib) .panel.modifier-mark .panel.modifier-mark .element-mark,
:where(.bluelib) .modifier-mark .modifier-mark .panel.modifier-mark,
:where(.bluelib) .element-mark .modifier-mark .panel.modifier-mark,
:where(.bluelib) .panel.modifier-mark .modifier-mark .panel.modifier-mark,
:where(.bluelib) .modifier-mark .element-mark .panel.modifier-mark,
:where(.bluelib) .element-mark .element-mark .panel.modifier-mark,
:where(.bluelib) .panel.modifier-mark .element-mark .panel.modifier-mark,
:where(.bluelib) .modifier-mark .panel.modifier-mark .panel.modifier-mark,
:where(.bluelib) .element-mark .panel.modifier-mark .panel.modifier-mark,
:where(.bluelib) .panel.modifier-mark .panel.modifier-mark .panel.modifier-mark {
2022-10-11 14:48:22 +00:00
background-color: hsl(var(--bhsl-mark-background-hue) var(--bhsl-mark-background-saturation) var(--bhsl-mark-background-lightness));
}
:where(.bluelib) .modifier-todo,
:where(.bluelib) .panel.modifier-todo {
2022-10-11 14:48:22 +00:00
background-color: hsl(var(--bhsl-todo-background-hue) var(--bhsl-todo-background-saturation) var(--bhsl-todo-background-lightness));
}
:where(.bluelib) .modifier-todo .panel,
:where(.bluelib) .panel.modifier-todo .panel {
2022-10-11 14:48:22 +00:00
background-color: hsl(var(--bhsl-todo-background-hue) var(--bhsl-todo-background-saturation) var(--bhsl-todo-background-lightness));
backdrop-filter: none;
}
:where(.bluelib) .panel.modifier-todo {
2022-10-11 14:48:22 +00:00
background-color: hsl(var(--bhsl-todo-background-hue) var(--bhsl-todo-background-saturation) var(--bhsl-todo-background-lightness) / 0.3);
backdrop-filter: blur(var(--b-panel-blur)) grayscale(100%);
}
:where(.bluelib) .panel .panel.modifier-todo {
2022-10-11 14:48:22 +00:00
background-color: hsl(var(--bhsl-todo-background-hue) var(--bhsl-todo-background-saturation) var(--bhsl-todo-background-lightness));
}
}