Skip to content

Instantly share code, notes, and snippets.

@dechowdev
Last active August 29, 2015 14:03
Show Gist options
  • Save dechowdev/a13e06e6f019635da7e5 to your computer and use it in GitHub Desktop.
Save dechowdev/a13e06e6f019635da7e5 to your computer and use it in GitHub Desktop.
Base to use for every web project
//BASED ON:
//BOX-SIZING BORDER-BOX FTW: http://www.paulirish.com/2012/box-sizing-border-box-ftw/
//CSS: Should we change the default for overflow?: http://bocoup.com/weblog/new-overflow-default/
* {
overflow: auto;
}
*, *:before, *:after {
//IF COMPASS
//@include box-sizing(border-box);
}
*, *:before, *:after {
-moz-box-sizing: border-box;
-webkit-box-sizing: border-box;
box-sizing: border-box;
}
//BASE CLASSES
//SEE THIS COMMENT FOR EXPLANATION: http://bocoup.com/weblog/new-overflow-default/#comment-1417588236
.overflow-visible * {
overflow: visible;
}
.overflow-auto * {
overflow: auto;
}
.overflow-hidden * {
overflow: hidden;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment