gmi-web/gmi.css

186 lines
3.1 KiB
CSS
Raw Normal View History

2020-12-11 23:22:09 +00:00
* {
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;
}
body {
max-width: 48rem;
padding: .5rem;
2021-01-26 00:54:35 +00:00
margin: 0 auto;
2020-12-11 23:22:09 +00:00
}
h1,
h2,
h3 {
font-family: var(--sans-serif);
line-height: 1.25;
}
h1 {
2021-01-26 00:54:35 +00:00
font-size: 3rem;
2020-12-11 23:22:09 +00:00
}
h2 {
2021-01-26 00:54:35 +00:00
font-size: 2.25rem;
2020-12-11 23:22:09 +00:00
}
h3 {
2021-01-26 00:54:35 +00:00
font-size: 1.5rem;
2020-12-11 23:22:09 +00:00
}
p {
font-size: var(--font-size);
font-family: var(--serif);
line-height: var(--line-height);
}
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;
2020-12-24 00:23:31 +00:00
display: block;
2020-12-11 23:22:09 +00:00
}
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;
}
2021-01-26 00:54:35 +00:00
/* 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);
}
2020-12-11 23:22:09 +00:00
::selection,
::-moz-selection {
color: var(--background);
background-color: var(--foreground);
}
pre::selection,
pre::-moz-selection {
color: var(--foreground);
background-color: var(--background);
}
2021-01-26 00:54:35 +00:00
a:hover {
color: var(--background);
background-color: var(--foreground)
}
@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)
}
}