-
Notifications
You must be signed in to change notification settings - Fork 0
/
style.css
115 lines (92 loc) · 1.93 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
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
:root {
/* Colors */
--primary-Light-Cyan: hsl(193, 38%, 86%);
--primary-Neon-Green: hsl(150, 100%, 66%);
--neutral-Grayish-Blue: hsl(217, 19%, 38%);
--neutral-Dark-Grayish-Blue: hsl(217, 19%, 24%);
--neutral-Dark-Blue: hsl(218, 23%, 16%);
/* Fonts */
--ff-primary: 'Manrope', sans-serif;
--fw-regular: 400;
--fw-extrabold: 800;
}
*,
*::before,
*::after {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
padding-inline: 1.5rem;
min-height: 100vh;
font-family: var(--ff-primary);
font-weight: var(--fw-extrabold);
color: var(--primary-Light-Cyan);
background-color: var(--neutral-Dark-Blue);
display: flex;
justify-content: center;
align-items: center;
}
img,
svg {
display: block;
max-width: 100%;
}
/* text styling */
.advice__number {
font-size: .75rem;
color: var(--primary-Neon-Green);
text-transform: uppercase;
letter-spacing: 2px;
}
.advice__phrase {
font-size: 1.75rem;
text-align: center;
}
.advice__phrase::before {
content: open-quote;
}
.advice__phrase::after {
content: close-quote;
}
@media (max-width: 330px) {
.advice__phrase {
font-size: 1.50rem;
}
}
/* Layout */
.advice {
padding: 2rem;
max-width: 500px;
background-color: var(--neutral-Dark-Grayish-Blue);
border-radius: 12px;
display: flex;
flex-direction: column;
align-items: center;
gap: 1.4rem;
position: relative;
}
.rule {
margin-block: 1.4rem;
width: 100%;
}
.dice {
padding: 1rem;
background-color: var(--primary-Neon-Green);
border: 0;
border-radius: 50%;
cursor: pointer;
display: flex;
justify-content: center;
align-items: center;
position: absolute;
bottom: 0;
left: 50%;
transform: translate(-50%, 50%);
transition: box-shadow 200ms;
}
.dice:focus,
.dice:hover {
box-shadow: 0 0 1rem .01rem var(--primary-Neon-Green);
}