my-website/static/css/general.css

155 lines
2.2 KiB
CSS

* {
padding: 0;
margin: 0;
border: none;
border-collapse: collapse;
box-sizing: border-box;
}
body {
font-family: monospace;
max-width: 100vw;
}
header, footer {
text-align: center;
}
header {
padding-bottom: 1rem;
}
footer {
padding-top: 1rem;
}
.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.5rem 0;
}
code {
display: inline-block;
color: green;
}
p {
padding: 0.5rem;
}
article {
padding: 0.5rem;
}
#mainarticle {
width: max-content;
max-width: min(80rem, 100%);
margin: 0 auto;
}
li, ul, ol {
margin: 1rem;
}
hr {
border-style: inset;
border-width: 1px;
margin: 0.5rem 0;
}
table {
border-style: solid;
border-color: black;
border-right: none;
border-bottom: none;
border-collapse: collapse;
margin: 1rem auto;
max-width: 100%;
}
td, th {
border-style: solid;
border-color: black;
border-left: none;
border-top: none;
border-collapse: collapse;
padding: 0.5rem;
line-break: anywhere;
}
@media (max-width: 15rem) {
* {
line-break: anywhere;
}
}
@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;
}
table, td, th {
border-color: white;
}
}
@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;
}
table, td, th {
border-color: black;
}
}