my-website/static/css/general.css

108 lines
1.5 KiB
CSS
Raw Normal View History

* {
padding: 0;
margin: 0;
border: none;
border-collapse: collapse;
box-sizing: border-box;
}
2021-07-18 22:12:41 +02:00
html {
font-family: monospace;
}
header, footer {
text-align: center;
padding: 2em 0;
2021-07-18 22:12:41 +02:00
}
.globalnav{
display: flex;
flex-wrap: wrap;
2021-07-18 22:12:41 +02:00
flex-direction: row;
2021-07-29 23:44:54 +02:00
border: 2px solid white;
border-top: none;
border-left: none;
text-align: center;
2021-07-18 22:12:41 +02:00
}
.globalnav-element {
display: block;
2021-07-29 23:44:54 +02:00
border: 2px solid white;
border-right: none;
border-bottom: none;
background-color: #ddd;
2021-07-28 18:27:09 +02:00
text-align: center;
flex-basis: 0;
2021-07-18 22:12:41 +02:00
flex-grow: 1;
min-width: fit-content;
min-height: fit-content;
padding: 0.5em 0;
2021-07-18 22:12:41 +02:00
}
code {
display: inline-block;
color: green;
2021-07-18 22:12:41 +02:00
}
p {
padding: 0.5em;
}
article {
padding: 0.5em;
}
li, ul, ol {
margin: 1em;
}
hr {
border-style: inset;
border-width: 1px;
margin: 0.5em 0;
}
@media (prefers-color-scheme: dark) {
html {
background-color: black;
color: white;
}
2021-07-29 23:44:54 +02:00
.globalnav {
border-color: black;
}
.globalnav-element {
background-color: #222;
border-color: black;
}
2021-07-18 22:12:41 +02:00
code {
color: lawngreen;
}
a {
color: lightskyblue;
}
2021-07-18 22:12:41 +02:00
}
@media (prefers-color-scheme: light) {
html {
background-color: white;
color: black;
}
2021-07-29 23:44:54 +02:00
.globalnav {
border-color: white;
}
.globalnav-element {
border-color: white;
background-color: #ddd;
}
code {
color: green;
}
2021-07-18 22:12:41 +02:00
}