Website/public/style.css

97 lines
1.5 KiB
CSS
Raw Normal View History

2023-03-21 17:23:14 +00:00
:root {
2023-04-08 22:08:53 +00:00
--primary: #fffafa;
--secondary: #f6ebeb;
2023-03-21 17:23:14 +00:00
--text: #111;
2023-04-08 22:08:53 +00:00
--links: #156215;
--border: #e6d1d1;
2023-03-21 17:23:14 +00:00
}
@media (prefers-color-scheme: dark) {
:root {
2023-04-08 22:08:53 +00:00
--primary: #000;
2023-03-30 21:58:54 +00:00
--secondary: #222222;
2023-03-21 17:23:14 +00:00
--text: #eee;
--links: #aaf;
2023-04-08 22:08:53 +00:00
--border: #333;
2023-03-21 17:23:14 +00:00
}
img {
2023-04-08 22:08:53 +00:00
filter: brightness(90%);
2023-03-21 17:23:14 +00:00
}
}
2023-04-08 22:08:53 +00:00
hr {
border: 0;
border-top: 3px dotted var(--border);
}
2023-03-21 17:23:14 +00:00
body {
background: var(--primary);
margin: 0;
color: var(--text);
2023-04-08 22:08:53 +00:00
font-family: Iowan Old Style, Apple Garamond, Baskerville, Times New Roman, Droid Serif, Times, Source Serif Pro, serif, Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol;
2023-03-21 17:23:14 +00:00
line-height: 1.5;
font-size: 1rem;
padding: .75rem;
2023-04-08 22:08:53 +00:00
max-width: 40rem;
2023-03-21 17:23:14 +00:00
margin: auto;
}
a {
color: var(--links);
}
img {
display: block;
height: auto;
max-width: 100%;
2023-03-30 21:58:54 +00:00
max-height: 30rem;
2023-03-21 17:23:14 +00:00
}
table {
display: block;
border-collapse: collapse;
overflow: auto;
}
tbody {
display: table;
width: 100%;
}
td,
th {
text-align: left;
2023-04-08 22:08:53 +00:00
padding: .375rem;
}
tr {
border-bottom: 1px solid var(--border);
2023-03-21 17:23:14 +00:00
}
tr:nth-child(even) {
background: var(--secondary);
}
pre,
code {
font-family: Menlo, Consolas, Monaco, Liberation Mono, Lucida Console, monospace;
background: var(--secondary);
2023-04-08 22:08:53 +00:00
border: 1px solid var(--border);
2023-03-21 17:23:14 +00:00
}
pre {
padding: .75rem;
max-width: 100%;
display: block;
overflow-x: auto;
overflow-y: hidden;
2023-04-08 22:08:53 +00:00
}
blockquote {
font-style: italic;
background: var(--secondary);
padding: .375rem;
padding-left: 1.25rem;
border: 1px solid var(--border);
border-left: .25rem solid var(--border);
margin: 0;
}
h2 {
border-bottom: 1px solid var(--border);
2023-03-21 17:23:14 +00:00
}