Skip to content

Instantly share code, notes, and snippets.

@JoelBesada
JoelBesada / dabblet.css
Created March 19, 2012 00:06
Basic CSS States
/* Basic CSS States */
body {
padding: 100px;
}
/* When a button is pressed, overwrite the transition property
to remove the delay, so that we can instantly change the color */
.red:active ~ p.perm, .green:active ~ p.perm, .blue:active ~ p.perm {
transition: color 0;
}
@JoelBesada
JoelBesada / dabblet.css
Created March 18, 2012 16:09 — forked from anonymous/dabblet.css
CSS States
/* CSS States */
body {
background: url(http://dabblet.com/img/noise.png);
background-color: #F5F2F0;
font-family: Georgia, serif;
font-size: 18px;
line-height: 1.6em;
text-shadow: 0 2px 0 white;
color: #222;
}