Skip to content

Instantly share code, notes, and snippets.

View stubbornella's full-sized avatar
😀
Building a browser

Nicole Sullivan stubbornella

😀
Building a browser
View GitHub Profile
@mixin whitespace($sizes: (5, 10, 20)){ //for now assume this list is always ascending
if length($sizes = 1){
} @else if length($sizes = 2) {
}
$types: (p,m);
$locations: (a, v, h, t, r, b, l);
$key: (p padding, m margin, a, v -top -bottom, h -left -right, t -top, r -right, b -bottom, l -left);
@each $location in $locations {
@stubbornella
stubbornella / OOCSS Boxes in SASS
Created August 8, 2012 22:45
Old IE support for SASS - OOCSS Boxes
$ie-support: 7 !default;
@mixin oobox($ie-corner-tag: false){ // can be any HTML tag including; div, b, span, etc.
.box {
.hd,.bd,.ft{
@include clearfix-me(micro);
}
@if $ie-corner-tag { // this code only ever executes if you want rounded corners in IE<8. Better without.
%corners-and-wrappers {