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

685 lines
23 KiB
CSS
Raw Normal View History

2022-10-11 14:48:22 +00:00
/*
* Bluelib Base
* by <me@steffo.eu>
*/
:where(body) {
2022-10-11 14:48:22 +00:00
--bhsl-current-hue: var(--bhsl-foreground-hue);
--bhsl-current-saturation: var(--bhsl-foreground-saturation);
--bhsl-current-lightness: var(--bhsl-foreground-lightness);
background-color: hsl(var(--bhsl-background-hue) var(--bhsl-background-saturation) var(--bhsl-background-lightness));
width: 100%;
height: 100%;
font-style: var(--bfont-text-style);
font-variant: var(--bfont-text-variant);
font-weight: var(--bfont-text-weight);
font-stretch: var(--bfont-text-stretch);
line-height: var(--bfont-text-height);
font-family: var(--bfont-text-family);
}
:where(body),
2023-04-07 00:19:56 +00:00
:where(body) :where(*) {
2022-10-11 14:48:22 +00:00
margin: 0;
padding: 0;
color: hsl(var(--bhsl-current-hue) var(--bhsl-current-saturation) var(--bhsl-current-lightness));
border-color: hsl(var(--bhsl-current-hue) var(--bhsl-current-saturation) var(--bhsl-current-lightness));
border-width: 0;
border-style: solid;
scrollbar-color: hsl(var(--bhsl-current-hue) var(--bhsl-current-saturation) var(--bhsl-current-lightness)) hsl(var(--bhsl-background-hue) var(--bhsl-background-saturation) var(--bhsl-background-lightness));
}
:where(body),
2023-04-07 00:19:56 +00:00
:where(body) :where(*),
:where(body)::before,
2023-04-07 00:19:56 +00:00
:where(body) :where(*)::before,
:where(body)::after,
2023-04-07 00:19:56 +00:00
:where(body) :where(*)::after {
2022-10-11 14:48:22 +00:00
box-sizing: border-box;
}
:where(body):focus-visible,
2023-04-07 00:19:56 +00:00
:where(body) :where(*):focus-visible {
2022-10-11 14:48:22 +00:00
outline-width: 4px;
outline-style: solid;
outline-color: hsl(var(--bhsl-current-hue) var(--bhsl-current-saturation) var(--bhsl-current-lightness) / 0.3);
}
2023-04-07 15:09:22 +00:00
:where(body) :where(header),
2023-04-07 00:19:56 +00:00
:where(body) :where(footer) {
2022-10-11 14:48:22 +00:00
text-align: center;
2023-04-07 15:09:22 +00:00
}
:where(body) :where(footer) {
margin: 1rem 0;
2022-10-11 14:48:22 +00:00
font-size: x-small;
}
2023-04-07 00:19:56 +00:00
:where(body) :where(.float-top) {
2022-10-11 14:48:22 +00:00
margin-bottom: auto;
}
2023-04-07 00:19:56 +00:00
:where(body) :where(.float-right) {
2022-10-11 14:48:22 +00:00
margin-left: auto;
}
2023-04-07 00:19:56 +00:00
:where(body) :where(.float-bottom) {
2022-10-11 14:48:22 +00:00
margin-top: auto;
}
2023-04-07 00:19:56 +00:00
:where(body) :where(.float-left) {
2022-10-11 14:48:22 +00:00
margin-right: auto;
}
2023-04-07 00:19:56 +00:00
:where(body) :where(.float-hcenter) {
2022-10-11 14:48:22 +00:00
margin-left: auto;
margin-right: auto;
}
2023-04-07 00:19:56 +00:00
:where(body) :where(.float-vcenter) {
2022-10-11 14:48:22 +00:00
margin-top: auto;
margin-bottom: auto;
}
2023-04-07 00:19:56 +00:00
:where(body) :where(h1) {
2022-10-11 14:48:22 +00:00
font-size: 2.5em;
}
2023-04-07 00:19:56 +00:00
:where(body) :where(h2) {
2022-10-11 14:48:22 +00:00
font-size: 1.75em;
}
2023-04-07 00:19:56 +00:00
:where(body) :where(h1, h2, h3, h4, h5, h6) {
2022-10-11 14:48:22 +00:00
text-align: center;
--bhsl-current-hue: var(--bhsl-primary-hue);
--bhsl-current-saturation: var(--bhsl-primary-saturation);
--bhsl-current-lightness: var(--bhsl-primary-lightness);
font-style: var(--bfont-header-style);
font-variant: var(--bfont-header-variant);
font-weight: var(--bfont-header-weight);
font-stretch: var(--bfont-header-stretch);
line-height: var(--bfont-header-height);
font-family: var(--bfont-header-family);
}
2023-04-07 00:19:56 +00:00
:where(body) :where(.panel) {
2022-11-10 15:35:42 +00:00
padding-top: 8px;
padding-right: 8px;
padding-left: 8px;
padding-bottom: 8px;
2022-10-11 14:48:22 +00:00
border-width: 0;
border-style: solid;
width: 100%;
display: flex;
flex-direction: column;
gap: 8px;
background-color: hsl(var(--bhsl-background-hue) var(--bhsl-background-saturation) var(--bhsl-background-lightness));
}
2023-04-07 00:19:56 +00:00
:where(body) :where(.panel):where(.border-top),
:where(body) :where(.panel):where(.box) {
2022-10-11 14:48:22 +00:00
border-top-width: 2px;
2022-11-10 15:35:42 +00:00
padding-top: 6px;
2022-10-11 14:48:22 +00:00
}
2023-04-07 00:19:56 +00:00
:where(body) :where(.panel):where(.border-right),
:where(body) :where(.panel):where(.box) {
2022-10-11 14:48:22 +00:00
border-right-width: 2px;
2022-11-10 15:35:42 +00:00
padding-right: 6px;
2022-10-11 14:48:22 +00:00
}
2023-04-07 00:19:56 +00:00
:where(body) :where(.panel):where(.border-left),
:where(body) :where(.panel):where(.box),
:where(body) :where(.panel):where(.dialog) {
2022-10-11 14:48:22 +00:00
border-left-width: 2px;
2022-11-10 15:35:42 +00:00
padding-left: 6px;
2022-10-11 14:48:22 +00:00
}
2023-04-07 00:19:56 +00:00
:where(body) :where(.panel):where(.border-bottom),
:where(body) :where(.panel):where(.box) {
2022-10-11 14:48:22 +00:00
border-bottom-width: 2px;
2022-11-10 15:35:42 +00:00
padding-bottom: 6px;
2022-10-11 14:48:22 +00:00
}
2023-04-07 00:19:56 +00:00
:where(body) :where(.panel):where(.parenthesis) {
2022-10-11 14:48:22 +00:00
font-size: smaller;
}
2023-04-07 00:19:56 +00:00
:where(body) :where(.chapter-0) {
2022-10-11 14:48:22 +00:00
flex-wrap: nowrap;
}
2023-04-07 00:19:56 +00:00
:where(body) :where(.chapter-0) > :where(*) {
2022-10-11 14:48:22 +00:00
flex-shrink: 1;
}
2023-04-07 00:19:56 +00:00
:where(body) :where(.chapter-1) > :where(*) {
2022-10-11 14:48:22 +00:00
flex-basis: calc(100% / 2);
}
2023-04-07 00:19:56 +00:00
:where(body) :where(.chapter-2) > :where(*) {
2022-10-11 14:48:22 +00:00
flex-basis: calc(100% / 3);
}
2023-04-07 00:19:56 +00:00
:where(body) :where(.chapter-3) > :where(*) {
2022-10-11 14:48:22 +00:00
flex-basis: calc(100% / 4);
}
2023-04-07 00:19:56 +00:00
:where(body) :where(.chapter-4) > :where(*) {
2022-10-11 14:48:22 +00:00
flex-basis: calc(100% / 5);
}
2023-04-07 00:19:56 +00:00
:where(body) :where(.chapter-5) > :where(*) {
2022-10-11 14:48:22 +00:00
flex-basis: calc(100% / 6);
}
2023-04-07 00:19:56 +00:00
:where(body) :where(.chapter-6) > :where(*) {
2022-10-11 14:48:22 +00:00
flex-basis: calc(100% / 7);
}
2023-04-07 00:19:56 +00:00
:where(body) :where(.chapter-7) > :where(*) {
2022-10-11 14:48:22 +00:00
flex-basis: calc(100% / 8);
}
2023-04-07 00:19:56 +00:00
:where(body) :where(.chapter-8) > :where(*) {
2022-10-11 14:48:22 +00:00
flex-basis: calc(100% / 9);
}
2023-04-07 00:19:56 +00:00
:where(body) :where(.chapter-9) > :where(*) {
2022-10-11 14:48:22 +00:00
flex-basis: calc(100% / 10);
}
2023-04-07 00:19:56 +00:00
:where(body) :where(.chapter-0, .chapter-1, .chapter-2, .chapter-3, .chapter-4, .chapter-5, .chapter-6, .chapter-7, .chapter-8, .chapter-9) {
display: flex;
flex-wrap: wrap;
flex-direction: row;
gap: 8px;
justify-content: center;
align-items: stretch;
margin: 8px 0;
}
:where(body) :where(.chapter-0, .chapter-1, .chapter-2, .chapter-3, .chapter-4, .chapter-5, .chapter-6, .chapter-7, .chapter-8, .chapter-9) > :where(*) {
flex-grow: 1;
flex-shrink: 0;
}
:where(body) :where(.chapter-0, .chapter-1, .chapter-2, .chapter-3, .chapter-4, .chapter-5, .chapter-6, .chapter-7, .chapter-8, .chapter-9) > :where(h1, h2, h3, h4, h5, h6) {
flex-basis: 100%;
margin-top: 1.2em;
}
:where(body) :where(hr) {
2022-10-11 14:48:22 +00:00
border-width: 1px;
border-style: dashed;
}
2023-04-07 00:19:56 +00:00
:where(body) :where(.separator-light) {
2022-10-11 14:48:22 +00:00
border-style: dotted;
}
2023-04-07 00:19:56 +00:00
:where(body) :where(.separator-heavy) {
2022-10-11 14:48:22 +00:00
border-style: solid;
}
2023-04-07 00:19:56 +00:00
:where(body) :where(img) {
2022-10-11 14:48:22 +00:00
display: block;
max-width: 100%;
object-fit: contain;
}
2023-04-07 00:19:56 +00:00
:where(body) :where(.image-limit-half) {
2022-10-11 14:48:22 +00:00
max-height: max(28.2vw, 50vh);
}
2023-04-07 00:19:56 +00:00
:where(body) :where(.image-limit-quarter) {
2022-10-11 14:48:22 +00:00
max-height: max(14.1vw, 25vh);
}
2023-04-07 00:19:56 +00:00
:where(body) :where(table) {
2022-10-11 14:48:22 +00:00
border-collapse: collapse;
}
2023-04-07 00:19:56 +00:00
:where(body) :where(table) :where(th),
:where(body) :where(table) :where(td) {
2022-10-11 14:48:22 +00:00
padding: 3px 7px;
border-width: 1px;
}
2023-04-07 00:19:56 +00:00
:where(body) :where(table) :where(caption) {
2022-10-11 14:48:22 +00:00
border-width: 1px;
font-style: var(--bfont-caption-style);
font-variant: var(--bfont-caption-variant);
font-weight: var(--bfont-caption-weight);
font-stretch: var(--bfont-caption-stretch);
line-height: var(--bfont-caption-height);
font-family: var(--bfont-caption-family);
}
2023-04-07 00:19:56 +00:00
:where(body) :where(table) :where(caption):where(.table-caption-top) {
2022-10-11 14:48:22 +00:00
caption-side: top;
border-bottom-width: 0;
}
2023-04-07 00:19:56 +00:00
:where(body) :where(table) :where(caption):where(.table-caption-bottom) {
2022-10-11 14:48:22 +00:00
caption-side: bottom;
border-top-width: 0;
}
2023-04-07 00:19:56 +00:00
:where(body) :where(table):where(.panel) {
2022-10-11 14:48:22 +00:00
display: table;
}
2023-04-07 00:19:56 +00:00
:where(body) :where(table):where(.panel) :where(th),
:where(body) :where(table):where(.panel) :where(td) {
2022-10-11 14:48:22 +00:00
padding: 8px;
}
2023-04-07 00:19:56 +00:00
:where(body) :where(table):where(.panel) :where(caption) {
2022-10-11 14:48:22 +00:00
text-align: inherit;
background-color: hsl(var(--bhsl-background-hue) var(--bhsl-background-saturation) var(--bhsl-background-lightness));
padding: 8px;
}
2023-04-07 00:19:56 +00:00
:where(body) :where(table):where(.panel) :where(caption) :where(*) {
2022-10-11 14:48:22 +00:00
margin-top: 8px;
margin-bottom: 8px;
}
2023-04-07 00:19:56 +00:00
:where(body) :where(table):where(.panel) :where(caption) :where(*):first-child {
2022-10-11 14:48:22 +00:00
margin-top: 0;
}
2023-04-07 00:19:56 +00:00
:where(body) :where(table):where(.panel) :where(caption) :where(*):last-child {
2022-10-11 14:48:22 +00:00
margin-bottom: 0;
}
2023-04-07 00:19:56 +00:00
:where(body) :where(table):where(.box) :where(tr) {
2022-10-11 14:48:22 +00:00
border-width: 1px;
}
2023-04-07 00:19:56 +00:00
:where(body) :where(table):where(.box) :where(th),
:where(body) :where(table):where(.box) :where(td) {
2022-10-11 14:48:22 +00:00
border-width: 1px;
padding: 7px;
}
2023-04-07 00:19:56 +00:00
:where(body) :where(table):where(.box) :where(caption) {
2022-10-11 14:48:22 +00:00
border-width: 2px;
padding: 6px;
}
2023-04-07 00:19:56 +00:00
:where(body) :where(table):where(.box) :where(caption):where(.table-caption-top) {
2022-10-11 14:48:22 +00:00
border-bottom-width: 0;
}
2023-04-07 00:19:56 +00:00
:where(body) :where(table):where(.box) :where(caption):where(.table-caption-bottom) {
2022-10-11 14:48:22 +00:00
border-top-width: 0;
}
2023-04-07 00:19:56 +00:00
:where(body) :where(table):where(.dialog) :where(thead) > :where(tr) {
2022-10-11 14:48:22 +00:00
border-bottom-width: 1px;
}
2023-04-07 00:19:56 +00:00
:where(body) :where(table):where(.dialog) :where(tbody) > :where(tr) {
2022-10-11 14:48:22 +00:00
border-width: 0;
}
2023-04-07 00:19:56 +00:00
:where(body) :where(table):where(.dialog) :where(tfoot) > :where(tr) {
2022-10-11 14:48:22 +00:00
border-top-width: 1px;
}
2023-04-07 00:19:56 +00:00
:where(body) :where(table):where(.dialog) :where(th),
:where(body) :where(table):where(.dialog) :where(td) {
2022-10-11 14:48:22 +00:00
border-width: 0 0 0 1px;
padding: 8px 8px 8px 7px;
}
2023-04-07 00:19:56 +00:00
:where(body) :where(table):where(.dialog) :where(caption) {
2022-10-11 14:48:22 +00:00
border-width: 0 0 0 2px;
padding: 8px 8px 8px 6px;
}
2023-04-07 00:19:56 +00:00
:where(body) :where(.panel) > :where(ul),
:where(body) :where(.panel) > :where(ol) {
2022-10-11 14:48:22 +00:00
margin-left: 6ex;
}
2023-04-07 00:19:56 +00:00
:where(body) :where(dt) {
2022-10-11 14:48:22 +00:00
margin-top: 0.5em;
padding: 0.2em 0;
--bhsl-current-hue: var(--bhsl-primary-hue);
--bhsl-current-saturation: var(--bhsl-primary-saturation);
--bhsl-current-lightness: var(--bhsl-primary-lightness);
font-style: var(--bfont-term-style);
font-variant: var(--bfont-term-variant);
font-weight: var(--bfont-term-weight);
font-stretch: var(--bfont-term-stretch);
line-height: var(--bfont-term-height);
font-family: var(--bfont-term-family);
}
2023-04-07 00:19:56 +00:00
:where(body) :where(dd) {
2022-10-11 14:48:22 +00:00
margin-left: 4.5ex;
margin-bottom: 0.5em;
}
2023-04-07 00:19:56 +00:00
:where(body) :where(details) {
2022-10-11 14:48:22 +00:00
margin-left: 4.5ex;
}
2023-04-07 00:19:56 +00:00
:where(body) :where(summary) {
2022-10-11 14:48:22 +00:00
cursor: pointer;
margin-left: -4ex;
padding: 0.2em 0;
font-style: var(--bfont-summary-style);
font-variant: var(--bfont-summary-variant);
font-weight: var(--bfont-summary-weight);
font-stretch: var(--bfont-summary-stretch);
line-height: var(--bfont-summary-height);
font-family: var(--bfont-summary-family);
user-select: none;
}
2023-04-07 00:19:56 +00:00
:where(body) :where(.fade) {
2022-10-11 14:48:22 +00:00
opacity: 0.3;
}
2023-04-07 00:19:56 +00:00
:where(body) :where(mark, .mark) {
2022-10-11 14:48:22 +00:00
font-style: var(--bfont-mark-style);
font-variant: var(--bfont-mark-variant);
font-weight: var(--bfont-mark-weight);
font-stretch: var(--bfont-mark-stretch);
line-height: var(--bfont-mark-height);
font-family: var(--bfont-mark-family);
background-color: hsl(var(--bhsl-mark-background-hue) var(--bhsl-mark-background-saturation) var(--bhsl-mark-background-lightness));
--bhsl-current-hue: var(--bhsl-mark-foreground-hue);
--bhsl-current-saturation: var(--bhsl-mark-foreground-saturation);
--bhsl-current-lightness: var(--bhsl-mark-foreground-lightness);
}
2023-04-07 00:19:56 +00:00
:where(body) :where(mark, .mark) :where(mark, .mark) {
2022-10-11 14:48:22 +00:00
background-color: hsl(var(--bhsl-background-hue) var(--bhsl-background-saturation) var(--bhsl-background-lightness));
--bhsl-current-hue: var(--bhsl-foreground-hue);
--bhsl-current-saturation: var(--bhsl-foreground-saturation);
--bhsl-current-lightness: var(--bhsl-foreground-lightness);
}
2023-04-07 00:19:56 +00:00
:where(body) :where(mark, .mark) :where(mark, .mark) :where(mark, .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));
--bhsl-current-hue: var(--bhsl-mark-foreground-hue);
--bhsl-current-saturation: var(--bhsl-mark-foreground-saturation);
--bhsl-current-lightness: var(--bhsl-mark-foreground-lightness);
}
2023-04-07 00:19:56 +00:00
:where(body) :where(.todo) {
2022-10-11 14:48:22 +00:00
--bhsl-current-hue: var(--bhsl-todo-foreground-hue);
--bhsl-current-saturation: var(--bhsl-todo-foreground-saturation);
--bhsl-current-lightness: var(--bhsl-todo-foreground-lightness);
}
2023-04-07 00:19:56 +00:00
:where(body) :where(.todo),
:where(body) :where(.todo) :where(.panel) {
2022-10-11 14:48:22 +00:00
border-style: dashed;
background-color: hsl(var(--bhsl-todo-background-hue) var(--bhsl-todo-background-saturation) var(--bhsl-todo-background-lightness));
}
2023-04-07 00:19:56 +00:00
:where(body) :where([disabled]) {
2022-10-15 13:23:11 +00:00
border-style: dashed;
cursor: not-allowed;
}
2023-04-07 00:19:56 +00:00
:where(body) :where(.red) {
2022-10-11 14:48:22 +00:00
--bhsl-current-hue: var(--bhsl-red-hue);
--bhsl-current-saturation: var(--bhsl-red-saturation);
--bhsl-current-lightness: var(--bhsl-red-lightness);
}
2023-04-07 00:19:56 +00:00
:where(body) :where(.yellow) {
2022-10-11 14:48:22 +00:00
--bhsl-current-hue: var(--bhsl-yellow-hue);
--bhsl-current-saturation: var(--bhsl-yellow-saturation);
--bhsl-current-lightness: var(--bhsl-yellow-lightness);
}
2023-04-07 00:19:56 +00:00
:where(body) :where(.green) {
2022-10-11 14:48:22 +00:00
--bhsl-current-hue: var(--bhsl-green-hue);
--bhsl-current-saturation: var(--bhsl-green-saturation);
--bhsl-current-lightness: var(--bhsl-green-lightness);
}
2023-04-07 00:19:56 +00:00
:where(body) :where(.cyan) {
2022-10-11 14:48:22 +00:00
--bhsl-current-hue: var(--bhsl-cyan-hue);
--bhsl-current-saturation: var(--bhsl-cyan-saturation);
--bhsl-current-lightness: var(--bhsl-cyan-lightness);
}
2023-04-07 00:19:56 +00:00
:where(body) :where(.blue) {
2022-10-11 14:48:22 +00:00
--bhsl-current-hue: var(--bhsl-blue-hue);
--bhsl-current-saturation: var(--bhsl-blue-saturation);
--bhsl-current-lightness: var(--bhsl-blue-lightness);
}
2023-04-07 00:19:56 +00:00
:where(body) :where(.magenta) {
2022-10-11 14:48:22 +00:00
--bhsl-current-hue: var(--bhsl-magenta-hue);
--bhsl-current-saturation: var(--bhsl-magenta-saturation);
--bhsl-current-lightness: var(--bhsl-magenta-lightness);
}
2023-04-07 00:19:56 +00:00
:where(body) :where(input, textarea, select, button) {
2022-10-11 14:48:22 +00:00
font: inherit;
cursor: pointer;
background-color: transparent;
padding: 0.125em 0.75ex;
vertical-align: middle;
min-width: 0;
2022-10-11 14:48:22 +00:00
border-width: 0;
border-color: hsl(var(--bhsl-current-hue) var(--bhsl-current-saturation) var(--bhsl-current-lightness) / 0.4);
}
2023-04-07 00:19:56 +00:00
:where(body) :where(input, textarea, select, button)::placeholder {
2022-10-11 14:48:22 +00:00
opacity: 1;
color: hsl(var(--bhsl-current-hue) var(--bhsl-current-saturation) var(--bhsl-current-lightness) / 0.4);
}
2023-04-07 00:19:56 +00:00
:where(body) :where(input, textarea, select, button):hover:not(:where([disabled])) {
2022-10-11 14:48:22 +00:00
border-color: hsl(var(--bhsl-current-hue) var(--bhsl-current-saturation) var(--bhsl-current-lightness) / 0.7);
}
2023-04-07 00:19:56 +00:00
:where(body) :where(input, textarea, select, button):hover:not(:where([disabled]))::placeholder {
2022-10-11 14:48:22 +00:00
color: hsl(var(--bhsl-current-hue) var(--bhsl-current-saturation) var(--bhsl-current-lightness) / 0.7);
}
2023-04-07 00:19:56 +00:00
:where(body) :where(input, textarea, select, button):active:not(:where([disabled])),
:where(body) :where(input, textarea, select, button):focus:not(:where([disabled])) {
2022-10-11 14:48:22 +00:00
border-color: hsl(var(--bhsl-current-hue) var(--bhsl-current-saturation) var(--bhsl-current-lightness));
}
2023-04-07 00:19:56 +00:00
:where(body) :where(textarea) {
2022-10-11 14:48:22 +00:00
resize: vertical;
}
2023-04-07 00:19:56 +00:00
:where(body) :where(input[type="text"], input[type="password"], input[type="email"], input[type="number"], input[type="search"], input[type="tel"], input[type="datetime-local"], input[type="date"], input[type="time"]),
:where(body) :where(select:not([multiple])) {
2022-10-11 14:48:22 +00:00
border-bottom-width: 2px;
}
2023-04-07 00:19:56 +00:00
:where(body) :where(textarea),
:where(body) :where(select[multiple]) {
2022-10-11 14:48:22 +00:00
border-left-width: 2px;
}
2023-04-07 00:19:56 +00:00
:where(body) :where(input[type="text"], input[type="password"], input[type="email"], input[type="number"], input[type="search"], input[type="tel"], input[type="datetime-local"], input[type="date"], input[type="time"]):not(:where([disabled])),
:where(body) :where(textarea):not(:where([disabled])) {
2022-10-11 14:48:22 +00:00
cursor: text;
}
2023-04-07 00:19:56 +00:00
:where(body) :where(select:not([multiple])):not(:where([disabled])),
:where(body) :where(select[multiple]):not(:where([disabled])) {
2022-10-11 14:48:22 +00:00
cursor: vertical-text;
}
2023-04-07 00:19:56 +00:00
:where(body) :where(input[type="range"]):not(:where([disabled])) {
2022-10-11 14:48:22 +00:00
cursor: ew-resize;
}
2023-04-07 00:19:56 +00:00
:where(body) :where(input[type="radio"]):not(:where([disabled])),
:where(body) :where(input[type="checkbox"]):not(:where([disabled])),
:where(body) :where(input[type="button"], button):not(:where([disabled])),
:where(body) :where(input[type="color"]):not(:where([disabled])) {
2022-10-15 13:23:11 +00:00
cursor: pointer;
}
2023-04-07 00:19:56 +00:00
:where(body) :where(select:not([multiple])) optgroup,
:where(body) :where(select[multiple]) optgroup {
2022-10-11 14:48:22 +00:00
padding-bottom: 0.25em;
font-style: var(--bfont-header-style);
font-variant: var(--bfont-header-variant);
font-weight: var(--bfont-header-weight);
font-stretch: var(--bfont-header-stretch);
line-height: var(--bfont-header-height);
font-family: var(--bfont-header-family);
}
2023-04-07 00:19:56 +00:00
:where(body) :where(select:not([multiple])) optgroup option,
:where(body) :where(select[multiple]) optgroup option {
2022-10-11 14:48:22 +00:00
padding: 0.125em 0 0.125em 2ex;
}
2023-04-07 00:19:56 +00:00
:where(body) :where(select:not([multiple])) option,
:where(body) :where(select[multiple]) option {
2022-10-11 14:48:22 +00:00
font-style: var(--bfont-text-style);
font-variant: var(--bfont-text-variant);
font-weight: var(--bfont-text-weight);
font-stretch: var(--bfont-text-stretch);
line-height: var(--bfont-text-height);
font-family: var(--bfont-text-family);
}
2023-04-07 00:19:56 +00:00
:where(body) :where(input[type="radio"]),
:where(body) :where(input[type="checkbox"]) {
2022-10-11 14:48:22 +00:00
appearance: none;
width: 1em;
height: 1em;
padding: 2px;
border-width: 2px;
display: inline-flex;
justify-content: center;
align-items: center;
}
2023-04-07 00:19:56 +00:00
:where(body) :where(input[type="radio"])::before,
:where(body) :where(input[type="checkbox"])::before {
2022-10-11 14:48:22 +00:00
display: block;
content: "";
width: 100%;
height: 100%;
}
2023-04-07 00:19:56 +00:00
:where(body) :where(input[type="radio"]):checked::before,
:where(body) :where(input[type="checkbox"]):checked::before {
2022-10-11 14:48:22 +00:00
background-color: hsl(var(--bhsl-current-hue) var(--bhsl-current-saturation) var(--bhsl-current-lightness));
}
2023-04-07 00:19:56 +00:00
:where(body) :where(input[type="radio"]) {
2022-10-11 14:48:22 +00:00
border-radius: 100%;
}
2023-04-07 00:19:56 +00:00
:where(body) :where(input[type="radio"])::before {
2022-10-11 14:48:22 +00:00
border-radius: 100%;
}
2023-04-07 00:19:56 +00:00
:where(body) :where(input[type="range"]) {
2022-10-11 14:48:22 +00:00
padding: 0;
2023-04-07 00:19:56 +00:00
}
:where(body) :where(input[type="button"], button) {
2022-10-11 14:48:22 +00:00
border-width: 2px;
border-style: outset;
}
2023-04-07 00:19:56 +00:00
:where(body) :where(input[type="button"], button):active {
2022-10-11 14:48:22 +00:00
border-style: inset;
}
2023-04-07 00:19:56 +00:00
:where(body) :where(input[type="file"]),
:where(body) :where(input[type="color"]) {
2022-10-11 14:48:22 +00:00
padding: 0;
}
@media screen and (-webkit-min-device-pixel-ratio: 0) {
2023-04-07 00:19:56 +00:00
:where(body) :where(input[type="text"], input[type="password"], input[type="email"], input[type="number"], input[type="search"], input[type="tel"], input[type="datetime-local"], input[type="date"], input[type="time"])::-webkit-calendar-picker-indicator {
2022-10-11 14:48:22 +00:00
filter: invert(calc(calc(var(--bhsl-current-lightness) - 50%) * 1000));
}
2023-04-07 00:19:56 +00:00
:where(body) :where(select:not([multiple])) optgroup,
:where(body) :where(select:not([multiple])) option {
2022-10-11 14:48:22 +00:00
background-color: hsl(var(--bhsl-background-hue) var(--bhsl-background-saturation) var(--bhsl-background-lightness));
}
2023-04-07 00:19:56 +00:00
:where(body) :where(select:not([multiple])) optgroup::before,
:where(body) :where(select:not([multiple])) option::before {
2022-10-11 14:48:22 +00:00
content: "";
}
}
2023-04-07 00:19:56 +00:00
:where(body) :where(.form-flex) {
2022-10-11 14:48:22 +00:00
display: flex;
flex-direction: column;
justify-content: stretch;
}
2023-04-07 00:19:56 +00:00
:where(body) :where(.form-flex) > :where(.form-flex-content, p) {
2022-10-11 14:48:22 +00:00
margin: 0.5em 0;
}
2023-04-07 00:19:56 +00:00
:where(body) :where(.form-flex) > :where(.form-flex-choice, label) {
2022-10-11 14:48:22 +00:00
display: flex;
gap: 1ex;
min-height: 1.675em;
2022-10-11 14:48:22 +00:00
}
2023-04-07 00:19:56 +00:00
:where(body) :where(.form-flex) > :where(.form-flex-choice, label) > :where(*):first-child,
:where(body) :where(.form-flex) > :where(.form-flex-choice, label) > :where(*):last-child {
2022-10-11 14:48:22 +00:00
margin: auto 0;
flex-basis: 15%;
2022-10-14 22:51:30 +00:00
flex-grow: 0;
flex-shrink: 0;
2022-10-11 14:48:22 +00:00
font-style: var(--bfont-label-style);
font-variant: var(--bfont-label-variant);
font-weight: var(--bfont-label-weight);
font-stretch: var(--bfont-label-stretch);
line-height: var(--bfont-label-height);
font-family: var(--bfont-label-family);
--bhsl-current-hue: var(--bhsl-primary-hue);
--bhsl-current-saturation: var(--bhsl-primary-saturation);
--bhsl-current-lightness: var(--bhsl-primary-lightness);
}
2023-04-07 00:19:56 +00:00
:where(body) :where(.form-flex) > :where(.form-flex-choice, label) > :where(*) {
2022-10-14 22:51:30 +00:00
flex-grow: 1;
display: flex;
justify-content: space-between;
flex-wrap: wrap;
align-items: stretch;
gap: 1ex;
2022-10-14 22:51:30 +00:00
}
2023-04-07 00:19:56 +00:00
:where(body) :where(.form-flex) > :where(.form-flex-choice, label) > :where(*):first-child {
2022-10-11 14:48:22 +00:00
text-align: right;
2022-10-14 22:51:30 +00:00
display: block;
2022-10-11 14:48:22 +00:00
}
2023-04-07 00:19:56 +00:00
:where(body) :where(.form-flex) > :where(.form-flex-choice, label) > :where(*):last-child {
2022-10-11 14:48:22 +00:00
text-align: left;
2022-10-14 22:51:30 +00:00
display: block;
2022-10-11 14:48:22 +00:00
}
2023-04-07 00:19:56 +00:00
:where(body) :where(a) {
2022-10-11 14:48:22 +00:00
--bhsl-current-hue: var(--bhsl-link-hue);
--bhsl-current-saturation: var(--bhsl-link-saturation);
--bhsl-current-lightness: var(--bhsl-link-lightness);
}
2023-04-07 00:19:56 +00:00
:where(body) :where(i) {
2022-10-11 14:48:22 +00:00
font-style: var(--bfont-idiomatic-style);
font-variant: var(--bfont-idiomatic-variant);
font-weight: var(--bfont-idiomatic-weight);
font-stretch: var(--bfont-idiomatic-stretch);
line-height: var(--bfont-idiomatic-height);
font-family: var(--bfont-idiomatic-family);
}
2023-04-07 00:19:56 +00:00
:where(body) :where(em) {
2022-10-11 14:48:22 +00:00
font-style: var(--bfont-emphasis-style);
font-variant: var(--bfont-emphasis-variant);
font-weight: var(--bfont-emphasis-weight);
font-stretch: var(--bfont-emphasis-stretch);
line-height: var(--bfont-emphasis-height);
font-family: var(--bfont-emphasis-family);
}
2023-04-07 00:19:56 +00:00
:where(body) :where(b) {
2022-10-11 14:48:22 +00:00
font-style: var(--bfont-attention-style);
font-variant: var(--bfont-attention-variant);
font-weight: var(--bfont-attention-weight);
font-stretch: var(--bfont-attention-stretch);
line-height: var(--bfont-attention-height);
font-family: var(--bfont-attention-family);
}
2023-04-07 00:19:56 +00:00
:where(body) :where(strong) {
2022-10-11 14:48:22 +00:00
font-style: var(--bfont-strong-style);
font-variant: var(--bfont-strong-variant);
font-weight: var(--bfont-strong-weight);
font-stretch: var(--bfont-strong-stretch);
line-height: var(--bfont-strong-height);
font-family: var(--bfont-strong-family);
}
2023-04-07 00:19:56 +00:00
:where(body) :where(ins) {
2022-10-11 14:48:22 +00:00
--bhsl-current-hue: var(--bhsl-inserted-hue);
--bhsl-current-saturation: var(--bhsl-inserted-saturation);
--bhsl-current-lightness: var(--bhsl-inserted-lightness);
}
2023-04-07 00:19:56 +00:00
:where(body) :where(del) {
2022-10-11 14:48:22 +00:00
--bhsl-current-hue: var(--bhsl-deleted-hue);
--bhsl-current-saturation: var(--bhsl-deleted-saturation);
--bhsl-current-lightness: var(--bhsl-deleted-lightness);
}
2023-04-07 00:19:56 +00:00
:where(body) :where(code),
:where(body) :where(pre),
:where(body) :where(kbd),
:where(body) :where(samp) {
2022-10-11 14:48:22 +00:00
font-style: var(--bfont-code-style);
font-variant: var(--bfont-code-variant);
font-weight: var(--bfont-code-weight);
font-stretch: var(--bfont-code-stretch);
line-height: var(--bfont-code-height);
font-family: var(--bfont-code-family);
}
2023-04-07 00:19:56 +00:00
:where(body) :where(pre) {
2022-10-11 14:48:22 +00:00
overflow-x: scroll;
}
2023-04-07 00:19:56 +00:00
:where(body) :where(kbd),
:where(body) :where(samp) {
2022-10-11 14:48:22 +00:00
padding: 0 0.25ex;
}
2023-04-07 00:19:56 +00:00
:where(body) :where(kbd) {
2022-10-11 14:48:22 +00:00
background-color: hsl(var(--bhsl-sample-output-hue) var(--bhsl-sample-output-saturation) var(--bhsl-sample-output-lightness));
--bhsl-current-hue: var(--bhsl-sample-input-hue);
--bhsl-current-saturation: var(--bhsl-sample-input-saturation);
--bhsl-current-lightness: var(--bhsl-sample-input-lightness);
}
2023-04-07 00:19:56 +00:00
:where(body) :where(kbd) :where(kbd) {
2022-10-11 14:48:22 +00:00
font-style: var(--bfont-boldcode-style);
font-variant: var(--bfont-boldcode-variant);
font-weight: var(--bfont-boldcode-weight);
font-stretch: var(--bfont-boldcode-stretch);
line-height: var(--bfont-boldcode-height);
font-family: var(--bfont-boldcode-family);
}
2023-04-07 00:19:56 +00:00
:where(body) :where(samp) {
2022-10-11 14:48:22 +00:00
background-color: hsl(var(--bhsl-sample-input-hue) var(--bhsl-sample-input-saturation) var(--bhsl-sample-input-lightness));
--bhsl-current-hue: var(--bhsl-sample-output-hue);
--bhsl-current-saturation: var(--bhsl-sample-output-saturation);
--bhsl-current-lightness: var(--bhsl-sample-output-lightness);
}
2023-04-07 00:19:56 +00:00
:where(body) :where(samp) :where(samp) {
2022-10-11 14:48:22 +00:00
font-style: var(--bfont-boldcode-style);
font-variant: var(--bfont-boldcode-variant);
font-weight: var(--bfont-boldcode-weight);
font-stretch: var(--bfont-boldcode-stretch);
line-height: var(--bfont-boldcode-height);
font-family: var(--bfont-boldcode-family);
}
2023-04-07 00:19:56 +00:00
:where(body) :where(var) {
2022-10-11 14:48:22 +00:00
font-style: var(--bfont-variable-style);
font-variant: var(--bfont-variable-variant);
font-weight: var(--bfont-variable-weight);
font-stretch: var(--bfont-variable-stretch);
line-height: var(--bfont-variable-height);
font-family: var(--bfont-variable-family);
}
2023-04-07 00:19:56 +00:00
:where(body) :where(cite) {
2022-10-11 14:48:22 +00:00
font-style: var(--bfont-citation-style);
font-variant: var(--bfont-citation-variant);
font-weight: var(--bfont-citation-weight);
font-stretch: var(--bfont-citation-stretch);
line-height: var(--bfont-citation-height);
font-family: var(--bfont-citation-family);
}
2023-04-07 00:19:56 +00:00
:where(body) :where(dfn) {
2022-10-11 14:48:22 +00:00
font-style: var(--bfont-term-style);
font-variant: var(--bfont-term-variant);
font-weight: var(--bfont-term-weight);
font-stretch: var(--bfont-term-stretch);
line-height: var(--bfont-term-height);
font-family: var(--bfont-term-family);
--bhsl-current-hue: var(--bhsl-primary-hue);
--bhsl-current-saturation: var(--bhsl-primary-saturation);
--bhsl-current-lightness: var(--bhsl-primary-lightness);
}
2023-04-07 00:19:56 +00:00
:where(body) :where(abbr) {
2022-10-11 14:48:22 +00:00
cursor: help;
}