191 lines
3.3 KiB
CSS
191 lines
3.3 KiB
CSS
* {
|
|
display: block;
|
|
max-width: 100%;
|
|
margin: 0;
|
|
padding: 0;
|
|
overflow-wrap: anywhere
|
|
}
|
|
|
|
:root {
|
|
--foreground: black;
|
|
--background: white;
|
|
--line-height: 1.5;
|
|
--font-size: 1.25rem;
|
|
--mono: Consolas, monaco, monospace;
|
|
--serif: font-family:georgia, times, serif;
|
|
--sans-serif: -apple-system, BlinkMacSystemFont, 'avenir next', avenir, helvetica, 'helvetica neue', ubuntu, roboto, noto, 'segoe ui', arial, sans-serif;
|
|
--text-indent: 0rem;
|
|
}
|
|
|
|
body {
|
|
max-width: 48rem;
|
|
padding: .5rem;
|
|
margin: 0 auto;
|
|
}
|
|
h1,
|
|
h2,
|
|
h3 {
|
|
font-family: var(--sans-serif);
|
|
line-height: 1.25;
|
|
}
|
|
|
|
h1 {
|
|
font-size: 3rem;
|
|
}
|
|
|
|
h2 {
|
|
font-size: 2.25rem;
|
|
}
|
|
|
|
h3 {
|
|
font-size: 1.5rem;
|
|
}
|
|
|
|
p {
|
|
font-size: var(--font-size);
|
|
font-family: var(--serif);
|
|
line-height: var(--line-height);
|
|
text-indent: var(--text-indent);
|
|
}
|
|
|
|
br {
|
|
line-height: 1
|
|
}
|
|
|
|
a::before {
|
|
font-size: var(--font-size);
|
|
font-family: var(--mono);
|
|
content: "⇒";
|
|
padding-right: .25rem;
|
|
vertical-align: middle
|
|
}
|
|
|
|
a {
|
|
font-size: var(--font-size);
|
|
font-family: var(--serif);
|
|
text-decoration: none;
|
|
}
|
|
|
|
li::before {
|
|
font-size: var(--font-size);
|
|
font-family: var(--mono);
|
|
content: "*";
|
|
vertical-align: middle;
|
|
padding-right: .5rem;
|
|
}
|
|
|
|
ul {
|
|
font-size: var(--font-size);
|
|
font-family: var(--serif);
|
|
line-height: 1.25;
|
|
list-style-type: none;
|
|
}
|
|
|
|
blockquote {
|
|
font-size: var(--font-size);
|
|
font-family: var(--serif);
|
|
line-height: var(--line-height);
|
|
padding-left: .75rem;
|
|
}
|
|
|
|
pre {
|
|
font-size: 1rem;
|
|
font-family: var(--mono);
|
|
line-height: 1;
|
|
padding: 1.25rem;
|
|
overflow-y: auto;
|
|
}
|
|
|
|
pre+blockquote {
|
|
padding-top: .5rem;
|
|
padding-bottom: .5rem;
|
|
}
|
|
|
|
/* foreground and background colors */
|
|
html, body {
|
|
color: var(--foreground);
|
|
background-color: var(--background);
|
|
}
|
|
|
|
h1,
|
|
h2,
|
|
h3,
|
|
p,
|
|
a,
|
|
ul,
|
|
blockquote {
|
|
color: var(--foreground);
|
|
background-color: var(--background);
|
|
}
|
|
|
|
blockquote {
|
|
border-left: .5rem solid var(--foreground);
|
|
}
|
|
|
|
pre {
|
|
color: var(--background);
|
|
background-color: var(--foreground);
|
|
}
|
|
|
|
::selection,
|
|
::-moz-selection {
|
|
color: var(--background);
|
|
background-color: var(--foreground);
|
|
}
|
|
|
|
pre::selection,
|
|
pre::-moz-selection {
|
|
color: var(--foreground);
|
|
background-color: var(--background);
|
|
}
|
|
|
|
a:hover {
|
|
color: var(--background);
|
|
background-color: var(--foreground);
|
|
}
|
|
|
|
/* when system preference is "dark" invert foreground and background colors */
|
|
@media (prefers-color-scheme: dark) {
|
|
html, body {
|
|
color: var(--background);
|
|
background-color: var(--foreground);
|
|
}
|
|
|
|
h1,
|
|
h2,
|
|
h3,
|
|
p,
|
|
a,
|
|
ul,
|
|
blockquote {
|
|
color: var(--background);
|
|
background-color: var(--foreground);
|
|
}
|
|
|
|
blockquote {
|
|
border-left: .5rem solid var(--background);
|
|
}
|
|
|
|
pre {
|
|
color: var(--foreground);
|
|
background-color: var(--background);
|
|
}
|
|
|
|
::selection,
|
|
::-moz-selection {
|
|
color: var(--foreground);
|
|
background-color: var(--background);
|
|
}
|
|
|
|
pre::selection,
|
|
pre::-moz-selection {
|
|
color: var(--background);
|
|
background-color: var(--foreground);
|
|
}
|
|
|
|
a:hover {
|
|
color: var(--foreground);
|
|
background-color: var(--background);
|
|
}
|
|
}
|