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
| /** | |
| * Example to show off inline CSS highlighting | |
| */ |
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 generated content | |
| */ | |
| button { | |
| position: relative; | |
| padding: .3em .5em; | |
| background: #58a; | |
| border-radius: 50%; | |
| border: 1px solid rgba(0,0,0,.3); |
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
| /** | |
| * Fancy Ampersands | |
| */ | |
| @font-face { | |
| font-family: Ampersand; | |
| src: local('Baskerville-Italic'), local('GoudyOldStyleT-Italic'), local('Garamond-Italic'), local('Palatino-Italic'); | |
| unicode-range: U+26; | |
| } |
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
| /** | |
| * Ligatures | |
| */ | |
| body { | |
| font: 200%/1.6 "Adobe Caslon Pro", Baskerville, serif; | |
| font-variant-ligatures: common-ligatures discretionary-ligatures historical-ligatures; | |
| } |
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
| /** | |
| * Adjusting tabs | |
| */ | |
| pre { | |
| padding: .5em; | |
| line-height: 1.5; | |
| background: hsl(20, 50%, 95%); | |
| font-family: Consolas, Monaco, monospace; | |
| } |
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
| /** | |
| * Zebra striped text lines | |
| */ | |
| pre { | |
| padding: .5em; | |
| line-height: 1.5; | |
| background: hsl(20, 50%, 95%); | |
| background-image: linear-gradient( | |
| rgba(120,0,0,.1) 50%, transparent 0); |
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
| /** | |
| * Inserting line breaks | |
| */ | |
| dt, dd { | |
| display: inline; | |
| margin: 0; | |
| } | |
| dd { |
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
| /** | |
| * Hyphenation | |
| */ | |
| width: 8.7em; | |
| font: 180%/1.4 Baskerville, serif; | |
| text-align: justify; | |
| hyphens: auto; |
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 | |
| */ | |
| div { | |
| width: 12em; | |
| background: #58a; /* Fallback */ | |
| background: | |
| linear-gradient(to left bottom, transparent 50%, rgba(0,0,0,.4) 0) 100% 0 no-repeat, | |
| linear-gradient(-135deg, transparent 1.5em, #58a 0); |
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 blending modes | |
| */ | |
| .tinted-image { | |
| width: 640px; height: 440px; | |
| background-size: cover; | |
| background-color: hsl(335, 100%, 50%); | |
| background-blend-mode: luminosity; | |
| transition: .5s background-color; |
NewerOlder