-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyle.css
More file actions
147 lines (127 loc) · 3.11 KB
/
Copy pathstyle.css
File metadata and controls
147 lines (127 loc) · 3.11 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
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
.clock-outer {
width: 300px;
height: 300px;
border: 15px solid;
border-radius: 50%;
position: relative;
background: red;
}
.clock {
width: 280px;
height: 280px;
border: 2px solid black;
border-radius: 50%;
font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
position: absolute;
background: #f1f1f1;
}
.container {
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
background-color: rgba(0, 0, 0, 0);
}
.clock .number {
position: absolute;
width: 100%;
height: 100%;
text-align: center;
font-size: 1.5rem;
}
.clock .hand {
position: absolute;
background-color: black;
border: 1px solid white;
border-top-left-radius: 10px;
border-top-right-radius: 10px;
left: 50%;
bottom: 50%;
transform-origin: bottom;
transform: translateX(-50%) rotate(var(--rotation));
}
#small-circle:active { /*fuck doing an animation ! ! ! all my bros love no animations ! ! ! */
width: 22px;
height: 22px;
}
#small-circle {
position: absolute;
width: 25px;
height: 25px;
border-radius: 50%;
background-color: red;
left: 50%;
bottom: 50%;
transform: translateX(-50%) translateY(50%); /*this nasty fucking thing wont center in native res. if i zoom in a tiny bit it does i wish i knew how to fix it (i have tried moving it a pixel left.)*/
}
#smaller-circle {
position: absolute;
width: 13px;
height: 13px;
border-radius: 50%;
background-color: greenyellow;
left: 50%;
bottom: 50%;
transform: translateX(-50%) translateY(50%);
border: 2px solid white;
/*visibility:hidden; /*maybe try this again?*/
}
.hand.second {
height: 48%;
width: 3px;
/*background: red;*/
}
.hand.minute {
height: 40%;
width: 5px;
}
.hand.hour {
height: 30%;
width: 10px;
}
.hand.average {
height: calc(var(--scalefactor)*140px); /*apparently more precise this way (????)*/
min-height: 6px; /*what i found to be the ideal tradeoff between when small it doesnt show because its under the circle and if its on top the bottom jitters up and down*/
width: 10px;
left: 133px;
bottom: 140px;
background: red;
transform: rotate(var(--rotation)) translateY(-5px);
border: 2px solid white;
border-bottom-color: red;
/*border-bottom-style: hidden;*/
/*translateX changed from 50% to a specific value. if not, the hand jitters a lot more. might be a different solution.*/
}
.number1 {
transform: rotate(30deg);
}
.number2 {
transform: rotate(60deg);
}
.number3 {
transform: rotate(90deg);
}
.number4 {
transform: rotate(120deg);
}
.number5 {
transform: rotate(150deg);
}
.number6 {
transform: rotate(180deg);
}
.number7 {
transform: rotate(210deg);
}
.number8 {
transform: rotate(240deg);
}
.number9 {
transform: rotate(270deg);
}
.number10 {
transform: rotate(300deg);
}
.number11 {
transform: rotate(330deg);
}