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
/** | |
* heading with text background | |
* https://forum.selfhtml.org/self/2015/jan/22/zweizeilige-ueberschrift/1630398#m1630398 | |
* see also http://codepen.io/gunnarbittersmann/pen/YyMGLa | |
*/ | |
h1 | |
{ | |
font: normal 2.5em/1.5 Georgia, serif; | |
padding: 0 0.5em 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
/** | |
* heading with text background | |
*/ | |
h1 | |
{ | |
font: normal 2.5em/1.5 Georgia, serif; | |
padding: 0 0.5em; | |
background-image: linear-gradient( | |
to bottom, |
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
// ---- | |
// Sass (v3.4.9) | |
// Compass (v1.0.1) | |
// ---- | |
li | |
{ | |
@for $i from 1 to 13 | |
{ | |
&:nth-child(24n+#{$i}) |
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
// ---- | |
// Sass (v3.4.9) | |
// Compass (v1.0.1) | |
// ---- | |
@mixin nth-children($n, $m: $n/2) | |
{ | |
$selectorlist: null; | |
@for $i from 1 to $m+1 |
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 | |
*/ | |
background: #f06; | |
background: linear-gradient(45deg, #f06, yellow); | |
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
/** | |
* z-index with position: relative | |
*/ | |
div { display: inline-block; width: 200px; height: 200px } | |
#green-box { background: green; z-index: 1; position: relative } | |
#red-box { background: red; margin-left: -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
/** | |
* verse lines | |
* use of l elements is a willful violation of the HTML specification | |
*/ | |
html | |
{ | |
font: 1.5em/1.5 Georgia, serif; | |
} |
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
/** | |
* verse lines | |
* use of l elements is a willful violation of the HTML specification | |
*/ | |
html | |
{ | |
font: 1.5em/1.5 Georgia, serif; | |
} |
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
/** | |
* verse lines | |
* use of l elements is a willful violation of the HTML specification | |
*/ | |
html | |
{ | |
font: 1.5em/1.5 Georgia, serif; | |
} |
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
/** | |
* verse lines | |
* use of l elements is a willful violation of the HTML specification | |
*/ | |
html | |
{ | |
font: 1.5em/1.5 Georgia, serif; | |
} |