-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyle.css
More file actions
107 lines (88 loc) · 1.79 KB
/
style.css
File metadata and controls
107 lines (88 loc) · 1.79 KB
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
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
:root {
--hue: 194;
--bg-color:hsl(var(--hue), 5%, 7%) ;
--text-color:hsla(var(--hue), 40%, 98%, 1);
--primary-color:hsl(var(--hue), 100%, 63%);
--controls-bg-color:hsl(var(--hue), 0%, 14%);
--buton-secondary: hsla(var(--hue), 40%, 98%, 1);
font-size: clamp(40%, 1% + 2vw, 62.5%);
}
html.light {
--bg-color:hsla(var(--hue), 40%, 98%, 1);
--text-color:hsl(var(--hue), 5%, 7%) ;
--controls-bg-color:hsl(var(--hue), 0%, 14%);
}
html.light .ph-sun,
html:not(.light) .ph-moon {
display:none
}
#toggle-mode {
position: absolute;
right: 3.2rem;
top: 3.2rem;
font-size: 3.2rem;
line-height: 0;
color: var(--text-color);
}
/*screen reader only*/
.sr-only {
width: 1px;
height: 1px;
position: absolute;
overflow: hidden;
margin: -1px;
padding: 0;
border: 0;
appearance: none;
}
body {
background-color: var(--bg-color);
color: var(--text-color);
display: grid;
height: 100vh;
place-content: center;
}
#app {
display: grid;
justify-items: center;
}
.flex {
display: flex;
justify-content: center;
}
#timer {
font-size: 9.6rem;
font-weight: bold;
font-family: sans-serif;
}
#controls {
margin-top: 1.6rem;
padding: 2.2rem 4rem;
gap: 1.6rem;
background-color: var(--controls-bg-color);
border-radius: 999rem;
}
button {
background-color: transparent;
border: 0;
color: var(--primary-color);
cursor: pointer;
font-size: 6.4rem;
}
.secondary {
color: var(--buton-secondary);
}
/* controls */
.running .ph-play-circle,
.running .ph-timer,
.music-on .ph-speaker-none,
html:not(.running) .ph-pause-circle,
html:not(.running) .ph-stop-circle,
html:not(.music-on) .ph-speaker-high {
display: none;
}