mirror of
https://github.com/foo-dogsquared/website.git
synced 2025-02-23 15:19:00 +00:00
Update site style
This commit is contained in:
parent
b437631f0e
commit
a1c0777c39
@ -1,10 +1,10 @@
|
|||||||
// This is copied from https://stackoverflow.com/a/19721069.
|
// This is copied from https://stackoverflow.com/a/19721069.
|
||||||
$tooltip-size: 5em
|
$tooltip-size: 5em;
|
||||||
|
$line-height: 1.45;
|
||||||
|
|
||||||
:root {
|
:root {
|
||||||
--accented-border-style: var(--content-color) solid .1vw;
|
--accented-border-style: var(--content-color) solid .1vw;
|
||||||
--content-color: var(--base05);
|
--content-color: var(--base05);
|
||||||
--code-size: 50vh;
|
|
||||||
|
|
||||||
--body-family: "Source Serif Pro", "IBM Plex Serif", "Noto Serif", serif;
|
--body-family: "Source Serif Pro", "IBM Plex Serif", "Noto Serif", serif;
|
||||||
--header-family: "Source Sans Pro", "IBM Plex Sans", "Noto Sans", sans-serif;
|
--header-family: "Source Sans Pro", "IBM Plex Sans", "Noto Sans", sans-serif;
|
||||||
@ -18,22 +18,24 @@ $tooltip-size: 5em
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Base styles.
|
// Base styles.
|
||||||
|
a:visited {
|
||||||
|
color: var(--base0C);
|
||||||
|
}
|
||||||
|
|
||||||
|
code {
|
||||||
|
background: var(--base01);
|
||||||
|
}
|
||||||
|
|
||||||
hr {
|
hr {
|
||||||
border-color: var(--content-color);
|
border-color: var(--content-color);
|
||||||
}
|
}
|
||||||
|
|
||||||
nav[aria-label="Primary navigation"] a {
|
pre {
|
||||||
color: var(--base05);
|
background: var(--base00);
|
||||||
}
|
}
|
||||||
|
|
||||||
ul {
|
main > article {
|
||||||
ul, ol {
|
line-height: $line-height;
|
||||||
padding-left: 1em;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
pre, code {
|
|
||||||
max-height: var(--code-size);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Layouts
|
// Layouts
|
||||||
@ -61,6 +63,8 @@ article.post {
|
|||||||
p > span:first-child {
|
p > span:first-child {
|
||||||
white-space: nowrap;
|
white-space: nowrap;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
&:empty { display: none; }
|
||||||
}
|
}
|
||||||
|
|
||||||
// Asciidoctor roles (e.g., [.text-center]) on a block.
|
// Asciidoctor roles (e.g., [.text-center]) on a block.
|
||||||
@ -189,7 +193,7 @@ sup.footnote {
|
|||||||
}
|
}
|
||||||
|
|
||||||
#footnotes > *:not(hr) {
|
#footnotes > *:not(hr) {
|
||||||
line-height: 1.45;
|
line-height: $line-height;
|
||||||
margin: 1em;
|
margin: 1em;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user