my-website/static/css/general.css

234 lines
3 KiB
CSS
Raw Normal View History

* {
2023-03-10 15:08:43 +01:00
padding: 0;
margin: 0;
border: none;
border-collapse: collapse;
box-sizing: border-box !important;
overflow-wrap: anywhere;
}
2023-03-10 15:08:43 +01:00
html,
body {
max-width: 100%;
overflow-x: clip;
}
#root {
2023-03-10 15:08:43 +01:00
font-family: monospace;
display: flex;
flex-direction: column;
flex-wrap: nowrap;
min-height: 100vh;
}
#root > * {
2023-03-10 15:08:43 +01:00
flex-grow: 0;
flex-shrink: 0;
2021-07-18 22:12:41 +02:00
}
2023-03-10 15:08:43 +01:00
header,
footer {
text-align: center;
2021-08-25 18:54:12 +02:00
}
#header-title {
2023-03-10 15:08:43 +01:00
display: block;
padding-top: 0.5rem;
padding-bottom: 0.5rem;
2021-08-25 18:54:12 +02:00
}
footer {
2023-03-10 15:08:43 +01:00
padding-top: 0.5rem;
}
#header-delimiter {
2023-03-10 15:08:43 +01:00
padding-top: 0;
margin-top: 0;
}
#footer-delimiter {
2023-03-10 15:08:43 +01:00
padding-bottom: 0;
margin-bottom: 0;
2021-07-18 22:12:41 +02:00
}
2023-03-10 15:08:43 +01:00
.globalnav {
display: flex;
flex-wrap: wrap;
flex-direction: row;
text-align: center;
gap: 2px;
height: max-content;
2021-07-18 22:12:41 +02:00
}
.globalnav-element {
2023-03-10 15:08:43 +01:00
display: block;
2023-03-10 17:12:35 +01:00
background-color: rgb(90% 90% 90%);
2023-03-10 15:08:43 +01:00
text-align: center;
flex-basis: 0;
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 {
2023-03-10 15:08:43 +01:00
display: block;
padding: 0.75rem;
margin-top: 1.5rem;
margin-bottom: 1.5rem;
margin-left: auto;
margin-right: auto;
width: fit-content;
max-width: 100%;
overflow-x: auto;
line-break: strict;
}
/* Inline keywords/code */
code {
2023-03-10 15:08:43 +01:00
display: inline-block;
color: green;
line-break: strict;
2021-07-18 22:12:41 +02:00
}
p {
2023-03-10 15:08:43 +01:00
margin-top: 0.5rem;
margin-bottom: 0.5rem;
}
h2 {
2023-03-10 15:08:43 +01:00
margin-bottom: 1rem;
text-align: center;
}
2021-08-17 11:07:05 +02:00
#mainarticle {
2023-03-10 15:08:43 +01:00
width: fit-content;
max-width: min(100%, 60rem);
margin-left: auto;
margin-right: auto;
flex-grow: 1;
}
#mainarticle h3 {
2023-03-10 15:08:43 +01:00
margin-top: 1rem;
margin-bottom: 1rem;
2021-08-17 11:07:05 +02:00
}
2023-03-10 15:08:43 +01:00
ul > li,
ol > li {
margin-top: 0.5rem;
margin-bottom: 0.5rem;
}
li::marker {
width: 1rem;
max-width: 100%;
padding: 0;
margin: 0;
border: none;
}
li {
margin-inline-start: 1rem;
}
hr {
2023-03-10 15:08:43 +01:00
border-style: inset;
border-width: 1px;
margin-top: 0.5rem;
margin-bottom: 0.5rem;
}
2021-08-17 09:58:37 +02:00
table {
2023-03-10 15:08:43 +01:00
display: block;
border-collapse: collapse;
margin: 1rem auto;
width: fit-content;
max-width: 100%;
overflow-x: auto;
}
tr {
2023-03-10 15:08:43 +01:00
width: fit-content;
2021-08-17 09:58:37 +02:00
}
2023-03-10 15:08:43 +01:00
td,
th {
border-style: solid;
border-color: black;
border-collapse: collapse;
padding: 0.5rem;
2021-08-24 11:35:19 +02:00
}
#licenseimg {
2023-03-10 15:08:43 +01:00
vertical-align: middle;
height: inherit;
width: auto;
display: inline;
}
#last-article-metadata {
margin-bottom: 1rem;
}
2023-03-10 15:08:43 +01:00
.visible-article-metadata {
display: contents;
font-size: small;
font-style: italic;
}
2023-03-10 15:08:43 +01:00
.article-metadata-label {
font-weight: bold;
}
.article-missinglicense {
font-size: xx-small;
2021-08-17 11:01:16 +02:00
}
@media (prefers-color-scheme: dark) {
2023-03-10 15:08:43 +01:00
html {
2023-03-10 17:12:35 +01:00
background-color: black;
2023-03-10 15:08:43 +01:00
color: white;
}
2023-03-10 15:08:43 +01:00
.globalnav-element {
2023-03-10 17:12:35 +01:00
background-color: rgb(10% 10% 10%);
2023-03-10 15:08:43 +01:00
}
2021-07-18 22:12:41 +02:00
2023-03-10 15:08:43 +01:00
code {
color: lawngreen;
}
2023-03-10 15:08:43 +01:00
a {
color: lightskyblue;
}
2021-08-17 09:58:37 +02:00
2023-03-10 15:08:43 +01:00
table,
td,
th {
border-color: white;
}
2021-07-18 22:12:41 +02:00
}
@media (prefers-color-scheme: light) {
2023-03-10 15:08:43 +01:00
html {
background-color: white;
color: black;
}
.globalnav-element {
2023-03-10 17:12:35 +01:00
background-color: rgb(90% 90% 90%);
2023-03-10 15:08:43 +01:00
}
code {
color: green;
}
table,
td,
th {
border-color: black;
}
2021-07-18 22:12:41 +02:00
}