Last active
September 19, 2021 15:55
-
-
Save csssecrets/83b4d6bc907aa5ab576a to your computer and use it in GitHub Desktop.
Folded corner effect
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
/** | |
* Folded corner effect | |
*/ | |
div { | |
width: 12em; | |
background: #58a; /* Fallback */ | |
background: | |
linear-gradient(to left bottom, transparent 50%, rgba(0,0,0,.4) 0) 100% 0 no-repeat, | |
linear-gradient(-135deg, transparent 1.5em, #58a 0); | |
background-size: 2em 2em, auto; | |
padding: 2em; | |
color: white; | |
font: 100%/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>“The only way to get rid of a temptation is to yield to it.” | |
— Oscar Wilde, The Picture of Dorian Gray</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