Skip to content

Instantly share code, notes, and snippets.

Moving from jQuery

Events

// jQuery
$(document).ready(function() {
  // code
})
@andrewdh
andrewdh / dabblet.css
Created March 23, 2013 19:27 — forked from anonymous/dabblet.css
Header Underline Reduced Case
/**
* Header Underline Reduced Case
*/
body {
font-family:Arial, sans-serif;
line-height:1;
}
.title {
@andrewdh
andrewdh / dabblet.css
Created January 12, 2013 14:44
Text align within circle
/**
* Text align within circle
*/
.info-title {
text-align: center;
color: #fff;
line-height: 1;
margin: 2em auto;
width: 4em;
@andrewdh
andrewdh / dabblet.css
Created January 4, 2013 00:03
Inline-Block Grid
/**
* Inline-Block Grid
*/
* {
margin: 0;
padding: 0;
list-style: none;
}
@andrewdh
andrewdh / dabblet.css
Created September 20, 2012 23:27
Expanding Title
/**
* Expanding Title
*/
a {
text-decoration: none;
background-color: #000;
float: left;
position: relative;
overflow :hidden;
@andrewdh
andrewdh / dabblet.css
Created September 19, 2012 23:50
Chrome border-radius bug
/**
* Chrome border-radius bug
*/
body {
background-color: #777;
}
.wrapper {
position:relative;
width:200px;
@andrewdh
andrewdh / dabblet.css
Created August 7, 2012 13:29
Collapsing Title
/**
* Collapsing Title
*/
a {
text-decoration: none;
background-color: #000;
float: left;
position: relative;
overflow :hidden;
@andrewdh
andrewdh / dabblet.css
Created August 1, 2012 13:24
Animated CSS hover effect
/**
* Animated CSS hover effect
Replicate:
http://www.vanschneider.com/ */
body {
background-color: #000;
}
@andrewdh
andrewdh / dabblet.css
Created July 19, 2012 18:32
Site Nav Idea
/**
* Site Nav Idea
*/
body { font:1em/1.5 Georgia, serif; }
.nav { margin-left: 0; list-style: none; }
.nav li { display: inline; }
.nav a { display: inline-block; text-decoration: none; }
.dropdown { position: absolute; visibility: hidden; }
.site-nav > li {
@andrewdh
andrewdh / dabblet.css
Created July 19, 2012 16:01
Abstract Border Radius Shapes
/**
* Abstract Border Radius Shapes
*/
.shape {
background-color: hsla(50,100%,50%,1);
width: 10%;
height: 7em;
margin: 2em auto;
border-radius: 90% 10% 90% 10% / 50% 10% 50% 10%;