-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.css
117 lines (100 loc) · 1.99 KB
/
index.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
@import url('https://fonts.googleapis.com/css2?family=Goblin+One&display=swap');
:root {
--wine-red: #c7375f;
--bright-red: #d42d2f;
--dark-green: #344d2f;
--light-green: #77a047;
--gold: #fac57d;
--snow: #f0f4f7;
}
html,
body {
margin: 0;
padding: 0;
font-family: 'Goblin One', serif;
}
body {
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
height: 100vh;
padding: 10px;
text-align: center;
color: var(--dark-green);
background-color: var(--snow);
}
.container {
display: flex;
flex-direction: column;
background: var(--wine-red);
color: var(--snow);
padding: 1em 2em;
border-radius: 5px;
box-shadow: rgba(0, 0, 0, 0.1) 0px 4px 6px -1px, rgba(0, 0, 0, 0.06) 0px 2px 4px -1px;
}
.countdown-display {
font-size: 65px;
margin: 0;
}
.countdown-container {
display: flex;
gap: 15px;
}
.hours-minutes-seconds-container {
display: flex;
gap: 5px;
}
.hours-minutes-seconds-container div {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
min-width: 170px;
}
/* dialog styles */
#dialog-container {
width: 400px;
margin-bottom: 20px;
background-color: var(--gold);
color: var(--snow);
padding: 20px;
box-sizing: border-box;
transition: width 0.5s;
}
#countdown-form {
display: flex;
flex-direction: column;
gap: 10px;
text-align: left;
}
#countdown-title {
text-transform: capitalize;
}
.btn {
padding: 16px 32px;
background-color: var(--light-green);
border: none;
color: var(--snow);
border-radius: 4px;
cursor: pointer;
margin-top: 15px;
box-shadow: rgba(0, 0, 0, 0.1) 0px 4px 6px -1px, rgba(0, 0, 0, 0.06) 0px 2px 4px -1px;
transition: scale 0.5s;
}
.btn:active {
scale: 98%;
}
#countdown-form input {
padding: 16px;
width: 100%;
border: none;
border-radius: 4px;
}
@media only screen and (max-width: 720px) {
.countdown-container {
flex-direction: column;
align-items: center;
justify-content: center;
}
}