my-website/static/css/general.css

156 lines
2.2 KiB
CSS
Raw Normal View History

* {
padding: 0;
margin: 0;
border: none;
border-collapse: collapse;
box-sizing: border-box;
}
2021-08-24 11:35:19 +02:00
body {
2021-07-18 22:12:41 +02:00
font-family: monospace;
2021-08-24 11:35:19 +02:00
max-width: 100vw;
2021-07-18 22:12:41 +02:00
}
header, footer {
text-align: center;
2021-08-25 18:54:12 +02:00
}
header {
2021-08-25 19:11:51 +02:00
padding-bottom: 1rem;
2021-08-25 18:54:12 +02:00
}
footer {
2021-08-25 19:11:51 +02:00
padding-top: 1rem;
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;
text-align: center;
gap: max(1px, 0.1rem);
2021-07-18 22:12:41 +02:00
}
.globalnav-element {
display: block;
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 Blocks */
pre {
padding: 0.75rem;
margin-top: 1.5rem;
margin-bottom: 1.5rem;
margin-left: auto;
margin-right: auto;
width: 100%;
max-width: max-content;
overflow-y: auto;
line-break: strict;
}
/* Inline keywords/code */
code {
display: inline-block;
color: green;
line-break: strict;
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;
}
h2 {
margin-bottom: 1rem;
}
2021-08-17 11:07:05 +02:00
#mainarticle {
width: max-content;
2021-08-24 11:35:19 +02:00
max-width: min(80rem, 100%);
2021-08-17 11:07:05 +02:00
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 {
display: block;
2021-08-17 09:58:37 +02:00
border-collapse: collapse;
2021-08-17 11:07:05 +02:00
margin: 1rem auto;
width: max-content;
2021-08-24 11:35:19 +02:00
max-width: 100%;
overflow-y: 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-collapse: collapse;
2021-08-17 11:07:05 +02:00
padding: 0.5rem;
2021-08-24 11:35:19 +02:00
}
@media (max-width: 20rem), (max-width: 300px) {
2021-08-24 11:35:19 +02:00
* {
word-wrap: break-word;
2021-08-24 11:35:19 +02:00
}
2021-08-17 11:01:16 +02:00
}
@media (prefers-color-scheme: dark) {
html {
background-color: #111;
color: white;
}
.globalnav-element {
background-color: #222;
}
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;
}
.globalnav-element {
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
}