Last active
November 18, 2020 09:14
-
-
Save firefoxic/e78c7f10a7bbab5131b13b762f5fc9ac to your computer and use it in GitHub Desktop.
Simple pie chart with fallback (no variables)
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
/** | |
* Simple pie chart with fallback (no variables) | |
*/ | |
.pie { | |
height: 20px; | |
background: linear-gradient(to right, #fe7b99 , #1b3b4e); | |
background-color: gold; | |
} | |
@supports (background: conic-gradient(white, black)) { | |
.pie { | |
width: 200px; height: 200px; | |
background-image: conic-gradient(deeppink 40%, transparent 0); | |
border-radius: 50%; | |
} | |
} |
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
<div class="pie"></div> |
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
// alert('Hello world!'); |
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
{"view":"split-vertical","fontsize":"100","seethrough":"","prefixfree":"1","page":"css"} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment