bliss.town/public/style/main.css

89 lines
1.7 KiB
CSS
Raw Normal View History

2024-04-03 21:02:51 +00:00
@import url("/font/lora/lora-font.css");
:root {
--foreground: #28261f;
--background: #f9f1db;
--primary: #92a40a;
}
@media screen and (prefers-color-scheme: dark) {
:root {
--foreground: #f9f1db;
--background: #28261f;
--primary: #d9e679;
}
}
2024-04-04 04:44:19 +00:00
header {
width: min(900px, calc(100vw - 4rem));
margin: 0 auto;
padding: 2rem 0;
text-align: center;
}
header nav {
font-size: .8em;
}
header nav a:not(:first-child)::before {
content: '-';
margin: 0 .8em 0 .5em;
}
2024-04-03 21:02:51 +00:00
body {
position: absolute;
top: 0;
left: 0;
width: 100vw;
min-height: 100vh;
margin: 0;
padding: 0;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
font-family: "Lora", serif;
2024-04-03 22:12:11 +00:00
font-size: 1.5rem;
2024-04-03 21:02:51 +00:00
color: var(--foreground);
background-color: var(--background);
}
main {
2024-04-03 22:12:11 +00:00
width: min(720px, calc(100vw - 4rem));
2024-04-03 21:02:51 +00:00
margin: -2rem auto 0 auto;
text-align: center;
}
hr {
margin: 2rem 0;
border-width: 1px 0 0 0;
}
hr::after {
content: "✦";
position: absolute;
transform: translate(-50%, -50%);
background: var(--background);
color: var(--foreground);
padding: 5px;
}
a {
color: var(--primary);
text-decoration: none;
font-weight: bold;
}
footer {
width: min(900px, calc(100vw - 4rem));
margin: 0 auto;
padding: 2rem 0;
text-align: center;
}
2024-04-04 04:44:19 +00:00
#footer-links {
font-size: .8em;
}