ddstats-server/src/sass/theme.scss

119 lines
1.8 KiB
SCSS
Raw Normal View History

2021-10-30 23:15:55 +02:00
@use "partials/_shadows.scss";
@use "partials/_settings.scss";
@use "partials/_palette.scss";
2021-10-30 21:39:21 +02:00
* {
margin: 0;
padding: 0;
border: 0 none transparent;
box-sizing: border-box;
scroll-behavior: smooth;
font-family: 'Manrope Regular', sans-serif;
2021-10-30 23:15:55 +02:00
font-size: 1rem;
2021-10-30 21:39:21 +02:00
line-height: 1.5;
}
html, body {
2021-10-30 23:15:55 +02:00
color: palette.$text;
background-color: palette.$surface;
height: 100%;
2021-10-30 21:39:21 +02:00
}
nav {
2021-10-30 23:15:55 +02:00
display: flex;
align-items: center;
background-color: palette.$grey3;
border-radius: 0 0 settings.$border_radius_l settings.$border_radius_l;
box-shadow: shadows.$large;
margin: 0 0 2rem 0;
padding: 1rem 2rem;
.logo {
width: 3rem;
height: 3rem;
border-radius: 100%;
background-color: palette.$primary;
}
a {
color: palette.$accent;
margin: 1rem 2rem;
font-size: 1.25rem;
text-decoration: none transparent;
}
a.current {
color: palette.$primary;
}
2021-10-30 21:39:21 +02:00
}
2021-10-30 23:15:55 +02:00
//
// TEXT
//
2021-10-30 21:39:21 +02:00
header, h1, h2, h3, h4, h5, h6 {
2021-10-30 23:15:55 +02:00
color: palette.$accent;
}
header {
font-size: 4rem;
}
// No, I am not lazy...
// - BurnyLlama
@mixin heading($level) {
font-size: 1.65rem - ($level * 0.15);
font-weight: normal;
}
@for $i from 1 to 6 {
h#{$i} {
@include heading($i);
}
}
//
// FORMS, INPUT
//
form {
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
}
input {
color: palette.$text;
background-color: palette.$grey3;
margin: 1em 0;
padding: .75em 1.25em;
width: 80ch;
border-radius: settings.$border_radius_s;
box-shadow: shadows.$small;
}
//
// FOOTER
//
footer {
display: flex;
flex-direction: column;
align-items: center;
margin: 5vh 2rem;
a {
color: palette.$blue4;
font-size: 0.8rem;
}
2021-10-30 21:39:21 +02:00
}