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
/** | |
* De-emphasizing by blurring (AND dimming) | |
*/ | |
main { | |
transition: .6s; | |
background: white; | |
} | |
main.de-emphasized { |
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
/** | |
* Rudimetary overlay with box-shadow | |
*/ | |
.lightbox { | |
position: fixed; | |
top: 50%; left: 50%; | |
margin: -200px; | |
box-shadow: 0 0 0 50vmax rgba(0,0,0,.8); | |
} |
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
/** | |
* Toggle buttons | |
*/ | |
input[type="checkbox"] { | |
position: absolute; | |
clip: rect(0,0,0,0); | |
} | |
input[type="checkbox"] + label { |
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
/** | |
* Custom checkboxes | |
*/ | |
input[type="checkbox"] { | |
position: absolute; | |
clip: rect(0,0,0,0); | |
} | |
input[type="checkbox"] + label::before { |
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
/** | |
* Extending the hit area — with generated content | |
*/ | |
button { | |
position: relative; | |
padding: .3em .5em; | |
background: #58a; | |
border-radius: 50%; | |
border: 1px solid rgba(0,0,0,.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
/** | |
* Indicating disabled state | |
*/ | |
:disabled, [disabled], [aria-disabled="true"] { | |
cursor: not-allowed; | |
} |
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
/** | |
* Text on a circle | |
*/ | |
body { | |
font: bold 120% Helvetica, sans-serif; | |
} | |
.circular { | |
width: 30em; |
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
/** | |
* Extruded text | |
*/ | |
body { | |
background: #58a; | |
color: white; | |
text-shadow: 0 1px hsl(0,0%,85%), | |
0 2px hsl(0,0%,80%), | |
0 3px hsl(0,0%,75%), |
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
/** | |
* Glowing text | |
*/ | |
body { | |
background: #203; | |
font: bold 500%/1 Rockwell, serif; | |
} | |
a { |
NewerOlder