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
/** | |
* Refactor of the WPD breadcrumbs bar based on the idea by @wernull | |
*/ | |
ol.breadcrumbs { | |
margin: 0 0 0 -1.1em; | |
padding: 0; | |
height: 1em; | |
text-transform: uppercase; | |
float: left; |
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
/** | |
* Loading animation like the one seen on http://www.freeger.com/projects/contextad/ with CSS | |
* Caveat: Not DRY. The content needs to be repeated in a data- attribute (or directly in the CSS). | |
*/ | |
body { | |
background: #ccc51c; | |
min-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
/** | |
* CSS transitions on stroke-dasharray | |
*/ | |
circle { | |
stroke: red; | |
stroke-width: 10; | |
stroke-dasharray: 20, 20; | |
transition: 1s; | |
} |
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
/** | |
* Playing with background-attachment | |
*/ | |
pre { | |
max-height: 150px; | |
border: 1px solid silver; | |
overflow: auto; | |
border: 10px dotted red; | |
background: url('http://placedog.com/200/200'); |
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
/** | |
* CSS Puzzle: Reverse the z-order of the <li>s without setting a separate z-index on each one in a way that works in IE9 and up | |
*/ | |
li { | |
list-style: none; | |
display: inline-block; | |
padding: 1em 2em 1em 1em; | |
border: 1px solid rgba(0,0,0,.3); | |
border-radius: 0 999px 999px 0; |
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
/** | |
* Flexible buttons with ems (duh!) | |
*/ | |
body { | |
font-family: sans-serif | |
} | |
button { | |
padding: .5em .8em .4em; |
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
/** | |
* Flags (In progress!) | |
*/ | |
@font-face { | |
font-family: 'WPSymbols'; | |
src: url('http://docs.webplatform.org/w/skins/webplatform/fonts/WPSymbols.woff') format('woff'), | |
url('http://docs.webplatform.org/w/skins/webplatform/fonts/WPSymbols.ttf') format('truetype'); | |
} | |
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
/** | |
* Standardization status | |
*/ | |
body { | |
background: #f9f7f3; | |
font-size: 14px; | |
} | |
/* Don't copy this rule, it’s just for the demo */ |
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
/** | |
* Overlapping shadows? | |
*/ | |
font: bold 600% sans-serif; | |
letter-spacing: -.2em; | |
text-decoration: line-through underline; | |
text-shadow: 1em 1em rgba(0,255,0,.5); |
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
/** | |
* Overflow border-radius (Gecko bug) | |
*/ | |
div { | |
background: deeppink; | |
width: 400px; | |
height: 300px; | |
border-radius: 9999999999999999999999999999999999px | |
} |
OlderNewer