-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyles.css
More file actions
110 lines (103 loc) · 2.63 KB
/
styles.css
File metadata and controls
110 lines (103 loc) · 2.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
/*
This CSS file will be included with your plugin, and
available in the app when your plugin is enabled.
If your plugin does not need CSS, delete this file.
*/
.block-language-clock {
--clock-color:var(--color-red);
--color-red: #ff5757;
--color-dark: #020308;
--color-mid: #101116;
--color-light: #44454a;
--color-bright: white;
--color-scrollbar-bg: var(--color-dark);
--color-scrollbar-fg: var(--color-light);
--color-clock-border: var(--color-dark);
--clock-handle-size: 40px;
--clock-size: 150px;
--clock-disc-size: 80px;
--scrollbar-thickness: 12px;
--clock-border-thickness: 4px;
display: flex;
justify-content: space-evenly;
flex-wrap: wrap;
}
.clock {
--angle: calc(360deg / var(--n));
display: flex;
flex-direction: column;
width: fit-content;
.description{
color: var(--clock-color);
display: flex;
justify-content: center;
}
}
.clock[bad] {
--clock-color: var(--color-red);
}
.clock .widget {
position: relative;
height: var(--clock-size);
width: var(--clock-size);
}
.clock .core {
position: absolute;
height: 100%;
width: 100%;
border: var(--clock-border-thickness) solid var(--color-clock-border);
border-radius: 50%;
box-sizing: border-box;
overflow: hidden;
}
.clock .slice {
--o: 10%;
position: absolute;
top: calc(-1 * var(--o));
left: 50%;
height: calc(50% + var(--o));
width: calc(50% + var(--o));
background: var(--color-light);
transform-origin: bottom left;
transform: rotate(calc(var(--i) * var(--angle))) skewY(calc(-90deg + var(--angle)));
cursor: pointer;
}
.clock .slice[filled] {
background: var(--clock-color);
}
.clock .slice:not([filled])[will-change] {
background: var(--clock-color);
filter: brightness(0.5);
}
.clock .slice[filled][will-change] {
background: var(--color-light);
}
.clock .disc {
--offset: calc((var(--clock-size) - var(--clock-disc-size)) / 2);
position: absolute;
top: var(--offset);
left: var(--offset);
height: var(--clock-disc-size);
width: var(--clock-disc-size);
border-radius: 50%;
background: var(--color-clock-border);
pointer-events: none;
}
.clock .bar {
--w: calc(2 * var(--clock-border-thickness));
--h: 60%;
position: absolute;
top: -10%;
left: 50%;
height: var(--h);
width: var(--w);
transform-origin: bottom left;
transform: rotate(calc(var(--i) * var(--angle)));
pointer-events: none;
}
.clock .bar .paint {
margin-left: calc(-0.5 * var(--w));
height: 100%;
width: 100%;
background: var(--color-clock-border);
}