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
/** | |
* Vertical stripes | |
*/ | |
background: linear-gradient(to right, #fb3 50%, #58a 0); | |
background-size: 20px 100%; |
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
/** | |
* Scrolling hints | |
*/ | |
ul { | |
display: inline-block; | |
overflow: auto; | |
width: 7.2em; | |
height: 7em; | |
border: 1px solid silver; |
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
/** | |
* Interactive image comparison — range input version | |
*/ | |
.image-slider { | |
position:relative; | |
display: inline-block; | |
} | |
.image-slider > 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
/** | |
* Elastic color | |
*/ | |
html { | |
background: rgb(100%, 0%, 40%); | |
transition: 1s cubic-bezier(.25,.1,.2,3); | |
} |
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
/** | |
* box-shadow removes slider track in Chrome | |
*/ | |
input { | |
box-shadow: 0 0 5px red; | |
} |
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
/** | |
* Diagonal stripes - repeating-linear-gradient() method | |
*/ | |
background: repeating-linear-gradient(60deg, | |
#fb3, #fb3 15px, | |
#58a 0, #58a 30px); | |
height: 100%; |
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
/** | |
* 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 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
/** | |
* Checkerboard with SVG | |
*/ | |
background: #eee url('data:image/svg+xml,\ | |
<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" fill-opacity=".25" >\ | |
<rect x="50" width="50" height="50" />\ | |
<rect y="50" width="50" height="50" />\ | |
</svg>'); | |
background-size: 30px 30px; |
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
/** | |
* Checkerboard | |
*/ | |
background: #eee; | |
background-image: | |
linear-gradient(45deg, rgba(0,0,0,.25) 25%, transparent 0, transparent 75%, rgba(0,0,0,.25) 0), | |
linear-gradient(45deg, rgba(0,0,0,.25) 25%, transparent 0, transparent 75%, rgba(0,0,0,.25) 0); | |
background-position: 0 0, 15px 15px; | |
background-size: 30px 30px; |
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
/** | |
* Conic gradients test | |
* PASS if green gradient, FAIL if red. | |
*/ | |
background: red; | |
background: conic-gradient(limegreen, green, limegreen); | |
min-height: 100%; |
OlderNewer