Website/public/style.css

92 lines
1.3 KiB
CSS
Raw Normal View History

2023-03-21 17:23:14 +00:00
:root {
2023-05-02 00:13:29 +00:00
--primary: #fff;
2023-05-02 10:44:55 +00:00
--secondary: #eee;
--border: #ccc;
2023-03-21 17:23:14 +00:00
--text: #111;
2023-05-02 00:13:29 +00:00
--links: #00f;
2023-03-21 17:23:14 +00:00
}
@media (prefers-color-scheme: dark) {
:root {
2023-05-02 00:13:29 +00:00
--primary: #111;
2023-05-02 06:16:28 +00:00
--secondary: #222;
2023-05-02 10:44:55 +00:00
--border: #444;
2023-03-21 17:23:14 +00:00
--text: #eee;
--links: #aaf;
}
img {
2023-04-08 22:08:53 +00:00
filter: brightness(90%);
2023-03-21 17:23:14 +00:00
}
}
body {
background: var(--primary);
color: var(--text);
2023-05-02 00:13:29 +00:00
font-family: -apple-system, BlinkMacSystemFont, avenir next, avenir, segoe ui, helvetica neue, helvetica, Cantarell, Ubuntu, roboto, noto, arial, sans-serif;
2023-03-21 17:23:14 +00:00
font-size: 1rem;
2023-05-02 10:44:55 +00:00
margin: 0;
}
main, header > nav {
2023-03-21 17:23:14 +00:00
padding: .75rem;
2023-04-08 22:08:53 +00:00
max-width: 40rem;
2023-03-21 17:23:14 +00:00
margin: auto;
}
2023-05-02 10:44:55 +00:00
header {
background: #335;
}
header > nav > a {
color: #eee;
text-decoration: none;
}
2023-03-21 17:23:14 +00:00
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;
}
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);
}
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;
2023-05-02 00:13:29 +00:00
padding: .5rem;
2023-04-08 22:08:53 +00:00
padding-left: 1.25rem;
2023-05-02 10:44:55 +00:00
border-left: .25rem solid var(--border);
2023-04-08 22:08:53 +00:00
margin: 0;
2023-03-21 17:23:14 +00:00
}