lang/style/page.css

338 lines
4.9 KiB
CSS
Raw Normal View History

2020-08-18 04:33:25 -04:00
@import url(fonts/muller/muller.css);
2024-11-26 10:31:55 -05:00
@import url(fonts/junicode/junicode.css);
2020-10-30 02:56:57 -04:00
@import url(fonts/pragmatapro/pragmatapro.css);
2020-08-18 04:33:25 -04:00
@import url(counters.css);
:root {
2020-11-04 13:06:04 -05:00
--root-col: hsl(30deg, 5%, 26%);
2020-08-18 04:33:25 -04:00
--fg-col: hsl(336deg, 17%, 11%);
--bg-col: hsl(40deg, 91%, 98%);
2020-08-18 12:47:03 -04:00
--link-col: hsl(355deg, 52%, 48%);
2020-10-30 02:56:57 -04:00
2024-11-26 10:31:55 -05:00
--ipa-font: Junicode;
--body-font: Muller;
--junicode-features:
"ccmp", "calt", "liga", "locl", "mark", "mkmk",
"ss01", "cv91" 2;
/* ccmp: glyph composition (required)
* calt: contextual alternates (required)
* liga: standard ligatures (required)
* locl: localised forms
* mark/mkmk: mark (diacritic) positioning (required)
* ss01: modern icelandic Þþð
* cv91: alternate Ŋ (the one that's like a big ŋ with no descender)
*/
2020-08-18 04:33:25 -04:00
}
:root {
background: var(--root-col);
2024-11-26 10:31:55 -05:00
/* font-family: var(--body-font); */
font-family: var(--ipa-font);
font-feature-settings: var(--junicode-features);
font-weight: 500;
font-stretch: semi-expanded;
2021-04-28 06:37:10 -04:00
font-size: 16pt;
2020-08-18 04:33:25 -04:00
2024-11-26 10:31:55 -05:00
line-height: 150%;
2020-08-18 04:33:25 -04:00
height: 100vh;
}
body {
background: url(paper.png), var(--bg-col);
background-blend-mode: multiply;
color: var(--fg-col);
2020-11-04 13:06:04 -05:00
box-shadow: 0 0 5em var(--fg-col);
2020-08-18 04:33:25 -04:00
2020-11-04 13:06:04 -05:00
max-width: 50em;
2020-08-18 04:33:25 -04:00
min-height: 100%;
margin: 0 auto;
padding: 1em 2em 3em;
box-sizing: border-box;
}
2020-08-18 12:47:03 -04:00
header {
text-align: center;
}
header h1 {
2024-11-26 10:31:55 -05:00
font-size: 250%;
margin-top: 0.4em;
2020-08-18 04:33:25 -04:00
}
2020-08-18 12:47:03 -04:00
h1, h2, h3, h4, h5, h6 {
2024-11-26 10:31:55 -05:00
font-stretch: semi-condensed;
font-weight: 600;
2020-08-18 12:47:03 -04:00
margin: 1em 0 0.25em;
2020-08-18 04:33:25 -04:00
}
2024-11-26 10:31:55 -05:00
h1 { font-size: 200%; }
h2 { font-size: 180%; }
h3 { font-size: 160%; }
h4 { font-size: 140%; }
h5 { font-size: 120%; }
h6 { font-size: 100%; }
2020-08-18 04:33:25 -04:00
a {
color: var(--link-col);
}
2020-08-18 12:47:03 -04:00
b, strong {
2024-11-26 10:31:55 -05:00
font-weight: 700;
2020-08-18 12:47:03 -04:00
}
ul li {
list-style: '— ';
}
2020-11-04 13:06:04 -05:00
table {
margin: auto;
border-spacing: 0;
border-top: 2px solid var(--root-col);
border-bottom: 2px solid var(--root-col);
}
th {
2024-11-26 10:31:55 -05:00
font-weight: 700;
2021-04-28 06:37:20 -04:00
}
thead th {
2020-11-04 13:06:04 -05:00
border-bottom: 1px solid var(--root-col);
}
td, th {
padding: 0 0.5em;
vertical-align: text-bottom;
}
code {
font-family: PragmataPro;
2024-11-26 10:31:55 -05:00
font-size: 80%;
font-weight: 400;
2020-11-04 13:06:04 -05:00
}
pre {
width: min-content;
margin: auto;
}
2020-08-18 04:33:25 -04:00
2021-04-28 06:33:17 -04:00
.ipa, .lang, .ebnf-t {
2020-10-30 02:56:57 -04:00
font-family: var(--ipa-font);
2021-04-28 06:33:17 -04:00
2024-11-26 10:31:55 -05:00
font-feature-settings: var(--junicode-features);
2021-05-20 16:15:24 -04:00
text-underline-offset: 0.125em;
2020-10-30 02:56:57 -04:00
}
2021-04-28 06:33:17 -04:00
.ipa {
2024-11-26 10:31:55 -05:00
font-feature-settings: "ss03";
/* ss03: latin-style greek letters */
2020-10-30 02:56:57 -04:00
font-weight: 500;
2021-04-28 06:33:17 -04:00
}
.lang, .ebnf-t {
font-weight: 700;
2020-08-18 04:33:25 -04:00
}
2020-11-04 13:06:04 -05:00
.abbr {
font-size: 70%;
font-weight: 500;
}
2021-04-29 06:03:39 -04:00
.scr {
height: 1.5em;
vertical-align: -40%;
padding-right: 0.5ex;
}
.gloss .scr {
height: 2em;
}
:is(.splash, .example) .scr {
height: unset;
display: block;
margin: auto;
}
.example {
margin: auto;
}
.example .text {
display: block;
text-align: center;
2021-04-29 13:03:17 -04:00
width: 80%;
margin: 0.75em auto 0;
}
blockquote {
font-style: italic;
2021-04-29 06:03:39 -04:00
}
.letter-list {
margin: 1.25em auto 0;
display: flex;
flex-direction: row;
flex-wrap: wrap;
2024-11-26 10:31:55 -05:00
justify-content: center;
width: 80%;
2021-04-29 06:03:39 -04:00
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%;
}
main nav {
text-align: center;
font-size: 125%;
}
2020-11-04 13:06:04 -05:00
#toc > h2 {
font-size: 120%;
font-weight: 300;
}
#toc > ul {
columns: 2;
margin-left: 2em;
margin-right: 2em;
}
2021-04-29 13:03:17 -04:00
figure:not(.left) {
2020-11-04 13:06:04 -05:00
text-align: center;
}
2021-06-11 05:08:49 -04:00
figure:not(.left) table {
2020-11-04 13:06:04 -05:00
display: inline-table;
2021-06-11 05:08:49 -04:00
}
figure table {
margin: 1em 0.5em;
2020-11-04 13:06:04 -05:00
}
.gloss {
border: none;
text-align: left;
}
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;
}
2021-04-28 06:31:31 -04:00
u u {
text-decoration: double underline;
}
2021-04-28 06:37:20 -04:00
:is(.twocol, .threecol):not(:is(ul, ol) *) {
margin-top: 1em;
}
2020-11-04 13:06:04 -05:00
.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;
}
2021-04-28 06:37:42 -04:00
.ebnf {
border: none;
}
.ebnf td {
padding: 0 0.15em;
}
.ebnf-nt {
font-weight: 500;
2024-11-26 10:32:06 -05:00
color: hsl(155deg, 80%, 20%);
2021-04-28 06:37:42 -04:00
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%);
}
2021-06-11 05:08:57 -04:00
2024-11-26 10:32:06 -05:00
.ebnf-f {
font-weight: bold;
color: hsl(280deg, 80%, 30%);
}
.ebnf-com {
font-style: italic;
color: hsl(350deg, 20%, 40%);
margin-left: 1em;
}
2021-06-11 05:08:57 -04:00
blockquote {
max-width: 70%;
border-left: 1px solid black;
padding-left: 1em;
margin: auto;
}