nevereverever.de/styles/style.css

352 lines
4.8 KiB
CSS
Raw Normal View History

2025-12-08 21:49:11 +01:00
:root {
2026-02-20 18:55:08 +01:00
--foreground: #586e75;
--background: #fdf6e3;
--html-border: #eee8d5;
--html-background: #268bd2;
--body-background: linear-gradient(to bottom, #2aa198, #268bd2);
--blockquote-text: #657b83;
--blockquote-border: #eee8d5;
--button-primary: #fdf6e3;
--button-secondary: #eee8d5;
2025-12-08 21:49:11 +01:00
}
@media (prefers-color-scheme: dark) {
:root {
2026-02-20 18:55:08 +01:00
--foreground: #93a1a1;
--background: #002b36;
--html-border: #073642;
--html-background: #6c71c4;
--body-background: linear-gradient(to bottom, #268bd2, #6c71c4);
--blockquote-text: #839496;
--blockquote-border: #073642;
--button-primary: #073642;
--button-secondary: #002b36;
}
2025-12-08 21:49:11 +01:00
}
2026-02-13 17:43:27 +01:00
2025-12-08 21:49:11 +01:00
html {
color: var(--foreground);
2026-01-04 02:38:37 +01:00
background: var(--html-background);
2026-01-13 16:05:16 +01:00
font-family: serif;
font-size: 14pt;
2025-12-08 21:49:11 +01:00
}
body {
2026-02-13 17:43:27 +01:00
margin: 0;
background: var(--body-background);
}
2026-02-20 18:55:08 +01:00
main {
2025-12-11 00:46:46 +01:00
max-width: 48em;
2026-02-20 18:55:08 +01:00
margin: 0 auto;
2025-12-08 21:49:11 +01:00
padding-left: 50pt;
padding-right: 50pt;
padding-top: 50pt;
padding-bottom: 50pt;
2026-02-20 18:55:08 +01:00
2025-12-08 21:49:11 +01:00
hyphens: auto;
overflow-wrap: break-word;
text-rendering: optimizeLegibility;
font-kerning: normal;
2026-02-20 18:55:08 +01:00
background-color: var(--background);
border-left: solid 3pt var(--html-border);
border-right: solid 3pt var(--html-border);
2025-12-08 21:49:11 +01:00
}
2026-02-21 02:07:03 +01:00
#shork {
2026-01-13 17:44:33 +01:00
position: fixed;
2026-02-21 02:19:03 +01:00
z-index: 1;
2026-02-22 13:03:08 +01:00
left: -36px;
top: -32px;
2026-02-21 02:07:03 +01:00
width: 64px;
transform-origin: 50% 50%;
2026-01-13 17:37:03 +01:00
}
2025-12-08 21:49:11 +01:00
#page-header {
display: flex;
justify-content: space-between;
2026-02-20 18:55:08 +01:00
max-width: 60em;
margin: 0 auto;
padding: 4pt;
2026-01-28 14:10:27 +01:00
background: url("images/shark-top-small.png");
background-size: contain;
2026-02-20 18:55:08 +01:00
border: solid 3pt var(--html-border);
2025-12-08 21:49:11 +01:00
}
2026-02-12 04:10:35 +01:00
#page-header a {
color: var(--foreground);
2026-02-12 18:04:08 +01:00
padding: 4pt;
2026-02-12 04:10:35 +01:00
text-decoration: none;
2025-12-14 16:42:40 +01:00
}
2026-02-12 18:04:08 +01:00
.page-header-button {
background: linear-gradient(to bottom, var(--button-primary) 0%, var(--button-secondary) 100%);
border: 1pt solid var(--blockquote-border);
border-radius: 4pt;
}
.page-header-button:active {
background: linear-gradient(to bottom, var(--button-secondary) 0%, var(--button-primary) 100%);
}
.rss-button {
2026-02-20 18:55:08 +01:00
color: #fdf6e3 !important;
2026-02-12 18:04:08 +01:00
background: linear-gradient(to bottom, #fb9d3a 0%, #d95c29 100%);
border: 1pt solid #f2994f;
border-radius: 4pt;
}
.rss-button:active {
background: linear-gradient(to bottom, #d95c29 0%, #fb9d3a 100%);
2025-12-14 16:42:40 +01:00
}
2025-12-11 00:46:46 +01:00
#articles ul {
2025-12-08 21:49:11 +01:00
padding-left: 0;
}
#articles li {
2025-12-11 00:46:46 +01:00
list-style: none;
2025-12-08 21:49:11 +01:00
}
.articles-header {
2026-02-12 18:04:08 +01:00
margin: 8pt 0 4pt 0;
2026-02-20 18:55:08 +01:00
text-align: left;
2026-02-12 18:04:08 +01:00
}
.articles-footer {
2025-12-08 21:49:11 +01:00
display: flex;
justify-content: space-between;
2026-02-20 18:55:08 +01:00
margin-top: 4pt;
2025-12-08 21:49:11 +01:00
}
.articles-title {
2025-12-11 00:46:46 +01:00
font-size: 14pt;
font-weight: bold;
2025-12-08 21:49:11 +01:00
}
.articles-author {
2026-02-12 18:04:08 +01:00
font-style: italic;
2025-12-08 21:49:11 +01:00
}
.articles-summary {
margin: 0;
}
.articles-date {
text-align: right;
}
#page-footer {
2026-02-20 18:55:08 +01:00
display: flex;
justify-content: center;
max-width: 60em;
margin: 0 auto;
2026-02-13 17:43:27 +01:00
padding: 4pt;
2026-02-20 18:55:08 +01:00
2026-01-28 14:10:27 +01:00
background: url("images/shark-top-small.png");
background-size: contain;
2026-02-20 18:55:08 +01:00
border: solid 3pt var(--html-border);
2025-12-15 23:11:52 +01:00
}
2026-02-20 18:55:08 +01:00
#page-footer nav {
2025-12-15 23:11:52 +01:00
display: flex;
align-items: center;
2025-12-08 21:49:11 +01:00
}
2025-12-11 00:46:46 +01:00
2025-12-08 21:49:11 +01:00
@media (max-width: 600px) {
2026-02-20 18:55:08 +01:00
main {
2025-12-08 21:49:11 +01:00
font-size: 0.9em;
padding: 12pt;
}
2025-12-11 00:46:46 +01:00
2025-12-08 21:49:11 +01:00
h1 {
font-size: 1.8em;
}
}
2025-12-11 00:46:46 +01:00
2025-12-08 21:49:11 +01:00
@media print {
html {
background-color: white;
}
2025-12-11 00:46:46 +01:00
2025-12-08 21:49:11 +01:00
body {
background-color: transparent;
color: black;
2025-12-11 00:46:46 +01:00
border: none;
2025-12-08 21:49:11 +01:00
font-size: 12pt;
}
2025-12-11 00:46:46 +01:00
p,
h2,
h3 {
2025-12-08 21:49:11 +01:00
orphans: 3;
widows: 3;
}
2025-12-11 00:46:46 +01:00
h2,
h3,
h4 {
2025-12-08 21:49:11 +01:00
page-break-after: avoid;
}
2025-12-11 00:46:46 +01:00
2026-02-13 17:48:03 +01:00
a {
color: black;
}
#page {
border: none;
}
2025-12-11 00:46:46 +01:00
#page-header,
#page-footer {
2025-12-08 21:49:11 +01:00
display: none;
}
}
2025-12-11 00:46:46 +01:00
2025-12-08 21:49:11 +01:00
p {
margin: 1em 0;
}
2025-12-11 00:46:46 +01:00
2025-12-08 21:49:11 +01:00
a {
2026-01-04 21:18:25 +01:00
color: #268bd2;
2025-12-08 21:49:11 +01:00
}
2025-12-11 00:46:46 +01:00
2025-12-14 16:42:40 +01:00
a:not(:hover) {
text-decoration: none;
}
2025-12-08 21:49:11 +01:00
a:visited {
2026-01-04 21:18:25 +01:00
color: #6c71c4;
2025-12-08 21:49:11 +01:00
}
2025-12-11 00:46:46 +01:00
2025-12-08 21:49:11 +01:00
img {
max-width: 100%;
}
2025-12-11 00:46:46 +01:00
2025-12-08 21:49:11 +01:00
svg {
height: auto;
max-width: 100%;
}
2025-12-11 00:46:46 +01:00
h1,
h2,
h3,
h4,
h5,
h6 {
2025-12-08 21:49:11 +01:00
margin-top: 1.4em;
}
2025-12-11 00:46:46 +01:00
h5,
h6 {
2025-12-08 21:49:11 +01:00
font-size: 1em;
font-style: italic;
}
2025-12-11 00:46:46 +01:00
2025-12-08 21:49:11 +01:00
h6 {
font-weight: normal;
}
2025-12-11 00:46:46 +01:00
ol,
ul {
2025-12-08 21:49:11 +01:00
padding-left: 1.7em;
margin-top: 1em;
}
2025-12-11 00:46:46 +01:00
li>ol,
li>ul {
2025-12-08 21:49:11 +01:00
margin-top: 0;
}
2025-12-11 00:46:46 +01:00
2025-12-08 21:49:11 +01:00
blockquote {
margin: 1em 0 1em 1.7em;
padding-left: 1em;
border-left: 2pt solid var(--blockquote-border);
color: var(--blockquote-text);
}
2025-12-11 00:46:46 +01:00
2025-12-08 21:49:11 +01:00
code {
2026-01-13 16:05:16 +01:00
font-family: monospace;
2025-12-08 21:49:11 +01:00
font-size: 85%;
margin: 0;
hyphens: manual;
}
2025-12-11 00:46:46 +01:00
2025-12-08 21:49:11 +01:00
pre {
margin: 1em 0;
overflow: auto;
}
2025-12-11 00:46:46 +01:00
2025-12-08 21:49:11 +01:00
pre code {
padding: 0;
overflow: visible;
overflow-wrap: normal;
}
2025-12-11 00:46:46 +01:00
2025-12-08 21:49:11 +01:00
.sourceCode {
background-color: transparent;
overflow: visible;
}
2025-12-11 00:46:46 +01:00
2025-12-08 21:49:11 +01:00
hr {
background-color: var(--foreground);
border: none;
height: 1pt;
margin: 1em 0;
}
2025-12-11 00:46:46 +01:00
2025-12-08 21:49:11 +01:00
table {
margin: 1em 0;
border-collapse: collapse;
width: 100%;
overflow-x: auto;
display: block;
font-variant-numeric: lining-nums tabular-nums;
}
2025-12-11 00:46:46 +01:00
2025-12-08 21:49:11 +01:00
table caption {
margin-bottom: 0.75em;
}
2025-12-11 00:46:46 +01:00
2025-12-08 21:49:11 +01:00
tbody {
margin-top: 0.5em;
border-top: 1pt solid var(--foreground);
border-bottom: 1pt solid var(--foreground);
}
2025-12-11 00:46:46 +01:00
2025-12-08 21:49:11 +01:00
th {
border-top: 1pt solid var(--foreground);
padding: 0.25em 0.5em 0.25em 0.5em;
}
2025-12-11 00:46:46 +01:00
2025-12-08 21:49:11 +01:00
td {
padding: 0.125em 0.5em 0.25em 0.5em;
}
2025-12-11 00:46:46 +01:00
2025-12-08 21:49:11 +01:00
header {
margin-bottom: 4em;
text-align: center;
}
2025-12-11 00:46:46 +01:00
2025-12-08 21:49:11 +01:00
#TOC li {
list-style: none;
}
2025-12-11 00:46:46 +01:00
2025-12-08 21:49:11 +01:00
#TOC ul {
padding-left: 1.3em;
}
2025-12-11 00:46:46 +01:00
#TOC>ul {
2025-12-08 21:49:11 +01:00
padding-left: 0;
}
2025-12-11 00:46:46 +01:00
2025-12-08 21:49:11 +01:00
#TOC a:not(:hover) {
text-decoration: none;
}