Last active
September 19, 2021 11:50
-
-
Save csssecrets/24484257bc6cf7076a8e to your computer and use it in GitHub Desktop.
Scoop corners
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
/** | |
* Scoop corners | |
*/ | |
div { | |
background: #58a; | |
background: radial-gradient(circle at top left, transparent 15px, #58a 0) top left, | |
radial-gradient(circle at top right, transparent 15px, #58a 0) top right, | |
radial-gradient(circle at bottom right, transparent 15px, #58a 0) bottom right, | |
radial-gradient(circle at bottom left, transparent 15px, #58a 0) bottom left; | |
background-size: 50% 50%; | |
background-repeat: no-repeat; | |
padding: 1em 1.2em; | |
max-width: 12em; | |
color: white; | |
font: 130%/1.6 Baskerville, Palatino, serif; | |
} |
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>Hey, focus! You’re supposed to be looking at my corners, not reading my text. The text is just placeholder!</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","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