my-website/static/css/general.css

140 lines
2 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;
2021-08-17 09:59:26 +02:00
padding: 2rem 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;
2021-08-17 09:59:26 +02:00
padding: 0.5rem 0;
2021-07-18 22:12:41 +02:00
}
code {
display: inline-block;
color: green;
2021-07-18 22:12:41 +02:00
}
p {
2021-08-17 09:59:26 +02:00
padding: 0.5rem;
}
article {
2021-08-17 09:59:26 +02:00
padding: 0.5rem;
}
2021-08-17 11:07:05 +02:00
#mainarticle {
width: 95vw;
max-width: 80rem;
margin: 0 auto;
}
li, ul, ol {
2021-08-17 09:59:26 +02:00
margin: 1rem;
}
hr {
border-style: inset;
border-width: 1px;
2021-08-17 09:59:26 +02:00
margin: 0.5rem 0;
}
2021-08-17 09:58:37 +02:00
table {
border-style: solid;
border-color: black;
border-right: none;
border-bottom: none;
border-collapse: collapse;
2021-08-17 11:07:05 +02:00
margin: 1rem auto;
2021-08-17 09:58:37 +02:00
}
2021-08-17 10:10:21 +02:00
td, th {
2021-08-17 09:58:37 +02:00
border-style: solid;
border-color: black;
border-left: none;
border-top: none;
border-collapse: collapse;
2021-08-17 11:07:05 +02:00
padding: 0.5rem;
2021-08-17 11:01:16 +02:00
}
@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-08-17 09:58:37 +02:00
2021-08-17 10:10:21 +02:00
table, td, th {
2021-08-17 09:58:37 +02:00
border-color: white;
}
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-08-17 09:58:37 +02:00
2021-08-17 10:10:21 +02:00
table, td, th {
2021-08-17 09:58:37 +02:00
border-color: black;
}
2021-07-18 22:12:41 +02:00
}