style stuff

This commit is contained in:
Rhiannon Morris 2020-11-04 19:06:04 +01:00
parent fc8addf075
commit 12af27c0b7

View file

@ -5,7 +5,7 @@
@import url(counters.css); @import url(counters.css);
:root { :root {
--root-col: hsl(0deg, 2%, 19%); --root-col: hsl(30deg, 5%, 26%);
--fg-col: hsl(336deg, 17%, 11%); --fg-col: hsl(336deg, 17%, 11%);
--bg-col: hsl(40deg, 91%, 98%); --bg-col: hsl(40deg, 91%, 98%);
--link-col: hsl(355deg, 52%, 48%); --link-col: hsl(355deg, 52%, 48%);
@ -17,7 +17,7 @@
background: var(--root-col); background: var(--root-col);
font-family: Muller; font-family: Muller;
font-size: 18pt; font-size: 15pt;
height: 100vh; height: 100vh;
} }
@ -26,8 +26,9 @@ body {
background: url(paper.png), var(--bg-col); background: url(paper.png), var(--bg-col);
background-blend-mode: multiply; background-blend-mode: multiply;
color: var(--fg-col); color: var(--fg-col);
box-shadow: 0 0 5em var(--fg-col);
max-width: 42em; max-width: 50em;
min-height: 100%; min-height: 100%;
margin: 0 auto; margin: 0 auto;
padding: 1em 2em 3em; padding: 1em 2em 3em;
@ -35,7 +36,6 @@ body {
box-sizing: border-box; box-sizing: border-box;
} }
header { header {
text-align: center; text-align: center;
} }
@ -92,6 +92,33 @@ ul li {
list-style: '— '; list-style: '— ';
} }
table {
margin: auto;
border-spacing: 0;
border-top: 2px solid var(--root-col);
border-bottom: 2px solid var(--root-col);
}
th {
font-weight: 500;
border-bottom: 1px solid var(--root-col);
}
td, th {
padding: 0 0.5em;
vertical-align: text-bottom;
}
code {
font-family: PragmataPro;
font-size: 90%;
}
pre {
width: min-content;
margin: auto;
}
.ipa, .lang { .ipa, .lang {
font-family: var(--ipa-font); font-family: var(--ipa-font);
@ -100,3 +127,76 @@ ul li {
.lang { .lang {
font-weight: 500; font-weight: 500;
} }
.abbr {
font-size: 70%;
font-weight: 500;
}
#toc > h2 {
font-size: 120%;
font-weight: 300;
}
#toc > ul {
columns: 2;
margin-left: 2em;
margin-right: 2em;
}
figure {
text-align: center;
}
figure table {
display: inline-table;
margin: 0.5em 0.5em;
}
.gloss {
border: none;
text-align: left;
}
.gloss-lang, .gloss-pron, .gloss-split {
font-family: var(--ipa-font);
line-height: 115%;
}
figure ul {
text-align: left;
margin-left: 5em;
margin-right: 5em;
columns: 2;
}
figure li {
break-inside: avoid;
}
dt { font-weight: 500; float: left; clear: left; }
dd { margin-left: 4em; }
dt {
break-after: avoid;
}
dd {
break-before: avoid;
}
.twocol {
columns: 2;
}
.threecol {
columns: 3;
}
.twocol :first-child, .threecol :first-child {
margin-top: 0;
}
footer {
border-top: 1px solid var(--root-col);
width: 80%;
margin: 2em auto 1em;
padding-top: 0.5em;
font-size: 80%;
font-weight: 500;
text-align: center;
}