yozora.tech/res/main.css

128 lines
2.1 KiB
CSS

:root {
--fore: #101010;
--bottom: #f0f0f0;
--back: #e8e8e8;
--shade: #a0a0a0;
}
*, *::before, *::after {
box-sizing: border-box;
}
body {
color: var(--fore);
background-color: var(--bottom);
line-height: 1.5;
margin: 0;
font-family: system-ui, sans-serif;
font-size: large;
}
nav {
position: sticky;
margin: 1em 0;
padding: 0;
background-color: var(--back);
border-top: 1px solid var(--shade);
border-bottom: 1px solid var(--shade);
top: 0;
display: flex;
justify-content: space-between;
}
nav > .logo {
display: block;
margin: 2px 1em;
height: 52px;
color: var(--fore);
}
nav > .links {
list-style: none;
display: flex;
margin: 0;
padding: 0 1em;
justify-content: center;
line-height: 54px;
}
nav > .links > * {
margin: 0;
padding: 0;
}
nav > .links a {
display: inline-block;
transition: border 0.32s 0s ease-out;
padding: 0 1em;
line-height: 54px;
border-bottom: 2px solid transparent;
}
nav > .links a:any-link {
text-decoration: none;
}
nav > .links a:hover {
border-bottom: 2px solid var(--fore);
}
h1.slogan {
font-size: 2.5em;
font-weight: 200;
margin: 1.5em 0;
}
a:any-link {
color: var(--fore);
text-decoration: underline;
}
main {
margin: 4em auto;
max-width: 21cm;
}
p {
line-height: 1.8;
}
.frontpage {
text-align: center;
}
.showcase {
list-style: none;
padding: 0;
margin: 2em auto 5em auto;
padding: 1em;
width: 28em;
max-width: calc(100% - 2em);
border: 1px solid var(--fore);
border-radius: 4px;
}
.showcase > * {
margin: 1.5em 0;
}
p {
margin: 1em 0;
}
footer {
text-align: center;
font-size: 0.8em;
margin: 2em 0;
padding: 0.5em 0;
border-top: 1px solid var(--shade);
border-bottom: 1px solid var(--shade);
background-color: var(--back);
}
@media (prefers-color-scheme: dark) {
:root {
--fore: #d0d0d0;
--bottom: #181818;
--back: #242424;
--shade: #808080;
}
img.dim {
filter: brightness(0.8);
}
}