yozora.tech/res/main.css

106 lines
1.7 KiB
CSS
Raw Normal View History

2024-12-07 11:15:32 +00:00
:root {
--fore: #202020;
--back: #f8f8f8;
--back2: #f4f4f4;
--shade: #a0a0a0;
}
*, *::before, *::after {
box-sizing: border-box;
}
body {
color: var(--fore);
background-color: var(--back);
line-height: 1.5;
margin: 0;
font-family: system-ui, sans-serif;
font-size: large;
}
nav {
position: sticky;
margin: 1em 0;
padding: 4px 0 2px 0;
background-color: var(--back2);
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: 0 2em;
color: var(--fore);
}
nav > .links {
list-style: none;
padding: 0;
display: flex;
margin: 0 8px;
justify-content: center;
line-height: 54px;
}
nav > .links > * {
margin: 0 2em;
}
nav > .links a:any-link {
color: var(--fore);
text-decoration: none;
}
h1.slogan {
font-size: 2.4em;
font-weight: 200;
margin: 4rem 0;
}
a:any-link {
color: var(--fore);
text-decoration: underline;
}
.frontpage {
text-align: center;
}
.showcase {
list-style: none;
padding: 0;
margin: 4rem auto;
padding: 1rem;
width: 28rem;
max-width: calc(100% - 2rem);
border: 1px solid var(--fore);
border-radius: 4px;
}
.showcase > * {
margin: 2rem 0;
}
p {
margin: 1rem 0;
}
footer {
font-size: 0.8em;
margin-top: 6rem;
margin-bottom: 2rem;
padding: 0.5rem 0;
border-top: 1px solid var(--shade);
border-bottom: 1px solid var(--shade);
background-color: var(--back2);
}
@media (prefers-color-scheme: dark) {
:root {
--fore: #a0a0a0;
--back: #202020;
--back2: #242424;
--shade: #808080;
}
}