111 lines
1.7 KiB
CSS
111 lines
1.7 KiB
CSS
@import url(https://fonts.bunny.net/css?family=share-tech-mono:400);
|
|
|
|
@media (prefers-color-scheme: dark) {
|
|
:root {
|
|
--main-bg: #1b0d1f;
|
|
--content-bg: var(--main-bg);
|
|
--accent: #896a95;
|
|
--primary-text: #e4c2f1;
|
|
--primary-link: #b666d9;
|
|
--primary-link-hover: #f2e0f8;
|
|
}
|
|
}
|
|
|
|
@media (prefers-color-scheme: light) {
|
|
:root {
|
|
--main-bg: #edf6d1;
|
|
--content-bg: var(--main-bg);
|
|
--accent: #929a79;
|
|
--primary-text: #1d2114;
|
|
--primary-link: #667937;
|
|
--primary-link-hover: #343c1f;
|
|
}
|
|
}
|
|
|
|
html {
|
|
background: var(--main-bg);
|
|
}
|
|
|
|
body {
|
|
color: var(--primary-text);
|
|
font-family: sans-serif;
|
|
line-height: 1.5;
|
|
margin: 1rem auto;
|
|
max-width: 900px;
|
|
background: var(--content-bg);
|
|
font-size: 1.2rem;
|
|
}
|
|
|
|
header {
|
|
border-bottom: 1px solid var(--accent);
|
|
/* background: purple; */
|
|
padding: 4rem 1rem 0 1rem;
|
|
margin-bottom: 1rem;
|
|
display: flex;
|
|
flex-flow: row wrap;
|
|
justify-content: space-between;
|
|
align-items: baseline;
|
|
font-family: 'Share Tech Mono', 'Courier New', Courier, monospace;
|
|
text-transform: lowercase;
|
|
font-size: 1.3rem;
|
|
}
|
|
|
|
header h1 {
|
|
display: inline;
|
|
margin: 0;
|
|
font-size: 1.3rem;
|
|
flex: 2 1 15%;
|
|
}
|
|
|
|
header a {
|
|
text-decoration: none;
|
|
}
|
|
|
|
nav {
|
|
display: inline-block;
|
|
flex: 5 1 25%
|
|
}
|
|
|
|
nav ul {
|
|
margin: 0;
|
|
}
|
|
|
|
nav ul li {
|
|
display: inline-block;
|
|
padding: 0 0.3rem;
|
|
}
|
|
|
|
main {
|
|
padding: 0 1.5rem;
|
|
}
|
|
|
|
footer {
|
|
border-top: 1px solid var(--accent);
|
|
margin-top: 1rem;
|
|
text-align: center;
|
|
}
|
|
|
|
a {
|
|
color: var(--primary-link);
|
|
transition: color 0.5s;
|
|
}
|
|
|
|
a:hover, a:active {
|
|
color: var(--primary-link-hover);
|
|
}
|
|
|
|
img {
|
|
max-width: 100%;
|
|
}
|
|
|
|
figure {
|
|
max-width: 100%;
|
|
}
|
|
|
|
@media only screen and (max-width: 450px) {
|
|
header h1 {
|
|
display: block;
|
|
}
|
|
}
|
|
|