koehr.ing/dist/style.css

233 lines
3.7 KiB
CSS
Raw Normal View History

2024-03-10 00:35:47 +01:00
:root {
2024-03-31 23:49:43 +02:00
--header-bg-color: #1b1c1d;
--header-fg-color: #a3bd8d;
--header-height: 192px;
2024-05-16 19:28:05 +02:00
--header-height-small: calc(var(--header-height) * .25);
--header-height-multiplier: .25;
2024-03-31 23:49:43 +02:00
--page-bg-color: #232425;
--page-fg-color: #7e9fbe;
2024-05-12 20:15:27 +02:00
--menu-bg-color: #000;
2024-03-31 23:49:43 +02:00
--highlight-fg-color: #eacb8b;
2024-03-10 00:35:47 +01:00
--emboss-color: #000;
}
@font-face {
font-family: 'rubikregular';
src: url('/rubik-regular-minimal.woff2') format('woff2');
font-weight: normal;
font-style: normal;
font-display: swap;
}
2024-03-10 00:35:47 +01:00
@media (prefers-color-scheme: light) {
:root {
--page-bg-color: #efe9d9;
--page-fg-color: #261b00;
2024-05-12 20:15:27 +02:00
--menu-bg-color: #fff;
2024-03-31 23:49:43 +02:00
--header-fg-color: #143373;
--header-bg-color: #a49570;
2024-03-10 00:35:47 +01:00
--emboss-color: #fff;
}
2024-03-31 23:49:43 +02:00
.light\:invert,
.contacts img {
2024-03-10 00:35:47 +01:00
filter: invert();
}
}
* {
2024-03-31 23:49:43 +02:00
transition: color 300ms ease, background-color 300ms ease, fill 500ms ease;
2024-03-10 00:35:47 +01:00
}
html,
body {
2024-03-31 23:49:43 +02:00
width: 100vw;
2024-03-10 00:35:47 +01:00
display: flex;
flex-flow: column nowrap;
justify-content: center;
margin: auto;
background: var(--page-bg-color);
color: var(--page-fg-color);
font-size: 20px;
font-family: 'rubikregular', sans-serif;
scroll-behavior: smooth;
2024-03-10 00:35:47 +01:00
}
2024-03-31 23:49:43 +02:00
body>#spacer,
2024-03-10 00:35:47 +01:00
body>header {
2024-03-31 23:49:43 +02:00
position: fixed;
top: 0;
left: 0;
width: 100vw;
background-color: var(--header-bg-color);
}
body>#spacer {
2024-05-13 13:35:21 +02:00
height: var(--header-height-small);
2024-03-31 23:49:43 +02:00
}
body>header {
height: var(--header-height);
2024-03-10 00:35:47 +01:00
color: transparent;
2024-03-31 23:49:43 +02:00
transition: transform .3s ease-in-out;
transform-origin: top center;
}
body>header.small {
2024-05-16 19:28:05 +02:00
transform: scale(var(--header-height-multiplier));
2024-03-31 23:49:43 +02:00
}
body>header>svg {
display: block;
width: 960px;
max-width: 98vw;
margin: .5em auto;
color: var(--header-fg-color);
}
body>main {
width: 960px;
2024-03-31 23:57:02 +02:00
max-width: 98vw;
2024-05-13 13:35:21 +02:00
margin: var(--header-height) auto 4rem;
2024-03-10 00:35:47 +01:00
}
a {
color: var(--page-fg-color);
}
2024-05-16 19:28:05 +02:00
blockquote {
margin: 0;
padding: .5em .5em .5em 1em;
background-color: rgba(128, 128, 128, .1);
border-radius: 12px;
}
#intro {
display: flex;
flex-flow: column nowrap;
2024-05-16 19:28:05 +02:00
min-height: calc(100vh - var(--header-height));
margin: 2rem 0;
}
2024-05-16 19:28:05 +02:00
#content {
padding-top: 2rem;
}
2024-05-13 13:35:21 +02:00
#content>h1,
main.posts > header > h1 {
2024-03-31 23:49:43 +02:00
margin: 0 0 .25em;
2024-03-10 00:35:47 +01:00
font-size: 2rem;
font-variant: small-caps;
text-shadow: 1px 1px 0 var(--emboss-color);
2024-03-31 23:49:43 +02:00
color: var(--header-fg-color);
2024-03-10 00:35:47 +01:00
}
2024-05-13 13:35:21 +02:00
#content>h1 {
padding-top: 2em;
}
2024-03-10 00:35:47 +01:00
2024-05-16 19:28:05 +02:00
#cta {
2024-03-10 00:35:47 +01:00
display: flex;
2024-05-16 19:28:05 +02:00
flex-flow: row wrap;
2024-03-10 00:35:47 +01:00
justify-content: space-between;
align-items: center;
gap: 1rem;
}
2024-05-16 19:28:05 +02:00
#cta>a {
width: 450px;
padding: 2rem .5rem 0;
2024-03-10 00:35:47 +01:00
display: flex;
flex-flow: column nowrap;
justify-content: center;
align-items: center;
gap: 1rem;
2024-03-10 00:35:47 +01:00
text-decoration: none;
font-variant: small-caps;
font-size: 2rem;
text-align: center;
background-color: rgba(128, 128, 128, .1);
transition: background-color .3s ease;
border-radius: 12px;
}
2024-05-16 19:28:05 +02:00
#cta>a:hover {
background-color: rgba(128, 128, 128, .2);
2024-03-10 00:35:47 +01:00
}
2024-05-16 19:28:05 +02:00
#cta>a>svg {
2024-03-31 23:49:43 +02:00
display: block;
max-width: 200px;
2024-03-14 22:55:25 +01:00
opacity: .3;
transition: opacity .3s ease;
}
2024-05-16 19:28:05 +02:00
#cta>a:hover>svg {
opacity: .8;
2024-03-14 22:55:25 +01:00
}
.contacts {
2024-03-31 23:49:43 +02:00
margin: 1.5em 0;
columns: 3;
column-fill: balance;
2024-03-14 22:55:25 +01:00
}
.contacts p {
display: flex;
align-items: center;
gap: 1rem;
2024-03-31 23:49:43 +02:00
margin: 0 0 1em 0;
2024-03-14 22:55:25 +01:00
}
.contacts img {
width: 3rem;
2024-03-31 23:49:43 +02:00
}
#header-tilde,
#header-bracket,
#header-underscore {
fill: var(--highlight-fg-color);
}
#header-k,
#header-o,
#header-e,
#header-h,
#header-r {
fill: var(--header-fg-color);
}
#header-underscore {
animation: fade 2s linear infinite;
}
@keyframes fade {
0% {
opacity: 1.0;
}
50% {
opacity: 0.0;
}
60% {
opacity: 0.0;
}
80% {
opacity: 1.0;
}
100% {
opacity: 1.0;
}
2024-05-12 20:15:27 +02:00
}
2024-05-16 19:28:05 +02:00
@media (max-width: 980px) {
:root {
--header-height: calc(100vw * 0.17);
--header-height-small: 48px;
}
#cta>a {
width: 100%;
}
}