-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyle.css
More file actions
99 lines (84 loc) · 1.48 KB
/
Copy pathstyle.css
File metadata and controls
99 lines (84 loc) · 1.48 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
:root {
--bg-colour: #f4ebd9;
--text-colour: #0c090d;
--accent-colour: #886F68;
}
body {
font-family: "Funnel Sans", sans-serif;
font-optical-sizing: auto;
font-weight: <weight>;
font-style: normal;
background-color: var(--bg-colour);
color: var(--text-colour);
}
body {
display: flex;
height: 100vh;
width: 100vw;
overflow: hidden;
flex-direction: column;
justify-content: center;
align-items: center;
}
h1 {
display: block;
flex: 1;
margin: auto;
padding: 2rem;
}
#tyd {
font-size: clamp(4rem, 10vmin, 12rem);
}
#timer-bar {
position: fixed;
bottom: 2vh;
left: 0;
right: 0;
height: 10vh;
display: flex;
align-items: center;
justify-content: center;
gap: 1.25rem;
padding: 0 2rem;
background: var(--bg-colour);
}
.timer-btn {
background: none;
border: none;
cursor: pointer;
padding: 0.15rem;
display: flex;
align-items: center;
justify-content: center;
transition: opacity 0.2s, transform 0.4s;
transform: scale(1.0001);
}
.timer-btn:last-child {
transform: scale(1.15);
}
.timer-btn:hover {
opacity: .65;
}
.timer-btn.active svg {
opacity: .5;
}
.timer-btn svg {
width: 3rem;
height: 3rem;
}
#progress-container {
flex: 1;
max-width: 80vw;
height: 2vh;
background: var(--accent-colour);
border-radius: 1rem;
overflow: hidden;
}
#progress-bar {
height: 100%;
width: 100%;
background: var(--text-colour);
transform-origin: left;
transform: scaleX(1);
transition: transform linear;
}