-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathstyle.css
More file actions
98 lines (83 loc) · 1.53 KB
/
style.css
File metadata and controls
98 lines (83 loc) · 1.53 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
@import url('https://fonts.googleapis.com/css2?family=Inconsolata&display=swap');
html {
box-sizing: border-box;
font-size: 10px;
background-color: #3e3b3b;
/* background: linear-gradient(45deg, #1e1e1e 0%, #252525 50%, #3e3e3e 100%); */
}
*, *:before, *:after {
box-sizing: inherit;
}
body {
text-align: center;
margin: 0;
font-family: 'Inconsolata', monospace;
}
.display__time-left {
font-size: 20rem;
color: white;
/* font-weight: 100; */
margin: 0;
text-shadow: 4px 4px 0 red;
}
.display__end-time {
font-size: 4rem;
color: white;
}
.timer {
display: flex;
min-height: 100vh;
flex-direction: column;
}
.timer__controls {
display: flex;
}
.timer__controls > * {
flex: 1;
}
.timer__controls form {
flex: 1;
display: flex;
}
.timer__controls input {
flex: 1;
border: 0;
padding: 2rem;
}
input {
font-size: 1.5rem;
}
.timer__button {
background: none;
border: 0;
cursor: pointer;
color: white;
font-family: 'Inconsolata', monospace;
font-size: 2rem;
text-transform: uppercase;
background: rgba(0,0,0,0.1);
border-bottom: 3px solid rgba(0,0,0,0.2);
border-right: 1px solid rgba(0,0,0,0.2);
padding: 1rem;
}
.timer__button:hover,
.timer__button:focus {
background: rgba(0,0,0,0.2);
outline: 0;
}
.display {
display: flex;
justify-content: center;
align-items: center;
flex-direction: column;
flex: 1;
}
/* added for making it responsive */
@media (max-width: 50rem) {
.timer__controls {
flex-direction: column;
}
.display h1{
font-size: 15rem;
}
}