Skip to content

Instantly share code, notes, and snippets.

@gunnarbittersmann
gunnarbittersmann / dabblet.css
Last active November 20, 2015 16:52
heading with text background
/**
* 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;
@gunnarbittersmann
gunnarbittersmann / dabblet.css
Created January 22, 2015 11:01
heading with text background
/**
* heading with text background
*/
h1
{
font: normal 2.5em/1.5 Georgia, serif;
padding: 0 0.5em;
background-image: linear-gradient(
to bottom,
@gunnarbittersmann
gunnarbittersmann / SassMeister-input.scss
Created December 26, 2014 07:17
Generated by SassMeister.com.
// ----
// Sass (v3.4.9)
// Compass (v1.0.1)
// ----
li
{
@for $i from 1 to 13
{
&:nth-child(24n+#{$i})
@gunnarbittersmann
gunnarbittersmann / SassMeister-input.scss
Created December 26, 2014 07:10
Generated by SassMeister.com.
// ----
// Sass (v3.4.9)
// Compass (v1.0.1)
// ----
@mixin nth-children($n, $m: $n/2)
{
$selectorlist: null;
@for $i from 1 to $m+1
@gunnarbittersmann
gunnarbittersmann / dabblet.css
Created October 16, 2014 16:56
The first commented line is your dabblet’s title
/**
* The first commented line is your dabblet’s title
*/
background: #f06;
background: linear-gradient(45deg, #f06, yellow);
min-height: 100%;
@gunnarbittersmann
gunnarbittersmann / dabblet.css
Created October 9, 2014 14:58
z-index with position: relative
/**
* 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 }
@gunnarbittersmann
gunnarbittersmann / dabblet.css
Created September 13, 2014 11:25
verse lines
/**
* verse lines
* use of l elements is a willful violation of the HTML specification
*/
html
{
font: 1.5em/1.5 Georgia, serif;
}
@gunnarbittersmann
gunnarbittersmann / dabblet.css
Last active August 29, 2015 14:06
verse lines
/**
* verse lines
* use of l elements is a willful violation of the HTML specification
*/
html
{
font: 1.5em/1.5 Georgia, serif;
}
@gunnarbittersmann
gunnarbittersmann / dabblet.css
Created September 13, 2014 09:53
verse lines
/**
* verse lines
* use of l elements is a willful violation of the HTML specification
*/
html
{
font: 1.5em/1.5 Georgia, serif;
}
@gunnarbittersmann
gunnarbittersmann / dabblet.css
Last active August 29, 2015 14:06
verse lines
/**
* verse lines
* use of l elements is a willful violation of the HTML specification
*/
html
{
font: 1.5em/1.5 Georgia, serif;
}