website/assets/style.scss
2022-04-10 13:07:40 +02:00

176 lines
3.1 KiB
SCSS

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