my-website/static/css/general.css

295 lines
4 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;
2024-02-26 16:12:01 +01:00
object-fit: scale-down;
2024-04-27 07:33:55 +02:00
scroll-behavior: smooth;
}
2024-04-27 07:33:55 +02:00
:root {
max-width: inherit;
overflow-x: hidden;
overflow-y: auto;
}
html:not(:root),
body:not(:root) {
max-width: inherit;
}
#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;
2023-11-06 10:48:41 +01:00
max-width: min(100%, 72rem);
2023-03-10 15:08:43 +01:00
margin-left: auto;
margin-right: auto;
flex-grow: 1;
2023-03-16 00:17:58 +01:00
text-align: justify;
}
#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
}
img {
display: block;
2024-01-13 00:34:39 +01:00
min-height: unset;
min-width: unset;
height: auto;
width: auto;
max-width: 100%;
2024-01-13 00:34:39 +01:00
max-height: unset;
margin-left: auto;
margin-right: auto;
2024-01-13 00:34:39 +01:00
object-fit: scale-down;
object-position: center;
}
details {
2024-01-13 00:34:39 +01:00
backdrop-filter: invert(100%);
padding: max(1mm, 1px);
width: min-content;
max-width: fit-content;
min-width: unset;
display: block;
color: black;
}
details > summary {
max-width: fit-content;
width: max-content;
display: block;
}
details:not([open]) > summary::after {
content: "Click to expand";
display: block;
max-width: fit-content;
font-weight: bold;
}
details[open] > summary {
2024-01-13 00:34:39 +01:00
margin-bottom: max(1mm, 1px);
}
#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) {
2024-04-27 07:33:55 +02:00
* {
scrollbar-color: white black;
}
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;
}
2023-03-26 22:04:41 +02:00
2024-01-13 00:34:39 +01:00
details {
color: black;
2023-03-26 22:04:41 +02:00
}
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;
}
2024-01-13 00:34:39 +01:00
details {
color: white;
}
2021-07-18 22:12:41 +02:00
}