bavbavhaus.net/public_html/css/style.css

377 lines
4.9 KiB
CSS
Raw Normal View History

2024-01-14 23:03:14 +01:00
/* variables */
2024-01-12 15:08:12 +01:00
:root {
2024-06-09 11:57:37 +02:00
--font-size: 9pt;
2024-05-16 23:09:03 +02:00
--line-height: 1.25;
2024-01-14 23:03:14 +01:00
--font-family: monospace;
/* colors */
2024-05-21 00:52:32 +02:00
--black: #000000;
--red: #fa3500;
--green: #009843;
--orange: #d06600;
--blue: #856cff;
--magenta: #ff1170;
--cyan: #008cca;
--white: #e2e2e2;
--bright-black: #848484;
--bright-red: #ff888e;
--bright-green: #00c55b;
--bright-orange: #ff8d48;
--bright-blue: #ac9fff;
--bright-magenta: #ffb1c0;
--bright-cyan: #92ccff;
--bright-white: #ffffff;
2024-01-14 23:03:14 +01:00
}
2024-06-26 22:17:59 +02:00
@media (min-width: 120ch) {
2024-06-21 15:29:55 +02:00
:root {
--font-size: 12pt;
}
2024-06-09 12:11:23 +02:00
}
2024-01-12 15:08:12 +01:00
/* reset */
2024-04-22 15:21:20 +02:00
2024-01-12 15:08:12 +01:00
* {
box-sizing: border-box;
2024-01-14 23:03:14 +01:00
margin: unset;
hyphens: auto;
2024-06-09 02:36:42 +02:00
overflow-wrap: anywhere;
2024-06-26 16:30:23 +02:00
scrollbar-width: none;
2024-03-17 16:54:31 +01:00
}
2024-01-14 23:03:14 +01:00
/* root */
2024-04-22 15:21:20 +02:00
2024-01-14 23:03:14 +01:00
:root {
2024-06-09 02:41:45 +02:00
color: var(--white);
background-color: var(--black);
2024-01-14 23:03:14 +01:00
font: var(--font-size)/var(--line-height) var(--font-family);
}
2024-05-21 00:52:32 +02:00
::selection {
2024-06-09 02:41:45 +02:00
color: var(--black);
background-color: var(--white);
2024-05-21 00:52:32 +02:00
}
2024-01-14 23:03:14 +01:00
/* content sectioning */
2024-04-22 15:21:20 +02:00
2024-01-14 23:03:14 +01:00
address {
font-style: unset;
2024-01-12 15:08:12 +01:00
}
2024-01-14 23:03:14 +01:00
2024-01-12 15:08:12 +01:00
h1, h2, h3, h4, h5, h6 {
2024-04-22 23:45:06 +02:00
hyphens: none;
2024-01-14 23:03:14 +01:00
font-size: unset;
2024-06-09 02:36:42 +02:00
font-weight: bold;
2024-03-19 02:08:26 +01:00
}
2024-06-09 02:36:42 +02:00
h1::before {
content: "#";
2024-04-22 23:45:06 +02:00
}
2024-06-09 02:36:42 +02:00
h2::before {
content: "##";
2024-01-12 15:08:12 +01:00
}
2024-01-14 23:03:14 +01:00
2024-06-09 02:36:42 +02:00
h3::before {
content: "###";
}
h4::before {
content: "####";
}
h5::before {
content: "#####";
}
h6::before {
content: "######";
}
:is(h1, h2, h3, h4, h5, h6)::before {
color: var(--blue);
}
:is(h1, h2, h3, h4, h5, h6) * {
hyphens: none;
2024-03-19 02:08:26 +01:00
}
2024-01-14 23:03:14 +01:00
/* text content */
2024-03-18 21:08:22 +01:00
:is(h1, h2, h3, h4, h5, h6) {
2024-06-21 15:29:55 +02:00
margin-top: 2rlh;
margin-bottom: 1rlh;
2024-01-12 15:08:12 +01:00
}
2024-01-14 23:03:14 +01:00
2024-06-08 23:05:41 +02:00
:is(aside, blockquote, div, dl, figure, hr, menu, ol, p, pre, table, ul) +
:is(aside, blockquote, div, dl, figure, hr, menu, ol, p, pre, table, ul) {
2024-06-21 15:29:55 +02:00
margin-top: 1rlh;
2024-01-12 15:08:12 +01:00
}
2024-01-14 23:03:14 +01:00
2024-03-18 21:08:22 +01:00
blockquote {
2024-06-08 23:05:41 +02:00
position: relative;
2024-06-21 15:29:55 +02:00
margin-left: 1ch;
2024-06-08 23:05:41 +02:00
}
blockquote::before {
content: ">";
position: absolute;
2024-06-08 23:31:10 +02:00
left: -1ch;
2024-06-08 23:05:41 +02:00
color: var(--blue);
2024-01-14 23:03:14 +01:00
}
2024-03-18 21:08:22 +01:00
dt {
font-style: italic;
2024-03-17 16:54:31 +01:00
}
2024-03-18 21:08:22 +01:00
dd {
2024-06-08 23:31:10 +02:00
position: relative;
2024-06-21 15:29:55 +02:00
margin-left: 1ch;
2024-06-08 23:31:10 +02:00
}
dd::before {
content: ":";
position: absolute;
left: -1ch;
color: var(--blue);
2024-01-14 23:03:14 +01:00
}
2024-06-09 11:57:37 +02:00
dd :is(blockquote, div, dl, figure, hr, menu, ol, p, pre, ul) {
2024-06-21 15:29:55 +02:00
margin-top: unset;
2024-06-09 11:57:37 +02:00
}
2024-06-09 02:36:42 +02:00
figcaption {
position: relative;
2024-06-21 15:29:55 +02:00
margin-left: 1ch;
2024-06-09 02:36:42 +02:00
}
figcaption::before {
content: "!";
position: absolute;
left: -1ch;
color: var(--blue);
}
2024-06-08 23:31:10 +02:00
ol {
2024-06-21 15:29:55 +02:00
padding-left: 2ch;
2024-05-02 20:16:54 +02:00
}
2024-06-08 23:31:10 +02:00
ul, menu {
2024-06-21 15:29:55 +02:00
padding-left: 1ch;
2024-01-14 23:03:14 +01:00
}
:is(ol, ul, menu) :is(ol, ul, menu) {
2024-06-21 15:29:55 +02:00
margin-top: unset;
2024-01-14 23:03:14 +01:00
}
2024-06-08 23:31:10 +02:00
li::marker {
2024-06-09 11:57:37 +02:00
color: var(--blue);
2024-06-09 02:36:42 +02:00
}
ol>li::marker {
content: counter(list-item);
2024-03-18 21:08:22 +01:00
}
2024-01-14 23:03:14 +01:00
ul>li::marker {
2024-06-08 23:31:10 +02:00
content: "-";
}
li :is(blockquote, div, dl, figure, hr, menu, ol, p, pre, ul) {
2024-06-21 15:29:55 +02:00
margin-top: unset;
2024-01-14 23:03:14 +01:00
}
2024-06-26 17:36:39 +02:00
li p+p {
text-indent: 1ch;
}
2024-01-12 15:08:12 +01:00
hr {
2024-01-14 23:03:14 +01:00
color: unset;
border: unset;
2024-01-12 15:08:12 +01:00
}
2024-01-14 23:03:14 +01:00
2024-04-12 23:18:20 +02:00
hr::after {
2024-01-14 23:03:14 +01:00
content: "---";
2024-06-09 02:36:42 +02:00
color: var(--blue);
2024-01-12 15:08:12 +01:00
}
2024-03-18 21:08:22 +01:00
pre {
overflow-y: scroll;
2024-01-14 23:03:14 +01:00
}
2024-06-26 16:03:06 +02:00
pre::before,
pre::after {
display: block;
content: "```";
color: var(--blue);
}
2024-01-14 23:03:14 +01:00
/* inline text semantics */
2024-04-22 15:21:20 +02:00
2024-01-14 23:03:14 +01:00
a {
2024-06-09 02:36:42 +02:00
color: unset;
2024-01-14 23:03:14 +01:00
cursor: pointer;
text-decoration: underline;
}
a:link {
2024-06-09 02:36:42 +02:00
text-decoration-color: var(--blue);
2024-01-14 23:03:14 +01:00
}
2024-06-26 17:36:39 +02:00
a:active {
color: var(--red);
2024-06-09 02:36:42 +02:00
text-decoration-color: var(--red);
2024-01-14 23:03:14 +01:00
}
a:visited {
2024-06-09 02:36:42 +02:00
text-decoration-color: var(--magenta);
2024-01-14 23:03:14 +01:00
}
a:visited:active {
2024-06-09 02:36:42 +02:00
text-decoration-color: var(--red);
2024-01-14 23:03:14 +01:00
}
2024-06-26 16:03:06 +02:00
:not(pre)>code::before,
:not(pre)>code::after {
content: "`";
color: var(--blue);
2024-03-19 02:08:26 +01:00
}
2024-05-16 23:09:03 +02:00
sup {
line-height: 0;
}
2024-04-22 15:21:20 +02:00
2024-05-02 20:16:54 +02:00
/* image and multimedia */
img {
max-width: 100%;
}
2024-04-22 15:21:20 +02:00
/* table content */
table {
2024-06-21 15:29:55 +02:00
width: 100%;
margin-inline: auto;
border-spacing: 0;
2024-04-22 15:21:20 +02:00
}
th, td {
padding-inline: 1ch;
}
th {
hyphens: none;
}
2024-06-21 15:29:55 +02:00
tr {
line-height: calc(1rlh - 2px); /* @hack */
vertical-align: baseline;
}
table caption {
text-align: unset;
}
table caption::before {
content: "!";
color: var(--blue);
2024-04-22 15:21:20 +02:00
}
2024-01-14 23:03:14 +01:00
/* layout */
2024-04-22 15:21:20 +02:00
2024-06-08 23:05:41 +02:00
body {
2024-06-26 22:21:26 +02:00
width: round(down, min(160ch, 100vw), 1ch);
2024-06-09 02:36:42 +02:00
height: 100vh;
2024-06-26 22:17:59 +02:00
margin-left: auto;
margin-right: auto;
2024-06-08 23:05:41 +02:00
}
main {
2024-06-26 22:17:59 +02:00
width: 100%;
2024-06-08 23:05:41 +02:00
height: 100%;
display: grid;
grid-template-columns: 1fr 1fr;
2024-01-12 15:08:12 +01:00
}
2024-03-17 16:54:31 +01:00
2024-06-08 23:05:41 +02:00
main>article#recto {
display: grid;
grid-auto-flow: column;
grid-auto-columns: 100%;
overflow-x: scroll;
scroll-snap-type: inline proximity;
}
main>article#recto>* {
2024-06-26 22:17:59 +02:00
scroll-snap-align: end;
2024-05-04 18:55:46 +02:00
}
2024-06-26 22:17:59 +02:00
main>article#verso,
main>article#recto>* {
2024-06-09 02:36:42 +02:00
overflow-y: scroll;
2024-06-08 23:05:41 +02:00
}
2024-06-26 22:17:59 +02:00
/* article.post */
2024-05-02 20:16:54 +02:00
article.post>header,
2024-06-26 22:17:59 +02:00
article.post>nav {
margin-top: 1rlh;
margin-bottom: 1rlh;
2024-03-18 21:08:22 +01:00
}
2024-05-02 20:16:54 +02:00
/* div.horizontal */
2024-03-19 02:08:26 +01:00
2024-03-17 16:54:31 +01:00
div.horizontal {
display: grid;
grid-auto-flow: column;
grid-auto-columns: 100%;
overflow-x: scroll;
2024-06-09 02:36:42 +02:00
scroll-snap-type: inline proximity;
2024-03-17 16:54:31 +01:00
}
2024-03-18 21:08:22 +01:00
div.horizontal>* {
2024-06-21 15:29:55 +02:00
margin-top: unset;
2024-06-09 02:36:42 +02:00
scroll-snap-align: end;
2024-03-18 21:08:22 +01:00
}
2024-05-02 20:16:54 +02:00
/* .display.math */
2024-03-19 02:08:26 +01:00
2024-03-18 21:08:22 +01:00
.display.math {
display: block;
text-align: center;
}
2024-06-09 11:57:37 +02:00
2024-06-26 17:36:39 +02:00
/* footnotes */
2024-06-26 22:17:59 +02:00
#footnotes>ol {
list-style-position: inside;
padding-left: unset;
}
#footnotes>ol>li>*:first-child {
display: inline;
}
2024-06-09 11:57:37 +02:00
a.footnote-ref>sup {
font-size: unset;
vertical-align: unset;
}
2024-06-26 17:36:39 +02:00
a.footnote-back {
color: var(--blue);
}
a.footnote-back:active {
color: var(--red);
}
/* internal links */
a.internal-next {
color: var(--blue);
}
a.internal-next:active {
color: var(--red);
}