This file contains hidden or 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; |
This file contains hidden or 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
| /** | |
| * 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; |
This file contains hidden or 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
| /** | |
| * Diamond images β via clip-path | |
| */ | |
| img { | |
| max-width: 250px; | |
| margin: 20px; | |
| -webkit-clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%); | |
| clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%); | |
| transition: 1s; |
This file contains hidden or 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
| /** | |
| * Diamond images β via transforms | |
| */ | |
| .diamond { | |
| width: 250px; | |
| height: 250px; | |
| transform: rotate(45deg); | |
| overflow: hidden; | |
| margin: 100px; |
This file contains hidden or 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
| /** | |
| * Parallelograms β with pseudoelements | |
| */ | |
| .button { | |
| position: relative; | |
| display: inline-block; | |
| padding: .5em 1em; | |
| border: 0; margin: .5em; | |
| background: transparent; |
This file contains hidden or 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
| /** | |
| * Parallelograms β with extra HTML element | |
| */ | |
| .button { transform: skewX(45deg); } | |
| .button > div { transform: skewX(-45deg); } | |
| .button { | |
| display: inline-block; | |
| padding: .5em 1em; |
This file contains hidden or 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
| /** | |
| * Flexible quarter ellipse | |
| */ | |
| div { | |
| display: inline-block; | |
| width: 16em; | |
| height: 10em; | |
| margin: 1em; | |
| background: #fb3; |
This file contains hidden or 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
| /** | |
| * Flexible half ellipse | |
| */ | |
| div { | |
| display: inline-block; | |
| width: 16em; | |
| height: 10em; | |
| margin: 1em; | |
| background: #fb3; |
This file contains hidden or 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
| /** | |
| * Flexible ellipse | |
| */ | |
| div { | |
| width: 16em; | |
| height: 10em; | |
| background: #fb3; | |
| border-radius: 50%; | |
| } |
This file contains hidden or 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
| /** | |
| * Footnote-style border | |
| */ | |
| .footnote { | |
| border-top: .15em solid transparent; | |
| border-image: 100% 0 0 linear-gradient(90deg, currentColor 4em, transparent 0); | |
| padding-top: .5em; | |
| font: 220%/1.4 Baskerville, Palatino, serif; | |
| } |