(css) Leerzeichen durch Tabs ersetzt

This commit is contained in:
Vri 🌈 2022-04-07 22:34:28 +02:00
parent 084cda3e07
commit 596a4f6017
Signed by: vrifox
GPG key ID: D40098E5B60B2197

View file

@ -1,182 +1,182 @@
:root { :root {
--background: hsl(210, 21%, 15%); --background: hsl(210, 21%, 15%);
--border: hsl(210, 21%, 20%); --border: hsl(210, 21%, 20%);
--text: hsl(210, 21%, 95%); --text: hsl(210, 21%, 95%);
--text-2: hsl(210, 21%, 80%); --text-2: hsl(210, 21%, 80%);
--vriish-red: hsl(0, 100%, 75%); --vriish-red: hsl(0, 100%, 75%);
--rose: hsl(0, 100%, 75%); --rose: hsl(0, 100%, 75%);
--orange: hsl(25, 100%, 75%); --orange: hsl(25, 100%, 75%);
--gold: hsl(50, 100%, 75%); --gold: hsl(50, 100%, 75%);
--emerald: hsl(130, 100%, 75%); --emerald: hsl(130, 100%, 75%);
--sky: hsl(215, 100%, 75%); --sky: hsl(215, 100%, 75%);
--purpur: hsl(275, 100%, 75%); --purpur: hsl(275, 100%, 75%);
} }
@media (prefers-color-scheme: light) { @media (prefers-color-scheme: light) {
:root { :root {
--background: rgb(255, 245, 235); --background: rgb(255, 245, 235);
--border: rgb(225, 215, 205); --border: rgb(225, 215, 205);
--text: rgb(50, 40, 30); --text: rgb(50, 40, 30);
--text-2: rgb(90, 80, 70); --text-2: rgb(90, 80, 70);
} }
} }
* { * {
box-sizing: border-box; box-sizing: border-box;
scrollbar-color: var(--vriish-red) var(--background); scrollbar-color: var(--vriish-red) var(--background);
scrollbar-width: thin; scrollbar-width: thin;
&::-webkit-scrollbar { &::-webkit-scrollbar {
background: var(--background); background: var(--background);
width: 6px; width: 6px;
} }
&::-webkit-scrollbar-thumb { background: var(--vriish-red); } &::-webkit-scrollbar-thumb { background: var(--vriish-red); }
} }
html { html {
overflow-x: hidden; overflow-x: hidden;
overflow-y: scroll; overflow-y: scroll;
} }
body { body {
background: var(--background); background: var(--background);
color: var(--text); color: var(--text);
display: grid; display: grid;
font-family: system-ui, sans-serif; font-family: system-ui, sans-serif;
font-size: 1.2em; font-size: 1.2em;
line-height: 1.7; line-height: 1.7;
margin: 0; margin: 0;
} }
h1, h2, h3, h4, h5, h6 { h1, h2, h3, h4, h5, h6 {
line-height: 1em; line-height: 1em;
margin: .8em 0; margin: .8em 0;
} }
a { a {
color: var(--text); color: var(--text);
text-decoration: underline; text-decoration: underline;
text-decoration-color: var(--vriish-red); text-decoration-color: var(--vriish-red);
text-underline-offset: 3px; text-underline-offset: 3px;
transition: text-decoration-color .2s; transition: text-decoration-color .2s;
&:hover { text-decoration-color: var(--text); } &:hover { text-decoration-color: var(--text); }
} }
center { center {
margin: 19.2px 0; margin: 19.2px 0;
text-align: center; text-align: center;
} }
pre { pre {
border: 1px solid var(--vriish-red); border: 1px solid var(--vriish-red);
border-radius: 4px; border-radius: 4px;
overflow: auto; overflow: auto;
padding: 10px 15px; padding: 10px 15px;
} }
p { p {
hyphens: auto; hyphens: auto;
img { img {
border: 2px solid var(--border); border: 2px solid var(--border);
border-radius: 4px; border-radius: 4px;
display: block; display: block;
margin: 0 auto; margin: 0 auto;
} }
} }
hr { hr {
border: 1px solid var(--border); border: 1px solid var(--border);
color: var(--border); color: var(--border);
margin: 60px 0; margin: 60px 0;
} }
// ------------------------ // ------------------------
// - header / nav; footer - // - header / nav; footer -
// ------------------------ // ------------------------
header, footer { header, footer {
align-items: center; align-items: center;
display: flex; display: flex;
margin: 0 auto; margin: 0 auto;
max-width: 1140px; max-width: 1140px;
overflow: auto; overflow: auto;
white-space: nowrap; white-space: nowrap;
width: 100%; width: 100%;
a { a {
color: var(--text-2); color: var(--text-2);
padding: 17.6px 15px; padding: 17.6px 15px;
text-decoration-color: var(--background); text-decoration-color: var(--background);
text-decoration-thickness: 2px !important; text-decoration-thickness: 2px !important;
text-underline-offset: 6px; text-underline-offset: 6px;
margin: 0 15px; margin: 0 15px;
&:hover { text-decoration-color: var(--vriish-red); } &:hover { text-decoration-color: var(--vriish-red); }
} }
} }
header { header {
border-bottom: 1px solid var(--border); border-bottom: 1px solid var(--border);
h1 { h1 {
display: flex; display: flex;
font-size: 1em; font-size: 1em;
margin: 0; margin: 0;
a { a {
color: var(--vriish-red); color: var(--vriish-red);
} }
} }
nav { nav {
display: flex; display: flex;
} }
aside { aside {
margin-left: auto; margin-left: auto;
} }
} }
footer { footer {
border-top: 1px solid var(--border); border-top: 1px solid var(--border);
color: var(--text-2); color: var(--text-2);
a { color: var(--text-2); } a { color: var(--text-2); }
span { span {
padding: 17.6px 30px; padding: 17.6px 30px;
margin-right: auto; margin-right: auto;
} }
} }
// -------- // --------
// - main - // - main -
// -------- // --------
main { main {
margin: 20px auto; margin: 20px auto;
max-width: 720px; max-width: 720px;
overflow: hidden; overflow: hidden;
padding: 30px; padding: 30px;
width: 100%; width: 100%;
span { font-size: .8em; } span { font-size: .8em; }
} }
#rainbow-heading { #rainbow-heading {
animation: rainbow-swoosh; animation: rainbow-swoosh;
animation-duration: 30000s; animation-duration: 30000s;
animation-iteration-count: infinite; animation-iteration-count: infinite;
background-image: linear-gradient(135deg, var(--purpur) 14.29%, var(--rose) 14.29%, var(--rose) 28.57%, var(--orange) 28.57%, var(--orange) 42.86%, var(--gold) 42.86%, var(--gold) 57.14%, var(--emerald) 57.14%, var(--emerald) 71.43%, var(--sky) 71.43%, var(--sky) 85.71%, var(--purpur) 85.71%); background-image: linear-gradient(135deg, var(--purpur) 14.29%, var(--rose) 14.29%, var(--rose) 28.57%, var(--orange) 28.57%, var(--orange) 42.86%, var(--gold) 42.86%, var(--gold) 57.14%, var(--emerald) 57.14%, var(--emerald) 71.43%, var(--sky) 71.43%, var(--sky) 85.71%, var(--purpur) 85.71%);
background-clip: text; background-clip: text;
-webkit-background-clip: text; -webkit-background-clip: text;
color: transparent; color: transparent;
display: inline-block; display: inline-block;
margin: 0.55em 0; margin: 0.55em 0;
} }
span[title="Freude"], span[title="happiness"] { span[title="Freude"], span[title="happiness"] {
font-size: 1em; font-size: 1em;
} }
p.date-published { p.date-published {
margin-bottom: -1.5em; margin-bottom: -1.5em;
font-size: smaller; font-size: smaller;
font-style: italic; font-style: italic;
} }
@media (max-width: 576px) { @media (max-width: 576px) {
main { main {
margin: 0 auto; margin: 0 auto;
} }
} }
@keyframes rainbow-swoosh { @keyframes rainbow-swoosh {
0% { background-position-x: 0px; } 0% { background-position-x: 0px; }
50% { background-position-x: 999999px; } 50% { background-position-x: 999999px; }
100% { background-position-x: 0px; } 100% { background-position-x: 0px; }
} }