koehr.ing/dist/style.css

105 lines
1.8 KiB
CSS
Raw Normal View History

2024-03-10 00:35:47 +01:00
:root {
--page-bg-color: #101626;
--page-fg-color: #fff8e7;
--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;
--emboss-color: #fff;
}
.light\:invert {
2024-03-10 00:35:47 +01:00
filter: invert();
}
}
* {
transition: color, background-color 200ms ease;
}
html,
body {
display: flex;
flex-flow: column nowrap;
justify-content: center;
width: 960px;
max-width: 98vw;
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
}
body>header {
height: 420px;
background: url(/header.jpg) center no-repeat;
color: transparent;
}
a {
color: var(--page-fg-color);
}
#intro {
display: flex;
flex-flow: column nowrap;
justify-content: center;
height: calc(100vh - 420px);
margin: 2rem 0;
}
2024-03-10 00:35:47 +01:00
#content>h1 {
font-size: 2rem;
font-variant: small-caps;
text-shadow: 1px 1px 0 var(--emboss-color);
}
#menu {
display: flex;
justify-content: space-between;
align-items: center;
gap: 1rem;
}
#menu>a {
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;
}
#menu>a:hover {
background-color: rgba(128, 128, 128, .2);
2024-03-10 00:35:47 +01:00
}
#menu>a>img {
max-width: 200px;
opacity: .4;
transition: opacity .3s ease;
}
#menu>a:hover>img {
opacity: .8;
2024-03-10 00:35:47 +01:00
}