-
Notifications
You must be signed in to change notification settings - Fork 20
/
countdownStyle.css
232 lines (211 loc) · 4.17 KB
/
countdownStyle.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
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
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
body {
text-align: center;
margin: auto;
background: #fff;
color: #212121;
max-width: 800px;
height: fit-content;
height: -moz-fit-content;
position: absolute;
left: 0;
right: 0;
top: -15%;
bottom: 0;
padding: 15px;
box-shadow: 0 3px 6px rgba(0, 0, 0, 0.16), 0 3px 6px rgba(0, 0, 0, 0.23);
border-radius: 4px;
padding: 30px;
}
.cd {
display: inline-block;
width: 22%;
}
.cd p {
margin: 12px 0;
border: 1px solid transparent;
border-radius: 8px;
text-align: center;
color: #00796b;
}
p#date,
p#timezone {
margin: 20px;
}
#days, #hours, #minutes, #seconds {
font-size: 600%;
}
#daysLabel, #hoursLabel, #minutesLabel, #secondsLabel {
font-size: 130%;
}
#content {
font-size: 130%;
}
h2 {
margin: 0;
padding-top: 0;
font-size: 200%;
}
@media only screen and (max-width: 842px) {
body {
margin: auto 15px;
}
#days, #hours, #minutes, #seconds {
font-size: 400%;
}
#daysLabel, #hoursLabel, #minutesLabel, #secondsLabel {
font-size: 110%;
}
h2{
font-size: 150%;
}
}
@media only screen and (max-width: 600px) {
body {
margin: auto 15px;
}
h2{
font-size: 130%;
}
#days, #hours, #minutes, #seconds {
font-size: 300%;
}
#daysLabel, #hoursLabel, #minutesLabel, #secondsLabel, #date, #timezone{
font-size: 70%;
}
}
@media only screen and (max-width: 500px) {
body {
margin: 15px;
position: static;
}
.cd {
display: inline-block;
width: 45%;
}
h2{
font-size: 110%;
}
#days, #hours, #minutes, #seconds {
font-size: 380%;
}
#daysLabel, #hoursLabel, #minutesLabel, #secondsLabel{
font-size: 90%;
}
#date, #timezone{
font-size: 80%;
}
}
@media only screen and (max-height: 690px) {
body {
margin-top: 25px;
margin-bottom: 25px;
position: static;
}
}
input[type="text"],
input[type="number"],
input[type="date"],
input[type="time"] {
position: relative;
left: 10px;
bottom: 4px;
padding: 4px;
font-size: 21px;
background: #fff;
color: #212121;
transition: 0.2s ease-out border-bottom;
border: none;
border-bottom: 2px solid #000000;
max-width: 100%;
}
input[type="text"]:focus,
input[type="number"]:focus,
input[type="date"]:focus,
input[type="time"]:focus {
background: #fff;
border-bottom: 2px solid #26a69a;
outline: none;
}
input#utcInput {
width: 75px;
}
input[type="button"] {
margin: 4px 0;
font-size: 16px;
border-radius: 7px;
background: #00796b;
color: #ffffff;
border: none;
padding: 10px 14px;
box-shadow: 0 3px 6px rgba(0, 0, 0, 0.16), 0 3px 6px rgba(0, 0, 0, 0.23);
transition: 0.2s ease-out box-shadow;
cursor: pointer;
outline: none;
}
input[type="button"]:hover {
box-shadow: 0 10px 20px rgba(0, 0, 0, 0.19), 0 6px 6px rgba(0, 0, 0, 0.23);
}
a.home {
position: fixed;
bottom: 12px;
left: 12px;
background: #00796b;
border-radius: 50%;
width: 48px;
height: 48px;
text-decoration: none;
color: #fff;
line-height: 48px;
text-align: center;
font-size: 36px;
box-shadow: 0 3px 6px rgba(0, 0, 0, 0.16), 0 3px 6px rgba(0, 0, 0, 0.23);
transition: 0.2s ease-out box-shadow;
}
a.home:hover {
box-shadow: 0 10px 20px rgba(0, 0, 0, 0.19), 0 6px 6px rgba(0, 0, 0, 0.23);
}
/* Tooltip container */
.tooltip {
margin-left: 10px;
color: #000;
text-decoration: none;
position: relative;
display: inline-block;
border-bottom: 1px dotted black; /* If you want dots under the hoverable text */
}
/* Tooltip text */
.tooltip .tooltiptext {
visibility: hidden;
font-size: 14px;
width: 260px;
background-color: #555;
color: #fff;
text-align: center;
padding: 5px 1px 5px 1px;
border-radius: 6px;
/* Position the tooltip text */
position: absolute;
z-index: 1;
bottom: 125%;
left: 50%;
margin-left: -130px;
/* Fade in tooltip */
opacity: 0;
transition: opacity 0.3s;
}
/* Tooltip arrow */
.tooltip .tooltiptext::after {
content: "";
position: absolute;
top: 100%;
left: 50%;
margin-left: -5px;
border-width: 5px;
border-style: solid;
border-color: #555 transparent transparent transparent;
}
/* Show the tooltip text when you mouse over the tooltip container */
.tooltip:hover .tooltiptext {
visibility: visible;
opacity: 1;
}