-
Notifications
You must be signed in to change notification settings - Fork 0
/
styles.css
87 lines (76 loc) · 1.41 KB
/
styles.css
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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
:root {
--light-cyan: hsl(193, 38%, 86%);
--neon-green: hsl(150, 100%, 66%);
--blue-1: hsl(217, 19%, 38%);
--blue-2: hsl(217, 19%, 24%);
--blue-3: hsl(218, 23%, 16%);
}
* {
box-sizing: border-box;
margin: 0;
padding: 0;
}
html,
body {
height: 100%;
}
body {
background: var(--blue-3);
color: var(--light-cyan);
font: 800 20px/1.5 Manrope, sans-serif;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
.advice {
min-height: 100%;
max-width: 576px;
margin: 0 auto;
padding: 40px 20px;
display: grid;
place-content: center;
}
.card-advice {
background: var(--blue-2);
padding: 25px;
text-align: center;
border-radius: 8px;
padding-bottom: 70px;
position: relative;
}
.advice-id {
color: var(--neon-green);
text-transform: uppercase;
font-size: 15px;
letter-spacing: 3px;
}
.advice-id span {
margin-left: 5px;
}
.advice-text {
margin: 20px 0 30px;
}
.divider img {
display: block;
width: 100%;
}
.dice-btn {
appearance: none;
display: inline-flex;
background: none;
border: none;
cursor: pointer;
width: 60px;
height: 60px;
border-radius: 50%;
background: var(--neon-green);
align-items: center;
justify-content: center;
position: absolute;
bottom: 0;
left: 50%;
transform: translate(-50%, 50%) scale(1);
transition: transform 300ms ease-out;
}
.dice-btn:active {
transform: translate(-50%, 50%) scale(0.9);
}