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
| /** | |
| * Learning CSS3 | |
| * background-clip | |
| */ | |
| html { | |
| min-height:100%; | |
| background: url('http://leaverou.github.com/CSSS/img/rainbow-wood.jpg') top; | |
| background-size: cover; | |
| } |
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
| /** | |
| * Learning CSS3 | |
| * border-image | |
| */ | |
| html { | |
| min-height:100%; | |
| background: white url(http://leaverou.github.com/chainvas/img/background.jpg); | |
| } |
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
| /** | |
| * Learning CSS3 | |
| * RGBA/HSLA, border-radius, box-shadow, text-shadow | |
| */ | |
| html { | |
| min-height:100%; | |
| background: url('http://leaverou.github.com/CSSS/img/rainbow-wood.jpg') center; | |
| } |
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
| /** | |
| * Learning CSS3 | |
| * Transitions & transforms | |
| */ | |
| html { | |
| min-height:100%; | |
| background: url('http://leaverou.github.com/CSSS/img/rainbow-wood.jpg') top; | |
| background-size: cover; | |
| } |
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
| /** | |
| * Learning CSS3 | |
| * RGBA/HSLA, border-radius, box-shadow, text-shadow | |
| */ | |
| html { | |
| min-height:100%; | |
| background: url('http://leaverou.github.com/CSSS/img/rainbow-wood.jpg') center; | |
| } |
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-shadow when letters are overlapping | |
| */ | |
| font: bold 800% 'Palatino Linotype', Palatino, Georgia, serif; | |
| text-align: center; | |
| letter-spacing: -.3em; | |
| text-shadow: 0 .5em hsla(0,0%,50%,.5); | |
| color: rgba(255,0,100,.5); |
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
| /** | |
| * Regain default button styling by CSS overrides. Possible? | |
| */ | |
| button { | |
| background: red; /* we can't remove this */ | |
| background: initial; /* failed */ | |
| background: none; /* failed */ | |
| /* anything else? */ | |
| } |
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
| /** | |
| * Typing animation with pure CSS. | |
| * Works best in browsers supporting the ch unit. | |
| */ | |
| @keyframes typing { from { width: 0; } } | |
| @keyframes blink-caret { 50% { border-color: transparent; } } | |
| h1 { | |
| font: bold 200% 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
| /** | |
| * Move in a circle without wrapper elements | |
| * Idea by Aryeh Gregor, simplified by Lea Verou | |
| */ | |
| @keyframes rot { | |
| from { | |
| transform: rotate(0deg) | |
| translate(-150px) | |
| rotate(0deg); |
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
| /** | |
| * Testcase | |
| * Should be true on a 13.3" LCD at 1280x800 | |
| */ | |
| html { background: red } | |
| @media (min-resolution: 112dpi) and (max-resolution: 113dpi) { | |
| html { background: lime } | |
| } |