gardenserver/templates/main.css

153 lines
2 KiB
CSS
Raw Permalink Normal View History

body {
2021-03-06 00:50:49 +01:00
font-family: 'Inter', sans-serif;
}
h1, h2, h3, h4, h5 {
font-family: 'Merriweather', serif;
}
body {
display: flex;
2020-10-20 19:13:36 +02:00
width: 99vw;
margin: 0 auto;
}
img {
max-width: 100%;
max-height: 100vh;
}
blockquote {
margin: 0;
padding-left: 2em;
border-left: 3px solid lightgray;
}
2021-03-06 00:52:52 +01:00
pre, code {
background: rgb(248, 248, 252);
}
code {
padding: .05em;
}
pre {
padding: 1em;
overflow-x: auto;
word-wrap: normal;
}
li {
margin: .15em 0;
}
li p {
margin: 0;
}
aside h1 {
font-size: 16pt;
text-decoration: underline;
font-variant: small-caps;
}
@media screen and (max-width: 800px) {
body {
flex-direction: column-reverse;
}
2020-10-20 19:13:36 +02:00
nav, main {
padding: 0 2em;
}
aside {
border-top: 1px solid gray;
}
aside h1 {
text-align: center;
}
aside li {
display: inline-block;
}
}
@media screen and (min-width: 800px) {
aside {
display: flex;
2020-10-20 19:13:36 +02:00
flex: 0 0 18vw;
flex-direction: column;
justify-content: space-between;
min-height: 100vh;
border-right: 1px solid gray;
}
2020-10-20 19:13:36 +02:00
nav {
padding: 0 1em;
}
main {
padding: 0 2em;
flex-grow: 1;
/* god dammit flexbox */
min-width: 1px;
}
}
2020-12-28 20:17:29 +01:00
nav h1 a {
color: black;
}
nav ul {
list-style: none;
padding-left: 0;
}
nav li {
2020-10-20 20:18:11 +02:00
margin: .25em 0;
}
nav .file {
font-style: italic;
opacity: .8;
}
2020-12-28 20:28:17 +01:00
nav .not-last {
opacity: .5;
}
footer {
padding: 1em 0;
color: gray;
}
aside footer {
text-align: center;
}
aside footer a {
color: gray;
}
main footer {
text-align: right;
}
2020-10-20 19:13:19 +02:00
.message {
text-align: center;
padding: 2em;
2021-03-06 01:00:58 +01:00
}
@media (prefers-color-scheme: dark) {
body {
background: #141414;
color: #e3e3e3;
}
a {
color: aqua;
}
a:visited {
color: mediumpurple;
}
nav h1 a {
color: white;
}
2020-10-20 19:13:19 +02:00
}