-
Notifications
You must be signed in to change notification settings - Fork 0
/
style.css
111 lines (97 loc) · 1.85 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
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
:root {
font-size: 62.5%;
--whitebg-fc: hsla(240, 6%, 21%, 1);
--ff-body: "Roboto", sans-serif;
}
main {
display: flex;
flex-direction: column;
height: 100vh;
width: 100vw;
align-items: center;
justify-content: center;
gap: 4rem;
}
.timer-controls {
display: flex;
flex-direction: column;
align-items: center;
gap: 1.8rem;
}
.timer {
display: flex;
font-family: var(--ff-body);
font-size: clamp(8rem, 8rem + 3vw , 12.6rem);
color: var(--whitebg-fc);
padding: 0 5rem;
}
.hide {
display: none;
}
button {
background: none;
border: none;
}
.controls {
display: flex;
gap: 2rem;
}
.controls button svg path {
fill: var(--whitebg-fc);
}
.controls button svg {
width: clamp(3rem, 3rem + 3vw, 4.8rem);
height: auto;
}
.sound {
display: flex;
flex-direction: column;
justify-content: center;
gap: clamp(1.8rem, 1.8rem + 3vw, 3.5rem );
}
.twoSounds {
display: flex;
gap: clamp(1.8rem, 1.8rem + 3vw, 3.5rem );
}
.sound button svg {
width: clamp(6rem, 7rem + 3vw, 13.8rem);
height: auto;
}
.twoSounds button.On svg path:nth-child(1) {
fill: #02799D;
}
.twoSounds button.On svg path:nth-child(2) {
fill: white;
}
.alert-error {
position: absolute;
background: var(--whitebg-fc);
font-family: var(--ff-body);
font-size: 1.6rem;
color: #ffffff;
top: 0;
right: 0;
left: 0;
text-align: center;
padding: .8rem 0;
visibility: hidden;
opacity: 0;
transform: translateY(-3rem);
transition: transform .5s;
}
.alert-error.open {
opacity: 1;
visibility: visible;
transform: translateY(0);
}
@media (min-width: 800px ) {
main {
flex-direction: row;
gap: clamp(10rem, 10rem + 3vw, 19rem);
}
}