barua-ui 0.3.3 → 0.3.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -258,6 +258,10 @@
|
|
|
258
258
|
/* ---- Circular Progress / Gauge ring ----------------------------------------------- */
|
|
259
259
|
.b-circular {
|
|
260
260
|
--b-progress: 0;
|
|
261
|
+
/* Its own colour, defaulting to the accent. Without this a caller tinting
|
|
262
|
+
one ring had to override --b-color-accent inline, which re-tints
|
|
263
|
+
everything inside it and breaks the one rule about colour in markup. */
|
|
264
|
+
--b-circular-color: var(--b-color-accent);
|
|
261
265
|
--b-circular-size: 3rem;
|
|
262
266
|
--b-circular-track: 4px;
|
|
263
267
|
position: relative;
|
|
@@ -267,7 +271,7 @@
|
|
|
267
271
|
height: var(--b-circular-size);
|
|
268
272
|
border-radius: 50%;
|
|
269
273
|
background:
|
|
270
|
-
conic-gradient(var(--b-color
|
|
274
|
+
conic-gradient(var(--b-circular-color) calc(var(--b-progress) * 1%), transparent 0);
|
|
271
275
|
-webkit-mask: radial-gradient(farthest-side,
|
|
272
276
|
transparent calc(100% - var(--b-circular-track)),
|
|
273
277
|
#000 calc(100% - var(--b-circular-track) + 0.5px));
|