Skip to content

Instantly share code, notes, and snippets.

@tangyangzhe
Forked from csssecrets/dabblet.css
Created September 29, 2017 09:35
Show Gist options
  • Save tangyangzhe/8a8ea226fc213d61fe55e75dd4a6dd80 to your computer and use it in GitHub Desktop.
Save tangyangzhe/8a8ea226fc213d61fe55e75dd4a6dd80 to your computer and use it in GitHub Desktop.
Beveled corners — with gradients
/**
* Beveled corners — with gradients
*/
div {
background: #58a;
background: linear-gradient(135deg, transparent 15px, #58a 0) top left,
linear-gradient(-135deg, transparent 15px, #58a 0) top right,
linear-gradient(-45deg, transparent 15px, #58a 0) bottom right,
linear-gradient(45deg, transparent 15px, #58a 0) bottom left;
background-size: 50% 50%;
background-repeat: no-repeat;
padding: 1em 1.2em;
max-width: 12em;
color: white;
font: 150%/1.6 Baskerville, Palatino, serif;
}
<div>Hey, focus! You’re supposed to be looking at my corners, not reading my text. The text is just placeholder!</div>
// alert('Hello world!');
{"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