blog/style/page.css

633 lines
9.5 KiB
CSS
Raw Normal View History

2024-09-15 11:50:10 -04:00
@import url(counters.css);
2023-12-27 19:00:25 -05:00
@import url(fonts/schola/schola.css);
2021-07-23 21:35:02 -04:00
@import url(fonts/muller/muller.css);
@import url(fonts/junius/junius.css);
@import url(fonts/pragmatapro/pragmatapro.css);
:root {
--ipa-font: JuniusX;
2024-09-15 11:50:10 -04:00
--light: #feb;
--dark: #325;
--mid: #83869e;
--red1: #f42;
--red2: #d16;
--fg: var(--dark);
--bg: var(--light);
--accent: var(--red1);
--other-accent: var(--red2);
2021-07-23 21:35:02 -04:00
}
:root {
2024-09-15 11:50:10 -04:00
background: var(--bg);
color: var(--fg);
2021-07-23 21:35:02 -04:00
2024-09-15 11:50:10 -04:00
font-family: PragmataPro;
font-size: 13pt;
}
2021-07-23 21:35:02 -04:00
2024-09-15 11:50:10 -04:00
@media (prefers-color-scheme: dark) {
:root {
--fg: var(--light);
--bg: var(--dark);
--accent: var(--red2);
--other-accent: var(--red1);
}
2021-07-23 21:35:02 -04:00
}
2024-09-15 11:50:10 -04:00
:root, body { margin: 0; padding: 0; }
main {
border-bottom: 2px dotted var(--fg);
2021-07-23 21:35:02 -04:00
max-width: 50em;
min-height: 100%;
2024-09-15 11:50:10 -04:00
margin: 1em auto 0;
padding: 0.5em 2em;
line-height: 150%;
2021-07-23 21:35:02 -04:00
box-sizing: border-box;
}
header {
text-align: center;
2024-09-15 11:50:10 -04:00
text-wrap: balance;
background: var(--fg);
color: var(--bg);
--accent: var(--other-accent);
padding: 1em;
2021-07-23 21:35:02 -04:00
}
header h1 {
2024-09-15 12:27:50 -04:00
font-size: 200%;
2024-09-15 11:50:10 -04:00
margin: 0;
2021-07-23 21:35:02 -04:00
}
2024-09-15 11:50:10 -04:00
/* h1, h2, h3, h4, h5, h6 { */
2021-07-23 21:35:02 -04:00
h1 {
2024-09-15 11:50:10 -04:00
margin: 1em 0 0.25em;
2021-07-23 21:35:02 -04:00
2024-09-15 11:50:10 -04:00
font-weight: normal;
font-variant-east-asian: full-width;
-moz-font-feature-settings: "fwid";
-webkit-font-feature-settings: "fwid";
font-feature-settings: "fwid";
2021-07-23 21:35:02 -04:00
2024-09-15 11:50:10 -04:00
clear: both;
2021-07-23 21:35:02 -04:00
2024-09-15 11:50:10 -04:00
font-size: 100%;
2021-07-23 21:35:02 -04:00
}
2024-09-15 11:50:10 -04:00
h1 { font-size: 125%; }
h2 { font-size: 125%; }
h3 { font-size: 120%; }
h4 { font-size: 110%; }
h5 { font-size: 100%; }
h6 { font-size: 100%; }
2021-07-23 21:35:02 -04:00
2024-09-15 11:50:10 -04:00
main h1 {
background: var(--fg);
color: var(--bg);
padding: 0.25rem 0.75rem;
margin-bottom: 1rem;
2021-07-23 21:35:02 -04:00
}
2024-09-15 11:50:10 -04:00
main :is(h2, h3, h4, h5, h6) {
padding: 0.25rem 0.75rem;
border-bottom: 2px dotted var(--fg);
margin-bottom: 1rem;
2021-07-23 21:35:02 -04:00
}
hr {
2024-09-15 11:50:10 -04:00
border: none;
border-bottom: 2px dotted var(--fg);
2021-07-23 21:35:02 -04:00
height: 0;
}
2022-03-14 23:42:38 -04:00
pre + hr {
margin-top: 1.5em;
}
2021-07-23 21:35:02 -04:00
.meta {
2024-09-15 11:50:10 -04:00
margin-top: 1rem;
2021-07-23 21:35:02 -04:00
display: flex;
2024-09-15 11:50:10 -04:00
column-gap: 2em;
2021-07-23 21:35:02 -04:00
align-items: baseline;
justify-content: center;
}
2021-07-25 08:48:59 -04:00
header .date {
2024-09-15 11:50:10 -04:00
font-variant-east-asian: normal;
-moz-font-feature-settings: normal;
-webkit-font-feature-settings: normal;
font-feature-settings: normal;
font-size: 100%;
2021-07-23 21:35:02 -04:00
2024-09-15 11:50:10 -04:00
margin: 0;
2021-07-23 21:35:02 -04:00
}
.tags ul {
display: inline;
padding: 0;
}
.tags li {
list-style: none;
display: inline;
}
.tags li + li {
margin-left: 0.75ex;
}
2022-07-12 15:19:29 -04:00
.tag-list {
2021-07-25 08:48:59 -04:00
columns: 2;
}
.post-list .date, .tag-list .count {
font-size: 85%;
2024-09-15 11:46:06 -04:00
}
.post-list li + li {
margin-top: 0.5em;
}
.post-desc {
margin: 0;
font-size: small;
2021-07-25 08:48:59 -04:00
font-style: italic;
2024-09-15 11:46:06 -04:00
line-height: 125%;
}
.post-desc p {
margin: 0;
}
.post-desc p + p {
margin-top: .5em;
2021-07-25 08:48:59 -04:00
}
2021-07-23 21:35:02 -04:00
a {
2024-09-15 11:50:10 -04:00
color: inherit;
text-decoration: 2px dotted underline var(--accent);
2021-07-23 21:35:02 -04:00
}
2024-09-15 11:50:10 -04:00
a:hover { color: var(--accent); }
2021-07-23 21:35:02 -04:00
b, strong {
font-weight: 600;
}
2023-12-27 19:00:25 -05:00
dfn {
font-style: normal;
font-weight: 500;
}
2024-09-15 11:50:10 -04:00
ul li { list-style: '❀ '; }
.post-list li { list-style: '✒ '; }
.tag-list li { list-style: ' '; } /* a tag in pragmatapro */
2021-07-23 21:35:02 -04:00
table {
margin: auto;
border-spacing: 0;
2024-09-15 11:50:10 -04:00
border-top: 2px solid var(--fg);
border-bottom: 2px solid var(--fg);
2021-07-23 21:35:02 -04:00
}
th {
font-weight: 500;
}
thead th {
2024-09-15 11:50:10 -04:00
border-bottom: 1px solid var(--fg);
2021-07-23 21:35:02 -04:00
}
td, th {
padding: 0 0.5em;
vertical-align: text-bottom;
}
code {
font-family: PragmataPro;
2024-09-15 11:50:10 -04:00
font-size: inherit;
2021-07-23 21:35:02 -04:00
}
pre {
2023-12-27 19:00:25 -05:00
clear: both;
2022-03-14 23:42:38 -04:00
width: min-content;
margin: 0.5em auto;
padding: 0.5em 0.8em;
2024-09-15 11:50:10 -04:00
border: 1px solid var(--fg);
2022-03-14 23:42:38 -04:00
background: hsla(0deg, 0%, 100%, 40%);
2021-07-23 21:35:02 -04:00
}
.ipa, .lang, .ebnf-t {
2024-09-15 11:50:10 -04:00
/* font-family: var(--ipa-font); */
2021-07-23 21:35:02 -04:00
font-feature-settings:
"ccmp", "calt", "liga", "loca", "mark", "mkmk", "ss01";
/* ss01 to use modern Þþð design, others to make juniusx go brrr
* maybe i can just turn loca off but idk what other regional forms
* it does that i actually want */
text-underline-offset: 0.125em;
}
2024-09-15 11:50:10 -04:00
.lang, .ebnf-t { font-weight: 500; }
2021-07-23 21:35:02 -04:00
2024-09-15 11:50:10 -04:00
.abbr-list dt {
font-family: PragmataPro;
font-weight: normal;
2021-07-23 21:35:02 -04:00
}
2024-09-15 11:50:10 -04:00
.gloss .abbr, .abbr-list dt {
font-variant: all-small-caps;
2021-07-23 21:35:02 -04:00
}
.scr {
height: 1.5em;
vertical-align: -40%;
2024-09-15 11:50:10 -04:00
margin-right: 0.5ex;
padding: 2px;
background: var(--light);
}
.gloss-split, .gloss-gloss {
font-size: 80%;
2021-07-23 21:35:02 -04:00
}
2024-09-15 11:50:10 -04:00
:is(.gloss, .bigscr) .scr {
2021-07-23 21:35:02 -04:00
height: 2em;
}
:is(.splash, .example) .scr {
height: unset;
display: block;
margin: auto;
}
.example {
margin: auto;
}
.example .text {
display: block;
text-align: center;
width: 80%;
margin: 0.75em auto 0;
}
blockquote {
font-style: italic;
}
.letter-list {
margin: 1.25em auto 0;
display: flex;
flex-direction: row;
flex-wrap: wrap;
justify-content: space-around;
width: 80%;
row-gap: 0.5em;
column-gap: 1.5em;
}
.letter-list + .letter-list {
margin-top: 2.5em;
}
.letter-list .lang {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
}
.letter-list .scr {
height: 3em;
margin-left: 0.5em;
}
.letter-list .text {
font-size: 125%;
}
#toc > ul {
columns: 2;
margin-left: 2em;
margin-right: 2em;
2024-09-15 11:50:10 -04:00
> li { list-style: circled; }
2021-07-23 21:35:02 -04:00
}
2024-09-15 11:50:10 -04:00
figure img {
max-width: 100%;
}
figure img:not(.scr) {
border: 3px solid currentcolor;
}
2021-07-23 21:35:02 -04:00
figure:not(.left) {
text-align: center;
}
figure:not(.left) table {
display: inline-table;
}
figure table {
margin: 1em 0.5em;
}
.gloss {
border: none;
text-align: left;
}
figure ul {
text-align: left;
margin-left: 5em;
margin-right: 5em;
columns: 2;
}
figure li {
break-inside: avoid;
}
2023-12-27 19:00:25 -05:00
figcaption {
font-size: 80%;
font-style: italic;
2024-09-15 11:50:10 -04:00
margin: 0 auto;
2023-12-27 19:00:25 -05:00
}
:not(.floating) > figcaption {
width: 75%;
}
2024-09-15 11:50:10 -04:00
figcaption:first-child { margin-bottom: 0.5em; }
figcaption:last-child { margin-top: 0.5em; }
2021-07-23 21:35:02 -04:00
dt {
2024-09-15 11:50:10 -04:00
font-weight: 500;
display: inline;
2021-07-23 21:35:02 -04:00
break-after: avoid;
}
dd {
2024-09-15 11:50:10 -04:00
margin-left: 1em;
display: inline;
2021-07-23 21:35:02 -04:00
break-before: avoid;
}
2024-09-15 11:50:10 -04:00
dd::after {
content: '';
display: block;
}
2021-07-23 21:35:02 -04:00
u u {
text-decoration: double underline;
}
:is(.twocol, .threecol):not(:is(ul, ol) *) {
margin-top: 1em;
}
.twocol {
columns: 2;
}
.threecol {
columns: 3;
}
.twocol :first-child, .threecol :first-child {
margin-top: 0;
}
2023-12-27 19:00:25 -05:00
.twocol-grid {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 1em;
margin: 1em 0;
}
.twocol-grid .gloss {
margin-left: 0;
}
2021-07-23 21:35:02 -04:00
footer {
2023-12-27 19:00:25 -05:00
clear: both;
2024-09-15 11:50:10 -04:00
margin: 1.5em auto 3em;
2021-07-23 21:35:02 -04:00
font-size: 80%;
font-weight: 500;
text-align: center;
}
2024-09-15 11:50:10 -04:00
footer ul::before {
margin: 0;
content: '➸ ';
}
footer ul::after {
margin: 0;
content: ' 🐌︎';
}
footer li {
display: inline;
list-style: none;
}
footer li + li::before { content: ' · '; }
2021-07-23 21:35:02 -04:00
.ebnf {
border: none;
}
.ebnf td {
padding: 0 0.15em;
}
.ebnf-nt {
font-weight: 500;
color: hsl(155deg, 80%, 30%);
white-space: nowrap;
}
.ebnf-punc {
color: hsl(25deg, 40%, 30%);
}
.ebnf-sub, .ebnf-brack {
color: hsl(210deg, 80%, 35%);
font-weight: 500;
}
.ebnf-brack {
padding: 0 0.05em;
}
.ebnf-s {
font-style: italic;
color: hsl(330deg, 80%, 30%);
}
blockquote {
max-width: 70%;
border-left: 1px solid black;
padding-left: 1em;
margin: auto;
}
2022-03-14 23:40:25 -04:00
2023-12-27 19:00:25 -05:00
.note, aside {
2022-03-14 23:42:38 -04:00
font-size: 90%;
2023-12-27 19:00:25 -05:00
}
.note {
font-style: italic;
}
:is(h1, h2) .note {
font-size: 75%;
}
aside {
2022-03-14 23:42:38 -04:00
margin: 0.5em 3em;
}
2023-12-27 19:00:25 -05:00
aside:not(.no-line) {
2024-09-15 11:50:10 -04:00
padding-left: 1em;
border-left: 2px solid var(--fg);
2023-12-27 19:00:25 -05:00
}
aside > details summary {
font-weight: 600;
}
aside :is(h1, h2, h3, h4, h5, h6) {
margin-top: 0.25em;
font-weight: 600;
}
aside h1 { font-size: 115%; }
aside :is(h2, h3, h4, h5, h6) { font-size: 100%; }
2022-03-14 23:42:38 -04:00
2023-12-27 19:00:25 -05:00
:is(aside, figure).floating {
max-width: 33%;
}
aside.floating {
padding: 0.25em 0.75em;
margin: 0.15em 1em 0;
}
figure.floating {
margin: 0 0.5em;
}
aside.floating :first-child { margin-top: 0; }
aside.floating :last-child { margin-bottom: 0; }
2022-03-14 23:42:38 -04:00
2022-07-12 15:19:03 -04:00
.kw { color: hsl(300deg, 60%, 30%); }
2022-09-17 14:57:32 -04:00
.pp { color: hsl(343deg, 100%, 40%); /* font-weight: 500; */ }
.dt { color: hsl(173deg, 100%, 24%); /* font-weight: 500; */ }
2023-12-27 19:00:25 -05:00
.fu, .at { color: hsl(34deg, 100%, 30%); /* font-weight: 500; */ }
2022-09-17 14:57:32 -04:00
.va { color: hsl(203deg, 100%, 30%); /* font-weight: 500; */ }
.cf { color: hsl(276deg, 75%, 35%); /* font-weight: 500; */ }
2022-07-12 15:19:03 -04:00
.op { color: hsl(220deg, 40%, 33%); }
2023-12-27 19:00:25 -05:00
.co { color: hsl(221deg, 10%, 39%); /* font-style: italic; */ }
2022-09-17 14:57:32 -04:00
.bu { color: hsl(120deg, 85%, 25%); }
2023-12-27 19:00:25 -05:00
.st, .fl, .dv, .bn, .sc, .ss { color: hsl(143deg, 100%, 20%); }
2022-07-12 15:19:03 -04:00
.wa { color: hsl(350deg, 80%, 25%); text-decoration: wavy 1.5px underline; }
.al { color: hsl(350deg, 80%, 25%); }
2022-09-17 14:57:25 -04:00
.cn { color: hsl(343deg, 100%, 30%); }
2023-12-27 19:00:25 -05:00
.floating {
float: right;
margin: 0.5em 1em 0.5em 2em;
}
.floating.left {
float: left;
margin: 0.5em 2em 0.5em 1em;
}
.shaped {
/* maybe one day... */
/* shape-outside: attr(src url); */
shape-margin: 1em;
}
.shadow { filter: drop-shadow(5px 5px 8px #0006); }
.pixel {
image-rendering: crisp-edges;
image-rendering: pixelated;
}
2024-09-15 12:27:50 -04:00
.emoji {
height: 1em;
width: 1em;
vertical-align: -0.1em;
}
2023-12-27 19:00:25 -05:00
.citation {
font-size: 90%;
}
#refs {
margin-top: 0.75em;
}
.csl-entry {
margin-left: 2em;
text-indent: -2em;
}
/*
.csl-entry {
display: grid;
grid-template-columns: 4ch auto;
grid-gap: 1ex;
}
.csl-left-margin {
justify-self: end;
}
*/
2024-09-15 11:50:10 -04:00
math[display=block] {
border: 2px dotted var(--fg);
padding: 1em 3em;
margin: auto;
width: min-content;
}
.rulebox math[display=block] {
border: none;
padding: 0;
}
2023-12-27 19:00:25 -05:00
.texdefs {
display: none;
}
.rulebox {
float: right;
2024-09-15 11:50:10 -04:00
border: 1px solid var(--fg);
2023-12-27 19:00:25 -05:00
background: #ffffff66;
padding: .4em 1.2em;
2024-09-15 11:50:10 -04:00
margin-left: 3em;
2023-12-27 19:00:25 -05:00
}
/* the last thing in the :is is for priority fuckery */
.rulebox :is(p, .math, mjx-container, #asd) {
margin: 0;
padding: 0;
}
.clear { clear: both; }
mark {
mix-blend-mode: multiply;
background: #fbc;
padding: 0 0.35ch;
}
2024-09-15 11:50:10 -04:00
.light {
background: var(--light);
color: var(--dark);
}