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
/** | |
* fixed footer behind | |
*/ | |
body | |
{ | |
margin: 0; | |
padding: 0; | |
background-color: white; | |
font: 1.2em/3 Georgia; |
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
/** | |
* right edge of box at given distance from left viewport edge | |
*/ | |
#a | |
{ | |
position: absolute; | |
top: 100px; | |
right: 100%; | |
transform: translateX(100px); |
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
/** | |
* The first commented line is your dabblet’s title | |
*/ | |
a | |
{ | |
font: 1.5em/1 Georgia; | |
display: inline-block; | |
margin: 0 1em; | |
} |
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
/** | |
* figure caption appears | |
* deprecated by http://dabblet.com/gist/e1c363fdb1212f7a5aa7c7e62c349bd3 | |
*/ | |
* | |
{ | |
box-sizing: border-box; | |
} |
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
/** | |
* figure caption disappears, wrong effect | |
*/ | |
* | |
{ | |
box-sizing: border-box; | |
} | |
html |
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
/** | |
* figure caption disappears | |
*/ | |
html | |
{ | |
background: hsl(30, 60%, 90%); | |
} | |
figure |
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
/** | |
* width-dependent line height | |
*/ | |
html | |
{ | |
padding: 0 2em; | |
font: 1.5em/1.5 Georgia; | |
line-height: calc(1.1em + 1vw); | |
} |
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
/** | |
* sticky header in box | |
*/ | |
div | |
{ | |
margin: auto; | |
width: 16em; | |
height: 26em; | |
padding: 0 1em; |
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
/** | |
* Quadratisch, praktisch, gut | |
*/ | |
div | |
{ | |
position: relative; | |
display: inline-block; | |
margin: 1em; | |
width: 30%; |
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
/** | |
* Quadratisch, praktisch, gut | |
*/ | |
div | |
{ | |
position: relative; | |
display: inline-block; | |
margin: 1em; | |
width: 30%; |