my-website/static/css/general.css

107 lines
1.5 KiB
CSS

* {
padding: 0;
margin: 0;
border: none;
border-collapse: collapse;
box-sizing: border-box;
}
html {
font-family: monospace;
}
header, footer {
text-align: center;
padding: 2em 0;
}
.globalnav{
display: flex;
flex-wrap: wrap;
flex-direction: row;
border: 2px solid white;
border-top: none;
border-left: none;
text-align: center;
}
.globalnav-element {
display: block;
border: 2px solid white;
border-right: none;
border-bottom: none;
background-color: #ddd;
text-align: center;
flex-basis: 0;
flex-grow: 1;
min-width: fit-content;
min-height: fit-content;
padding: 0.5em 0;
}
code {
display: inline-block;
color: green;
}
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;
}
.globalnav {
border-color: black;
}
.globalnav-element {
background-color: #222;
border-color: black;
}
code {
color: lawngreen;
}
a {
color: lightskyblue;
}
}
@media (prefers-color-scheme: light) {
html {
background-color: white;
color: black;
}
.globalnav {
border-color: white;
}
.globalnav-element {
border-color: white;
background-color: #ddd;
}
code {
color: green;
}
}