blob: 608f7c2d11e2760dae05647aeb095fee2a242a55 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
|
@use "../abstracts" as *;
*,
*::after,
*::before {
box-sizing: inherit;
margin: 0;
padding: 0;
}
html,
body {
// min-height to ensure footer sticks to bottom and background doesn't repeat
min-height: 100vh;
width: 100vw;
}
body {
background: linear-gradient(
45deg,
rgba($col-main-light, 0.89) 0%,
rgba($col-main-dark, 0.84) 100%
);
background-repeat: no-repeat;
background-size: cover;
box-sizing: border-box;
color: $text-main;
// grid to ensure footer sticks to the bottom in all cases; body consists of header (auto), main (1fr) and footer (auto); needs min-height 100vh too, here added to "html, body"
display: grid;
grid-template-rows: auto 1fr auto;
font-family: "Inter", sans-serif;
font-size: $small-text;
line-height: 1.5;
}
main {
height: 100%;
margin: $margin-main;
& * {
animation: fade-in 2s ease-out;
}
@include responsive(phone) {
margin: 2rem 0.5rem;
}
}
::selection {
background-color: $text-main;
color: $text-dark;
}
|