Last active
July 26, 2022 18:34
-
-
Save GoodNew5/285b6417af91f82d3b8ace6911754ef1 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.circle { | |
--progress-width: 4px; | |
--progress-color: var(--ROUGE_SARDE); | |
--expires-color: var(--BLUE_PLAZA); | |
position: relative; | |
border-radius: 50%; | |
border: solid var(--progress-width) #aaa; | |
@include lg { | |
width: 65px; | |
height: 65px; | |
--progress-width: 4px; | |
} | |
} | |
.circle__progress { | |
position: absolute; | |
inset: calc(var(--progress-width) * -1); | |
z-index: 5; | |
border-radius: 50%; | |
background-image: conic-gradient( | |
var(--progress-color) calc(var(--progress-value) * 3.6deg), | |
transparent calc(var(--progress-value) * 3.6deg) 360deg | |
); | |
-webkit-mask: radial-gradient(farthest-side, #0000 calc(100% - var(--progress-width)), #000 calc(100% - var(--progress-width) + 1px)); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment