gardenserver/templates/main.css

185 lines
2.3 KiB
CSS
Raw 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 {
2021-03-19 17:39:17 +01:00
background: #F8F8FC;
2021-03-06 00:52:52 +01:00
}
code {
padding: .05em;
}
pre {
padding: 1em;
overflow-x: auto;
word-wrap: normal;
}
2021-03-06 11:19:53 +01:00
a:visited {
color: darkblue;
}
2021-03-06 00:52:52 +01:00
li {
margin: .15em 0;
}
li p {
margin: 0;
}
2021-04-21 22:16:43 +02:00
.anchor {
text-decoration: none;
opacity: .5;
color: lightgray;
}
.anchor:after {
content: "#";
margin-right: .15em;
}
.anchor:visited {
color: 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;
}
}
2021-03-06 11:41:06 +01:00
nav h1 {
text-align: center;
}
2020-12-28 20:17:29 +01:00
nav h1 a {
color: black;
}
2021-03-06 11:19:47 +01:00
nav h1 a:visited {
color: inherit;
}
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: #90d7e5;
2021-03-06 01:00:58 +01:00
}
a:visited {
2021-03-06 11:19:53 +01:00
color: #3d9bb3;
2021-03-06 01:00:58 +01:00
}
nav h1 a {
color: white;
}
2021-03-19 17:39:17 +01:00
code {
background: black;
color: #F8F8FC;
}
2020-10-20 19:13:19 +02:00
}