-
Notifications
You must be signed in to change notification settings - Fork 0
/
style.css
130 lines (111 loc) · 2.5 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
@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');
* {
margin: 0;
padding: 0;
box-sizing: border-box;
font-family: 'Poppins', sans-serif;
}
body {
min-height: 100vh;
display: flex;
justify-content: center;
align-items: center;
background: #2e2e44;
}
.digital-clock {
position: relative;
color: #fff;
background: #2d2f41;
width: 425px;
padding: 20px 45px;
box-shadow: 0 5px 25px rgba(14, 21, 37, 0.8);
border-radius: 10px;
display: flex;
justify-content: center;
align-items: center;
flex-direction: column;
}
.time {
position: relative;
display: flex;
justify-content: center;
align-items: center;
}
.hours,
.dots,
.minutes {
display: flex;
justify-content: center;
align-items: center;
font-weight: 600;
padding: 0 10px;
line-height: 125px;
}
.hours,
.minutes {
font-size: 6.2em;
width: 125px;
text-shadow: 0 0 70px #fff;
}
.dots {
font-size: 5em;
color: #929292;
}
.hours {
background: -webkit-linear-gradient(90deg, #ff98d1, #2f93f1);
-webkit-text-fill-color: transparent;
-webkit-background-clip: text;
}
.minutes {
background: -webkit-linear-gradient(90deg, #ff5e9a, #ffb960);
-webkit-text-fill-color: transparent;
-webkit-background-clip: text;
}
.right-side {
position: relative;
display: flex;
justify-content: center;
align-items: center;
flex-direction: column;
margin-left: 10px;
}
.period,
.seconds {
font-size: 1.2em;
font-weight: 500;
}
.period {
transform: translateY(-20px);
background: -webkit-linear-gradient(90deg, #f7b63f, #faf879);
-webkit-text-fill-color: transparent;
-webkit-background-clip: text;
}
.seconds {
transform: translateY(16px);
background: -webkit-linear-gradient(90deg, #24ff6d, #2f93f1);
-webkit-text-fill-color: transparent;
-webkit-background-clip: text;
}
.calender {
display: flex;
justify-content: center;
align-items: center;
font-size: 1.3em;
font-weight: 500;
margin-bottom: 5px;
background: -webkit-linear-gradient(90deg, #ae4af6, #ff98d1);
-webkit-text-fill-color: transparent;
-webkit-background-clip: text;
}
.month-name,
.day-name,
.day-number,
.year {
font-family: 'Poppins', sans-serif;
font-weight: 600;
margin-left: 8px;
}
.period,
.seconds {
font-weight: 600;
}