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
| /** | |
| * Diagonal stripes - repeating-linear-gradient() method | |
| */ | |
| background: repeating-linear-gradient(60deg, | |
| #fb3, #fb3 15px, | |
| #58a 0, #58a 30px); | |
| height: 100%; |
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
| /** | |
| * Subtle stripes | |
| */ | |
| background: #58a; | |
| background-image: repeating-linear-gradient(30deg, | |
| hsla(0,0%,100%,.1), hsla(0,0%,100%,.1) 15px, | |
| transparent 0, transparent 30px); | |
| height: 100vh; |
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
| /** | |
| * Blueprint grid | |
| */ | |
| background: #58a; | |
| background-image: linear-gradient(white 2px, transparent 0), | |
| linear-gradient(90deg, white 2px, transparent 0), | |
| linear-gradient(hsla(0,0%,100%,.3) 1px, transparent 0), | |
| linear-gradient(90deg, hsla(0,0%,100%,.3) 1px, transparent 0); | |
| background-size: 50px 50px, 50px 50px, |
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
| /** | |
| * Polka dot | |
| */ | |
| background: #655; | |
| background-image: radial-gradient(tan 20%, transparent 0), | |
| radial-gradient(tan 20%, transparent 0); | |
| background-size: 30px 30px; | |
| background-position: 0 0, 15px 15px; |
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
| /** | |
| * Vintage envelope themed border via border-image | |
| */ | |
| div { | |
| padding: 1em; | |
| border: 16px solid transparent; | |
| border-image: 16 repeating-linear-gradient(-45deg, red 0, red 1em, transparent 0, transparent 2em, | |
| #58a 0, #58a 3em, transparent 0, transparent 4em); | |
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
| /** | |
| * Animated pie chart | |
| */ | |
| .pie { | |
| width: 100px; height: 100px; | |
| border-radius: 50%; | |
| background: yellowgreen; | |
| background-image: linear-gradient(to right, transparent 50%, currentColor 0); | |
| color: #655; |
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
| /** | |
| * Animated pie chart | |
| */ | |
| .pie { | |
| width: 100px; height: 100px; | |
| border-radius: 50%; | |
| background: yellowgreen; | |
| background-image: linear-gradient(to right, transparent 50%, currentColor 0); | |
| color: #655; |
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
| /** | |
| * Color tinting — with filters | |
| */ | |
| img { | |
| max-width: 640px; | |
| transition: 1s filter, 1s -webkit-filter; | |
| -webkit-filter: sepia() saturate(4) hue-rotate(295deg); | |
| filter: sepia() saturate(4) hue-rotate(295deg); | |
| } |
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
| /** | |
| * Frosted glass effect | |
| */ | |
| body { | |
| min-height: 100vh; | |
| box-sizing: border-box; | |
| margin: 0; | |
| padding-top: calc(50vh - 6em); | |
| font: 150%/1.6 Baskerville, Palatino, serif; |
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
| /** | |
| * Folded corner effect — at an angle | |
| */ | |
| div { | |
| position: relative; | |
| width: 12em; | |
| background: #58a; /* Fallback */ | |
| background: linear-gradient(-150deg, transparent 1.5em, #58a 0); | |
| padding: 2em; |
OlderNewer