Skip to content

Instantly share code, notes, and snippets.

View maxhoffmann's full-sized avatar
👷‍♂️
currently building konsens.it

Max Hoffmann maxhoffmann

👷‍♂️
currently building konsens.it
View GitHub Profile
@maxhoffmann
maxhoffmann / dabblet.css
Created December 19, 2011 17:18
CSS3 Image Gallery
/**
* CSS3 Image Gallery
*/
body {
background: black url(http://subtlepatterns.com/patterns/dark_wood.png);
font: 14px "Helvetica Neue", Helvetica, sans-serif;
}
h2 {
color: white;
@maxhoffmann
maxhoffmann / dabblet.css
Created December 20, 2011 09:20
CSS3 Border-Radius with Border - Circle Avatars
/**
* CSS3 Border-Radius with Border - Circle Avatars
*/
/* General Styles */
body { background: url(http://subtlepatterns.com/patterns/white_texture.png);
font: 100 14px sans-serif;
color: #444555; text-shadow: 0 2px white;
text-align: center;
@maxhoffmann
maxhoffmann / dabblet.css
Created December 24, 2011 12:20
CSS3 Macbook Keys
/**
* CSS3 Macbook Keys
*/
body {
background: #eee;
text-align: center;
}
.threed {
perspective: 400;
perspective-origin: top;
@maxhoffmann
maxhoffmann / dabblet.css
Created January 5, 2012 01:00 — forked from LeaVerou/dabblet.css
Lined paper that follows the text
/**
* Lined paper that follows the text
* Support: Chrome, FF 3.6+, Saf 5.1+, Opera 11.50+, IE10
*/
/* Just decorative */
padding: 20px;
/* The font. Try changing font-size and see how the lines
@maxhoffmann
maxhoffmann / dabblet.css
Created February 2, 2012 22:58
CSS3 Windows Phone 7 UI
/**
* CSS3 Windows Phone 7 UI
*/
* { box-sizing: border-box; }
body {
margin: 0;
padding: 40px 10px;
background: black;
color: white;
font: 400 0.9em sans-serif;
@maxhoffmann
maxhoffmann / dabblet.css
Created March 19, 2012 15:23
opacity Beispiel
/* opacity Beispiel */
div {
width: 300px;
height: 300px;
position: absolute;
}
#eins { background: red; }
#zwei {
@maxhoffmann
maxhoffmann / dabblet.css
Created March 20, 2012 09:25
CSS3 Colors
/* CSS3 Colors */
div {
height: 180px;
width: 180px;
margin: 10px;
padding: 10px;
float: left;
color: white;
font-size: 2em;
@maxhoffmann
maxhoffmann / dabblet.css
Created March 20, 2012 09:47
CSS3 selectors
/* CSS3 selectors */
ul { font-size: 1.5em; color: #999; }
li:last-child { color: red; }
li:nth-child(3n) { color: RoyalBlue; }
li[class^=test] { color: orange } /* starts with */
@maxhoffmann
maxhoffmann / dabblet.css
Created March 20, 2012 10:03
CSS3 text-shadow, box-shadow
/* CSS3 text-shadow, box-shadow */
div {
color: white;
font-size: 1.8em;
font-family: Helvetica;
background: #ccc;
width: 200px;
height: 200px;
padding: 20px;
@maxhoffmann
maxhoffmann / dabblet.css
Created March 20, 2012 10:09
CSS3 Transformations
/* CSS3 Transformations */
div {
width: 200px;
height: 200px;
padding-top: 85px;
margin: 20px;
background: RoyalBlue;
box-sizing: border-box;
color: white;