-
Notifications
You must be signed in to change notification settings - Fork 0
/
style.css
88 lines (76 loc) · 1.55 KB
/
style.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
88
@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&display=swap');
* {
margin: 0;
padding: 0;
box-sizing: border-box;
font-family: 'Manrope', sans-serif;
-webkit-tap-highlight-color: transparent;
}
body {
background-color: hsl(218, 23%, 16%);
display: flex;
align-items: center;
justify-content: center;
min-height: 100vh;
padding: 2rem;
}
.container {
background-color: hsl(217, 19%, 24%);
color: hsl(193, 38%, 86%);
width: 100%;
max-width: 550px;
padding: 2rem 3rem;
text-align: center;
border-radius: 20px;
position: relative;
}
.container .advice-id {
color: hsl(150, 100%, 66%);
letter-spacing: 4px;
font-weight: 500;
}
.container h1 {
font-size: 28px;
margin: 1.5rem 0 2rem;
}
.container h1 i {
font-size: 11px;
vertical-align: top;
margin-top: 7px;
}
.divider {
margin: 2rem 0;
cursor: pointer;
user-select: none;
outline: none;
border: none;
background-color: transparent;
}
.divider.pause {
opacity: 0.5;
}
.divider img {
width: 100%;
}
.icon-dice {
position: absolute;
background-color: hsl(150, 100%, 66%);
padding: 1.25rem;
border-radius: 50%;
line-height: 0;
bottom: -30px;
left: 50%;
transform: translateX(-50%);
transition: .2s;
border: none;
outline: none;
cursor: pointer;
user-select: none;
}
.icon-dice:disabled {
opacity: 0.7;
pointer-events: none;
}
.icon-dice:hover {
box-shadow: 0 0 30px hsl(150, 100%, 66%);
}