-
Notifications
You must be signed in to change notification settings - Fork 0
/
style.styl
70 lines (65 loc) · 1.44 KB
/
style.styl
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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
// Variables
$text-color = white
$primary-color = #f0532d //rgb(240, 83, 45)
$background-color = rgb(59,3,87)
$background-color-to = deeppink
$animation-delay = 0s
$animation-duration = 10s
$animation-timing-function = cubic-bezier(1, 0.1, 0.68, 0.92)
// Animations
@keyframes background-color
0%
background-color: $background-color
100%
background-color: $background-color-to
@keyframes text-color
0%
filter: invert(0)
100%
filter: invert(1)
animate(animation)
animation: animation $animation-duration $animation-timing-function $animation-delay infinite alternate
// Reset browser basic styling
a, p
text-decoration: none
color: $text-color
html
box-sizing: border-box
*, *:before, *:after
box-sizing: inherit
// Main style
body
background-color: $background-color
font-family: 'Exo 2', sans-serif
height: 100vh
padding: 1vh
margin: 0
display: flex
flex-flow column
justify-content: space-between
animate(background-color)
.primary-color
color: $primary-color
img
max-width: 100%
header
display: flex
justify-content: space-between;
main
animate(text-color)
.banner
text-align: center
p
margin: 0.5em
font-size: calc(3vw + 3vh)
footer
display: flex
justify-content: space-around
flex-flow: row-reverse
.envelope
animate(text-color)
img
filter: invert(1)
padding: 0.05em
img
height: 2em