-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyle.css
More file actions
173 lines (143 loc) · 3.15 KB
/
style.css
File metadata and controls
173 lines (143 loc) · 3.15 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
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
/* Resetting the CSS and setting up. */
*, *::before, *::after {
box-sizing: border-box;
margin: 0;
padding: 0;
}
:root {
font-size: 10px;
}
body {
color: #EEE;
font-family: 'Open Sans', sans-serif;
}
/* Making the settings icon z-index: 10, so that it is above the dark overlay. */
.settings-icon {
position: fixed;
font-size: 2.2rem;
cursor: pointer;
z-index: 10;
}
/* The darken effect is based on the opacity property. */
.dark-overlay {
position: fixed;
top: 0;
left: 0;
display: flex;
flex-direction: column;
align-items: center;
background: rgba(0, 0, 0, .75);
z-index: 5;
opacity: 0;
transition: opacity .2s;
}
.dark-overlay.active {
opacity: 1;
}
.dark-overlay .settings-box {
position: relative;
display: flex;
flex-direction: column;
top: 100%;
padding: 2.4rem;
width: 40rem;
height: 30rem;
background-color: #FCFCFC;
color: #141414;
transition: .2s;
}
/* Setting Open Sans for all the settings elements.
This is done to ensure that buttons and inputs are using the right font. */
.dark-overlay * {
font-family: 'Open Sans', sans-serif;
}
/* When settings icon clicked, the settings box can smoothly slide upwards. */
.dark-overlay.active .settings-box {
top: 50%;
transform: translateY(-50%);
}
.dark-overlay .settings-box label {
margin-bottom: .8rem;
font-size: 1.2rem;
}
.dark-overlay .settings-box input {
margin-bottom: 1.6rem;
padding: 1rem .5rem;
border: none;
outline: none;
border-bottom: 1px solid #BBB;
transition: .2s;
}
.dark-overlay .settings-box input:focus {
border-bottom: 1px solid #666;
}
.dark-overlay .settings-box .save-settings {
margin-top: auto;
padding: 1rem .5rem;
background-color: #fcb126;
border: none;
outline: none;
cursor: pointer;
}
.main-section {
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
width: 100%;
height: 100vh;
background: linear-gradient(to bottom, rgba(0, 0, 0, .8), rgba(0, 0, 0, .8)), url("./img/main-background.jpg");
background-size: cover;
background-position: center;
}
.timer {
display: flex;
flex-direction: column;
}
/* The actual time is the only element, that uses the Lexend font family. */
.timer .timer-time {
display: flex;
margin-bottom: 1rem;
font-family: 'Lexend', sans-serif;
}
/* Also making the individual time boxes semi-transparent (90%). */
.timer .timer-time > * {
display: grid;
place-items: center;
width: 11.2rem;
height: 11.2rem;
background: rgba(32, 32, 32, .9);
font-size: 4.6rem;
}
.timer .timer-time > *:not(:last-child) {
margin-right: 1rem;
}
.timer .timer-settings {
display: flex;
}
.timer .timer-settings > * {
padding: 1rem .5rem;
}
.timer .timer-settings > *:not(:last-child) {
margin-right: 1rem;
}
.timer .timer-settings input {
width: 5.8rem;
background: none;
font-size: 1.4rem;
border: none;
outline: none;
border-bottom: 1px solid #CCC;
color: #CCC;
transition: .2s;
}
.timer .timer-settings input:focus {
border-bottom: 1px solid #fcb126;
}
.timer .timer-settings .timer-start {
width: 15.2rem;
background-color: #fcb126;
border: none;
outline: none;
cursor: pointer;
}