Open History to see the last commit
1.move-dial {
2 position: relative;
3 width: var(--dial-size, 44px);
4 height: var(--dial-size, 44px);
5 background: #131415;
6 border-radius: 50%;
7 box-shadow:
8 0 0 0 1px rgb(255 255 255 / 85%),
9 0 2px 6px rgb(19 20 21 / 22%);
10}
11
12.move-dial-ring {
13 position: absolute;
14 inset: 0;
15 width: 100%;
16 height: 100%;
17 stroke-width: 3;
18 stroke-linecap: round;
19}
20
21.move-dial-track {
22 stroke: rgb(255 255 255 / 16%);
23}
24
25.move-dial-segment,
26.move-dial-charge {
27 stroke: var(--ammo-color);
28 stroke-dasharray: 1;
29 stroke-dashoffset: 1;
30}
31
32.move-dial-segment--filled {
33 /* Spend instantly; refill smoothly without a drain competing with a bonus. */
34 transition: stroke-dashoffset 160ms ease-out;
35 stroke-dashoffset: 0;
36}
37
38.move-dial-charge {
39 opacity: 0.65;
40 animation: move-dial-refill var(--charge-duration) linear forwards;
41}
42
43.move-dial-readout {
44 position: absolute;
45 inset: 0;
46 display: flex;
47 flex-direction: column;
48 align-items: center;
49 justify-content: center;
50 color: white;
51}
52
53.move-dial-count {
54 font-size: var(--dial-count-size, 15px);
55 font-weight: 600;
56 font-variant-numeric: tabular-nums;
57 line-height: 1;
58}
59
60.move-dial-label {
61 margin-top: 1px;
62 font-size: var(--dial-label-size, 6px);
63 line-height: 1;
64 letter-spacing: 0.06em;
65 text-transform: uppercase;
66 color: #c9cbcf;
67}
68
69.move-dial[data-empty="true"] {
70 animation: move-dial-empty 1s ease-in-out infinite;
71}
72
73@keyframes move-dial-refill {
74 from {
75 stroke-dashoffset: var(--charge-start);
76 }
77 to {
78 stroke-dashoffset: 0;
79 }
80}
81
82@keyframes move-dial-empty {
83 50% {
84 box-shadow:
85 0 0 0 1px rgb(229 57 53 / 85%),
86 0 0 10px rgb(229 57 53 / 25%);
87 }
88}
89
90@media (prefers-reduced-motion: reduce) {
91 .move-dial-charge {
92 animation: none !important;
93 stroke-dashoffset: var(--charge-start);
94 }
95}