website/assets/style.scss

108 lines
2 KiB
SCSS
Raw Normal View History

:root {
--background: rgb(20, 40, 60);
--border: rgb(40, 40, 40);
--text: rgb(255, 255, 255);
--vrifox-red: rgb(255, 130, 130);
}
@media (prefers-color-scheme: light) {
:root {
--background: rgb(255, 255, 255);
--border: rgb(215, 215, 215);
--text: rgb(0, 0, 0);
}
}
* {
box-sizing: border-box;
scrollbar-color: var(--vrifox-red) var(--background);
scrollbar-width: thin;
&::-webkit-scrollbar {
background: var(--background);
width: 6px;
}
&::-webkit-scrollbar-thumb { background: var(--vrifox-red); }
}
html {
overflow-x: hidden;
overflow-y: scroll;
}
body {
background: var(--background);
color: var(--text);
display: grid;
font-family: system-ui, sans-serif;
font-size: 1.2em;
line-height: 1.8;
margin: 0;
}
a {
color: var(--text);
text-decoration: underline;
text-decoration-color: var(--vrifox-red);
text-underline-offset: 3px;
transition: text-decoration-color .2s;
&:hover { text-decoration-color: var(--text); }
}
hr {
border-color: var(--text);
color: var(--text);
margin: 60px 0;
}
// ------------------------
// - header / nav; footer -
// ------------------------
header, footer {
align-items: center;
display: flex;
flex-wrap: wrap;
margin: 0 auto;
max-width: 1140px;
min-height: 64px;
width: 100%;
a {
color: var(--text);
padding: 17.6px 15px;
text-decoration-color: var(--background);
text-decoration-thickness: 2px !important;
text-underline-offset: 6px;
margin: 0 15px;
&:hover { text-decoration-color: var(--vrifox-red); }
}
}
header {
border-bottom: 1px solid var(--border);
h1 {
display: flex;
font-size: 1em;
margin: 0;
}
nav {
display: flex;
flex-wrap: wrap;
}
}
footer {
border-top: 1px solid var(--border);
color: var(--text);
a { color: var(--text); }
span {
padding: 17.6px 30px;
margin-right: auto;
}
}
// --------
// - main -
// --------
main {
margin: 20px auto;
max-width: 720px;
padding: 30px;
width: 100%;
span { font-size: .8em; }
}