Skip to content

Instantly share code, notes, and snippets.

View afraser's full-sized avatar

Adam Fraser afraser

  • DEPT®/Digital Products
  • Newburyport, MA
View GitHub Profile
@afraser
afraser / cookie_monster.coffee
Last active August 29, 2015 14:16
How about a Backbone model as an interface for setting and getting guest cookies?
@afraser
afraser / dabblet.css
Created August 3, 2012 13:13
Scroll bug
/**
* Scroll bug
*/
*{
box-sizing: border-box;
}
input, textarea{
box-sizing: content-box;
}
@afraser
afraser / dabblet.css
Created August 3, 2012 12:59
The first commented line is your dabblet’s title
/**
* The first commented line is your dabblet’s title
*/
*{
+box-sizing(border-box)
}
input, textarea
+box-sizing(content-box)
.menu{x-sizing(border-box)
@afraser
afraser / dabblet.css
Created August 2, 2012 16:47
Toggle switch
/**
* Toggle switch
*/
*{
box-sizing: border-box;
}
input, textarea{
box-sizing: content-box;
}
body{
@afraser
afraser / dabblet.css
Created July 25, 2012 11:45
ribbon banner
/**
* ribbon banner
*/
body{
background: #333;
padding: 35px 0 0;
position: relative;
}
.ribbon {
@afraser
afraser / dabblet.css
Created July 20, 2012 18:09
Boundless Plus v2 layout - Hodgie
/* Boundless Plus v2 layout - Hodgie */
html {
height: 100%;
max-height: 100%;
}
body {
margin: 0;
background-color: #333;
height: 100%;
max-height: 100%;
@afraser
afraser / dabblet.css
Created July 13, 2012 13:48 — forked from mhodgson/dabblet.css
Boundless Plus v2 layout - Hodgie
/* Boundless Plus v2 layout - Hodgie */
html {
height: 100%;
max-height: 100%;
}
body {
margin: 0;
background-color: #333;
height: 100%;
max-height: 100%;
@afraser
afraser / dabblet.css
Created July 12, 2012 19:29 — forked from mhodgson/dabblet.css
Boundless Plus v2 layout
/* Boundless Plus v2 layout */
body {
margin: 0;
background-color: #333;
height: 100%;
max-height: 100%;
}
header{
height: 100%;
max-height: 100%;
@afraser
afraser / dabblet.css
Created July 12, 2012 18:16
Boundless Plus v2 layout _2
/* Boundless Plus v2 layout _2*/
body {
margin: 0;
}
header{
height: 100%;
position: fixed;
background-color: #333;
width: 150px;
color: white;
@afraser
afraser / dabblet.css
Created July 12, 2012 15:04
Boundless Plus v2 layout
/* Boundless Plus v2 layout */
body {
margin: 0;
}
header{
height: 100%;
position: fixed;
background-color: #333;
width: 150px;
color: white;