-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathclock.css
More file actions
106 lines (96 loc) · 1.85 KB
/
clock.css
File metadata and controls
106 lines (96 loc) · 1.85 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
/*{
margin: 0;
padding:0;
box-sizing: border-box;
font-family: Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;
}*/
body{
margin-top: auto;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
min-height: 0vh;
background-image:url("Usign-Gradients-Featured-Image.jpeg");
}
/* Add a black background color to the top navigation */
.topnav {
background-color: #333;
overflow: hidden;
width: 100% ;
border-top: 0px;
border: solid purple;
margin: 0px;
padding: 20px;
}
/* Style the links inside the navigation bar */
.topnav a {
float:inline-start;
color: #f2f2f2;
text-align: center;
padding: 14px 16px;
text-decoration: none;
font-size: 17px;
}
/* Change the color of links on hover */
.topnav a:hover {
background-color: #ddd;
color: black;
}
/* Add a color to the active/current link */
.topnav a.active {
background-color: #04AA6D;
color: white;
}
#txt{
margin: 10px;
text-align: center;
color: white; /* #2211ff*/
text-align: center;
}
.container{
position: relative;
}
.clock{
width: 500px;
height: 500px;
border-radius: 50%;
background-color: bisque;
border: 2px solid blueviolet;
box-shadow: 0px 0px 30px grey;
display: flex;
justify-content: center;
align-items: center;
}
.clock span{
position: absolute;
transform: rotate(calc(30deg * var(--i)));
inset: 12px;
text-align: center;
}
.clock span b{
transform: rotate(calc(-30deg * var(--i)));
display: inline-block;
font-size: 30px;
}
.clock::before{
content: '';
position: absolute;
width: 10px;
height:10px;
border-radius: 50%;
background-color: black;
}
.hand{
position: absolute;
display: flex;
justify-content: center;
align-items: flex-end;
}
.hand i{
position: absolute;
background-color: var(--clr);
width: var(--w);
height: var(--h);
border-radius: 8px;
}