gardenserver/templates/main.css

126 lines
1.7 KiB
CSS
Raw Normal View History

body {
font-family: 'Montserrat', 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;
}
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
pre, code {
background: rgb(248, 248, 252);
}
code {
padding: .05em;
}
pre {
padding: 1em;
overflow-x: auto;
word-wrap: normal;
}
.message {
text-align: center;
padding: 2em;
2020-10-20 19:13:19 +02:00
}