-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyle.css
134 lines (117 loc) · 2.45 KB
/
style.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
* {
box-sizing: border-box;
}
body {
margin: 0;
font-family: Arial, Helvetica, sans-serif;
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
}
.background {
position: fixed;
width: 100%;
height: 100%;
top: 0;
left: 0;
background: linear-gradient(to bottom right, #00d2ff, #3a7bd5, #7742B2, #CC0099, #FDB813);
background-size: 400% 400%;
animation: gradient 15s ease infinite;
z-index: -1;
}
.container {
width: 100%;
display: flex;
justify-content: center;
}
.clock {
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
padding: 1.5rem;
border-radius: 2rem;
background-color: #e5e5e5;
box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.2);
}
.time-wrapper {
display: flex;
justify-content: center;
align-items: center;
}
.time {
font-size: 3rem;
font-weight: bold;
padding: 0.5rem;
margin: 0.5rem;
border-radius: 1rem;
background-color: #fff;
color: #141414;
text-shadow: 0px 0px 10px rgba(0, 0, 0, 0.2);
}
.time-separator {
font-size: 3rem;
font-weight: bold;
padding: 0.5rem;
margin: 0.5rem;
color: #141414;
}
.timezone {
font-size: 1.2rem;
font-weight: bold;
margin-top: 0.5rem;
text-align: center;
color: #fff;
text-shadow: 0px 0px 10px rgba(0, 0, 0, 0.2);
}
.toggle-button {
font-size: 1.2rem;
font-weight: bold;
padding: 1rem 2rem;
border-radius: 1rem;
background-color: #fff;
color: #141414;
text-shadow: 0px 0px 10px rgba(0, 0, 0, 0.2);
box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.2);
transition: all 0.3s ease;
margin-top: 1.5rem;
}
.toggle-button:hover {
cursor: pointer;
background-color: #f2f2f2;
}
.toggle-button:active {
background-color: #e6e6e6;
}
@media only screen and (max-width: 768px) {
.time {
font-size: 2rem;
padding: 0.3rem;
margin: 0.3rem;
border-radius: 0.5rem;
}
.time-separator {
font-size: 2rem;
padding: 0.3rem;
margin: 0.3rem;
}
.timezone {
font-size: 1rem;
}
.toggle-button {
font-size: 1rem;
padding: 0.5rem 1rem;
}
}
@keyframes gradient {
0% {
background-position: 0% 50%;
}
50% {
background-position: 100% 50%;
}
100% {
background-position: 0% 50%;
}
}