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
| /** | |
| * 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 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
| /** | |
| * Text on a circle | |
| */ | |
| body { | |
| font: bold 120% Helvetica, sans-serif; | |
| } | |
| .circular { | |
| width: 30em; |
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
| /** | |
| * Indicating disabled state | |
| */ | |
| :disabled, [disabled], [aria-disabled="true"] { | |
| cursor: not-allowed; | |
| } |
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
| /** | |
| * Extending the hit area — with borders | |
| */ | |
| button { | |
| padding: .3em .5em; | |
| border: 10px solid transparent; | |
| border-radius: 50%; | |
| background: #58a; | |
| background-clip: padding-box; |
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
| /** | |
| * Custom checkboxes | |
| */ | |
| input[type="checkbox"] { | |
| position: absolute; | |
| clip: rect(0,0,0,0); | |
| } | |
| input[type="checkbox"] + label::before { |
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
| /** | |
| * Toggle buttons | |
| */ | |
| input[type="checkbox"] { | |
| position: absolute; | |
| clip: rect(0,0,0,0); | |
| } | |
| input[type="checkbox"] + label { |
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
| /** | |
| * 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 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
| /** | |
| * Native modal dialog (limited support) | |
| */ | |
| dialog::backdrop { | |
| background: rgba(0,0,0,.8) | |
| } |
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
| /** | |
| * De-emphasizing by blurring (AND dimming) | |
| */ | |
| main { | |
| transition: .6s; | |
| background: white; | |
| } | |
| main.de-emphasized { |
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
| /** | |
| * Interactive image comparison — range input version | |
| */ | |
| .image-slider { | |
| position:relative; | |
| display: inline-block; | |
| } | |
| .image-slider > div { |