my-website/static/css/general.css

201 lines
2.8 KiB
CSS
Raw Normal View History

* {
padding: 0;
margin: 0;
border: none;
border-collapse: collapse;
box-sizing: border-box;
overflow-wrap: anywhere;
}
html, body {
max-width: 100%;
overflow-x: clip;
}
#root {
2021-07-18 22:12:41 +02:00
font-family: monospace;
display: flex;
flex-direction: column;
flex-wrap: nowrap;
min-height: 100vh;
}
#root > * {
flex-grow: 0;
flex-shrink: 0;
2021-07-18 22:12:41 +02:00
}
header, footer {
text-align: center;
2021-08-25 18:54:12 +02:00
}
#header-title {
display: block;
padding: 0.5rem 0;
2021-08-25 18:54:12 +02:00
}
footer {
padding-top: 0.5rem;
}
#header-delimiter {
padding-top: 0;
margin-top: 0;
}
#footer-delimiter {
padding-bottom: 0;
margin-bottom: 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;
text-align: center;
gap: 2px;
height: max-content;
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;
padding-top: 0.5rem;
padding-bottom: 0.5rem;
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: fit-content;
overflow-x: 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 {
margin-top: 0.5rem;
margin-bottom: 0.5rem;
}
article {
2021-08-17 09:59:26 +02:00
padding: 0.5rem;
}
h2 {
margin-bottom: 1rem;
text-align: center;
}
2021-08-17 11:07:05 +02:00
#mainarticle {
width: fit-content;
max-width: min(100%, 60rem);
2021-08-17 11:07:05 +02:00
margin: 0 auto;
flex-grow: 1;
}
#mainarticle h3 {
margin: 1rem 0;
2021-08-17 11:07:05 +02:00
}
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: fit-content;
2021-08-24 11:35:19 +02:00
max-width: 100%;
overflow-x: auto;
}
tr {
width: fit-content;
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
}
#licenseimg {
vertical-align: middle;
height: inherit;
width: auto;
display: inline;
}
#article-missinglicense {
font-size: small;
}
#last-article-metadata {
margin-bottom: 1rem;
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
}