ddstats-server/src/sass/theme.scss

273 lines
4.7 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-11-06 16:55:37 +01:00
*, *::before, *::after {
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;
2021-10-31 20:45:01 +01:00
margin-right: 2rem;
2021-10-30 23:15:55 +02:00
border-radius: 100%;
background-color: palette.$primary;
}
a {
color: palette.$accent;
2021-10-31 20:45:01 +01:00
border-bottom: .1rem solid transparent;
margin: .25rem 1rem .5rem 1rem;
padding: .15rem .5rem .25rem .5rem;
2021-10-30 23:15:55 +02:00
font-size: 1.25rem;
text-decoration: none transparent;
2021-10-31 20:45:01 +01:00
transition: border .3s;
&:hover {
border-bottom: .1rem solid palette.$accent;
}
&.current {
color: palette.$primary;
&:hover {
border-bottom: .1rem solid palette.$primary;
}
}
2021-10-30 23:15:55 +02:00
}
2021-10-30 21:39:21 +02:00
}
2021-11-05 10:32:06 +01:00
main.flex-container {
display: flex;
flex-wrap: wrap;
align-items: center;
justify-content: space-around;
margin: 0 10vw;
}
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);
}
}
2021-11-04 22:50:57 +01:00
a {
color: palette.$blue5;
}
2021-10-30 23:15:55 +02:00
//
// 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;
2021-10-31 20:45:01 +01:00
outline: 0 none transparent;
border: .2rem solid transparent;
2021-10-30 23:15:55 +02:00
border-radius: settings.$border_radius_s;
box-shadow: shadows.$small;
2021-10-31 20:45:01 +01:00
transition: border .3s, background-color .5s, border-radius .5s;
&:hover {
background-color: palette.$grey4;
border-radius: settings.$border_radius_m;
}
&:active, &:focus {
border: .2rem solid palette.$primary;
}
2021-10-30 23:15:55 +02:00
}
2021-11-06 16:55:37 +01:00
button[type=submit] {
margin: .75rem auto 1.25rem auto;
padding: .15rem .5rem;
border: .1rem solid palette.$accent;
border-radius: settings.$border_radius_s;
color: palette.$accent;
background-color: transparent;
cursor: pointer;
text-decoration: none transparent;
transition: color .3s, background-color .3s;
&:hover {
color: palette.$surface;
background-color: palette.$accent;
}
}
label {
cursor: pointer;
margin: .25rem 0;
>input[type=radio] {
// RESET
-webkit-appearance: none;
appearance: none;
cursor: pointer;
margin: 0 .5rem -.25rem 1rem;
padding: 0;
width: 1.25rem;
height: 1.25rem;
background-color: palette.$grey15;
border: .25rem solid palette.$grey15;
border-radius: 100%;
&:checked {
border-color: palette.$primary;
}
}
&:hover>input[type=radio] {
background-color: palette.$accent;
}
}
#search {
display: grid;
grid-template-columns: 2fr 1fr;
grid-template-columns: repeat(auto, 4);
grid-template-areas: 'header header'
'map map'
'category category'
'stars sort'
'submit submit';
width: min(90ch, 80vw);
margin: 2rem 10vw;
>* {
width: 100%;
}
h1 {
grid-area: header;
}
#map {
grid-area: map;
}
#categories {
grid-area: category;
}
#stars {
grid-area: stars;
}
.sorting {
grid-area: sort;
display: flex;
flex-direction: column;
}
button[type=submit] {
grid-area: submit;
width: max-content;
margin: auto;
}
}
2021-10-30 23:15:55 +02:00
2021-11-05 21:04:53 +01:00
//
// TABLES
//
tr {
width: max-content;
td {
padding: .25rem 0;
vertical-align: middle;
width: max-content;
}
td:first-child {
padding: .25rem 1.5rem .25rem 0;
}
}
2021-10-30 23:15:55 +02:00
//
// 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
}