-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyle.css
More file actions
114 lines (87 loc) · 1.63 KB
/
style.css
File metadata and controls
114 lines (87 loc) · 1.63 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
99
100
101
102
103
104
105
106
107
108
109
110
111
/*adding style for all body*/
*{
margin: 0;
padding: 0;
font-family: 'Poppins',sans-serif;
box-sizing: border-box;
}
/*styling the screen div*/
.screen
{
width: 100%;
min-height: 100vh;
background: linear-gradient(45deg, #08001f,#30197d);
color: #fff;
position: relative;
}
/*styling the box div*/
.box{
width: 800px;
height: 180px;
position:absolute;
top: 50%;
left: 50%;
transform: translate(-50%,-50%);
}
/*styling the clock div*/
.clock{
width: 100%;
height: 100%;
background-color: rgba(235, 0, 255, 0.11);
border-radius: 10px;
display: flex;
align-items: center;
justify-content: center;
backdrop-filter: blur(40px);
}
/*adding box in left*/
.box::before{
content: '';
width: 180px;
height: 180px;
background: #f41b75;
border-radius: 5px;
position: absolute;
left: -50px;
top: -50px;
z-index: -1;
}
/*adding box in right*/
.box::after{
content: '';
width: 180px;
height: 180px;
background: #419aff;
border-radius: 50%;
position: absolute;
right: -30px;
bottom: -50px;
z-index: -1;
}
/*maintaining style of span tag*/
.clock span{
font-size: 80px;
width: 110px;
position: relative;
display: inline-block;
align-items: center;
}
.clock span::after{
font-size: 16px;
position: absolute;
bottom: -10px;
left: 50%;
transform: translateX(-50%);
}
/*content of hrs*/
#hrs::after{
content: 'HRS';
}
/*content of minute*/
#min::after{
content: 'MIN';
}
/*content of sec*/
#sec::after{
content: 'SEC';
}