mirror of
https://github.com/TecharoHQ/anubis.git
synced 2025-08-03 09:48:08 -04:00

* deduplicate css rules by using media query to set variables * Update xess/xess.css Co-authored-by: Xe Iaso <me@xeiaso.net> Signed-off-by: Benjamin Armintor <armintor@gmail.com> --------- Signed-off-by: Benjamin Armintor <armintor@gmail.com> Co-authored-by: Xe Iaso <me@xeiaso.net>
150 lines
2.6 KiB
CSS
150 lines
2.6 KiB
CSS
:root {
|
|
--body-sans-font: Geist, sans-serif;
|
|
--body-preformatted-font: Iosevka Curly Iaso, monospace;
|
|
--body-title-font: Podkova, serif;
|
|
|
|
--background: #1d2021;
|
|
--text: #f9f5d7;
|
|
--text-selection: #d3869b;
|
|
--preformatted-background: #3c3836;
|
|
--link-foreground: #b16286;
|
|
--link-background: #282828;
|
|
--blockquote-border-left: 1px solid #bdae93;
|
|
|
|
--progress-bar-outline: #b16286 solid 4px;
|
|
--progress-bar-fill: #b16286;
|
|
}
|
|
@media (prefers-color-scheme: light) {
|
|
:root {
|
|
--background: #f9f5d7;
|
|
--text: #1d2021;
|
|
--text-selection: #d3869b;
|
|
--preformatted-background: #ebdbb2;
|
|
--link-foreground: #b16286;
|
|
--link-background: #fbf1c7;
|
|
--blockquote-border-left: 1px solid #655c54;
|
|
}
|
|
}
|
|
|
|
@font-face {
|
|
font-family: "Geist";
|
|
font-style: normal;
|
|
font-weight: 100 900;
|
|
font-display: swap;
|
|
src: url("./static/geist.woff2") format("woff2");
|
|
}
|
|
|
|
@font-face {
|
|
font-family: "Podkova";
|
|
font-style: normal;
|
|
font-weight: 400 800;
|
|
font-display: swap;
|
|
src: url("./static/podkova.woff2") format("woff2");
|
|
}
|
|
|
|
@font-face {
|
|
font-family: "Iosevka Curly";
|
|
font-style: monospace;
|
|
font-display: swap;
|
|
src: url("./static/iosevka-curly.woff2") format("woff2");
|
|
}
|
|
|
|
main {
|
|
font-family: var(--body-sans-font);
|
|
max-width: 50rem;
|
|
padding: 2rem;
|
|
margin: auto;
|
|
}
|
|
|
|
::selection {
|
|
background: var(--text-selection);
|
|
}
|
|
|
|
body {
|
|
background: var(--background);
|
|
color: var(--text);
|
|
}
|
|
|
|
body,
|
|
html {
|
|
height: 100%;
|
|
display: flex;
|
|
justify-content: center;
|
|
align-items: center;
|
|
margin-left: auto;
|
|
margin-right: auto;
|
|
}
|
|
|
|
.centered-div {
|
|
text-align: center;
|
|
}
|
|
|
|
#status {
|
|
font-variant-numeric: tabular-nums;
|
|
}
|
|
|
|
.centered-div {
|
|
text-align: center;
|
|
}
|
|
|
|
#status {
|
|
font-variant-numeric: tabular-nums;
|
|
}
|
|
|
|
#progress {
|
|
display: none;
|
|
width: min(20rem, 90%);
|
|
height: 2rem;
|
|
border-radius: 1rem;
|
|
overflow: hidden;
|
|
margin: 1rem 0 2rem;
|
|
outline-offset: 2px;
|
|
outline: var(--progress-bar-outline);
|
|
}
|
|
|
|
.bar-inner {
|
|
background-color: var(--progress-bar-fill);
|
|
height: 100%;
|
|
width: 0;
|
|
transition: width 0.25s ease-in;
|
|
}
|
|
|
|
@media (prefers-reduced-motion: no-preference) {
|
|
.bar-inner {
|
|
transition: width 0.25s ease-in;
|
|
}
|
|
}
|
|
|
|
pre {
|
|
background-color: var(--preformatted-background);
|
|
padding: 1em;
|
|
border: 0;
|
|
font-family: var(--body-preformatted-font);
|
|
}
|
|
|
|
a,
|
|
a:active,
|
|
a:visited {
|
|
color: var(--link-foreground);
|
|
background-color: var(--link-background);
|
|
}
|
|
|
|
h1,
|
|
h2,
|
|
h3,
|
|
h4,
|
|
h5 {
|
|
margin-bottom: 0.1rem;
|
|
font-family: var(--body-title-font);
|
|
}
|
|
|
|
blockquote {
|
|
border-left: var(--blockquote-border-left);
|
|
margin: 0.5em 10px;
|
|
padding: 0.5em 10px;
|
|
}
|
|
|
|
footer {
|
|
text-align: center;
|
|
}
|