update `public_html` static files

master
urosm 2024-03-19 02:08:26 +01:00
parent 79ec45e601
commit 4db51ca023
1 changed files with 31 additions and 19 deletions

View File

@ -8,39 +8,23 @@
--v-un: calc(var(--font-size) * var(--line-height)); --v-un: calc(var(--font-size) * var(--line-height));
--h-un: 1ch; --h-un: 1ch;
/* gaps and paddings */
--body-padding-h: var(--h-un);
--body-padding-v: var(--v-un);
--main-gap-h: calc(2 * var(--h-un));
--main-gap-v: 0;
/* font-derived column width */ /* font-derived column width */
--col-w: clamp(33.33vw, 80ch, 100vw); --col-w: clamp(33.33vw, 80ch, 100vw);
/* colors */ /* colors */
--fg-c: #e2e2e2; --fg-c: #000000;
--bg-c: #000000; --bg-c: #e2e2e2;
/*
--link-c: hsl(240 100% 50%);
--visited-c: hsl(270 100% 50%);
--active-c: hsl(0 100% 50%);
*/
--link-c: #856cff; --link-c: #856cff;
--visited-c: #ff1170; --visited-c: #ff1170;
--active-c: #fa3500; --active-c: #fa3500;
} }
/*
@media (prefers-color-scheme: dark) { @media (prefers-color-scheme: dark) {
:root { :root {
--fg-c: #ffffff; --fg-c: #e2e2e2;
--bg-c: #000000; --bg-c: #000000;
--link-c: hsl(240 100% 75%);
--visited-c: hsl(270 100% 75%);
--active-c: hsl(0 100% 75%);
} }
} }
*/
/* reset */ /* reset */
* { * {
@ -63,6 +47,10 @@
scrollbar-color: var(--link-c) rgba(0,0,0,0); scrollbar-color: var(--link-c) rgba(0,0,0,0);
} }
body {
margin: 0;
}
/* content sectioning */ /* content sectioning */
address { address {
font-style: unset; font-style: unset;
@ -70,9 +58,16 @@ address {
h1, h2, h3, h4, h5, h6 { h1, h2, h3, h4, h5, h6 {
font-size: unset; font-size: unset;
}
h1, h2 {
font-weight: bold; font-weight: bold;
} }
h3, h4, h5, h6 {
font-style: italic;
}
/* text content */ /* text content */
:is(h1, h2, h3, h4, h5, h6) { :is(h1, h2, h3, h4, h5, h6) {
@ -152,6 +147,10 @@ a:visited:active {
color: var(--active-c); color: var(--active-c);
} }
code {
color: var(--link-c);
}
/* layout */ /* layout */
body>main { body>main {
width: 100vw; width: 100vw;
@ -160,11 +159,13 @@ body>main {
grid-auto-flow: column; grid-auto-flow: column;
grid-auto-columns: var(--col-w); grid-auto-columns: var(--col-w);
overflow-x: scroll; overflow-x: scroll;
scroll-snap-type: x proximity;
} }
body>main>article { body>main>article {
overflow-y: scroll; overflow-y: scroll;
padding: var(--v-un) var(--h-un); padding: var(--v-un) var(--h-un);
scroll-snap-align: center;
} }
article:focus { article:focus {
@ -186,18 +187,29 @@ aside.footnotes>hr {
} }
/* fenced divs */ /* fenced divs */
div.horizontal { div.horizontal {
display: grid; display: grid;
grid-auto-flow: column; grid-auto-flow: column;
grid-auto-columns: 100%; grid-auto-columns: 100%;
gap: calc(2 * var(--h-un));
overflow-x: scroll; overflow-x: scroll;
scroll-snap-type: x proximity;
} }
div.horizontal>* { div.horizontal>* {
margin-block: unset; margin-block: unset;
scroll-snap-align: center;
} }
/* math */
.display.math { .display.math {
display: block; display: block;
text-align: center; text-align: center;
} }
/* fenced pres */
pre.center {
text-align: center;
}