Skip to content

Instantly share code, notes, and snippets.

@dangtienngoc
Last active August 29, 2015 14:14
Show Gist options
  • Select an option

  • Save dangtienngoc/4ada8bdb568da47a35b7 to your computer and use it in GitHub Desktop.

Select an option

Save dangtienngoc/4ada8bdb568da47a35b7 to your computer and use it in GitHub Desktop.
Generated by SassMeister.com.
// ----
// Sass (v3.4.11)
// Compass (v1.0.3)
// ----
// Extra small screen / phone
//** Deprecated `$screen-xs` as of v3.0.1
$screen-xs: 480px !default;
//** Deprecated `$screen-xs-min` as of v3.2.0
$screen-xs-min: $screen-xs !default;
//** Deprecated `$screen-phone` as of v3.0.1
$screen-phone: $screen-xs-min !default;
// Small screen / tablet
//** Deprecated `$screen-sm` as of v3.0.1
$screen-sm: 768px !default;
$screen-sm-min: $screen-sm !default;
//** Deprecated `$screen-tablet` as of v3.0.1
$screen-tablet: $screen-sm-min !default;
// Medium screen / desktop
//** Deprecated `$screen-md` as of v3.0.1
$screen-md: 992px !default;
$screen-md-min: $screen-md !default;
//** Deprecated `$screen-desktop` as of v3.0.1
$screen-desktop: $screen-md-min !default;
// Large screen / wide desktop
//** Deprecated `$screen-lg` as of v3.0.1
$screen-lg: 1200px !default;
$screen-lg-min: $screen-lg !default;
//** Deprecated `$screen-lg-desktop` as of v3.0.1
$screen-lg-desktop: $screen-lg-min !default;
// So media queries don't overlap when required, provide a maximum
$screen-xs-max: $screen-sm-min - 1 !default;
$screen-sm-max: $screen-md-min - 1 !default;
$screen-md-max: $screen-lg-min - 1 !default;
$grid-gutter-width: 100px !default;
// Small screen / tablet
$container-tablet: 720px + $grid-gutter-width !default;
//** For `$screen-sm-min` and up.
$container-sm: $container-tablet !default;
// Medium screen / desktop
$container-desktop: 940px + $grid-gutter-width !default;
//** For `$screen-md-min` and up.
$container-md: $container-desktop !default;
// Large screen / wide desktop
$container-large-desktop: 1140px + $grid-gutter-width !default;
//** For `$screen-lg-min` and up.
$container-lg: $container-large-desktop !default;
@mixin container-fixed($gutter: $grid-gutter-width) {
margin-left: 0;
margin-right: 0;
padding-left: $grid-gutter-width / 2;
padding-right: $grid-gutter-width / 2;
@include clearfix;
}
@mixin clearfix() {
&:before,
&:after {
content: " "; // 1
display: table; // 2
}
&:after {
clear: both;
}
}
@mixin make-row($gutter: $grid-gutter-width){
margin-left: ($grid-gutter-width / -2);
margin-right: ($grid-gutter-width / -2);
@include clearfix;
}
.container {
@include container-fixed;
@media (min-width: $screen-sm-min) {
width: $container-sm;
}
@media (min-width: $screen-md-min) {
width: $container-md;
}
@media (min-width: $screen-lg-min) {
width: $container-lg;
}
}
.container-fluid {
@include container-fixed;
}
.row {
@include make-row;
background-color: #fff;
}
.container {
margin-left: 0;
margin-right: 0;
padding-left: 50px;
padding-right: 50px;
}
.container:before, .container:after {
content: " ";
display: table;
}
.container:after {
clear: both;
}
@media (min-width: 768px) {
.container {
width: 820px;
}
}
@media (min-width: 992px) {
.container {
width: 1040px;
}
}
@media (min-width: 1200px) {
.container {
width: 1240px;
}
}
.container-fluid {
margin-left: 0;
margin-right: 0;
padding-left: 50px;
padding-right: 50px;
}
.container-fluid:before, .container-fluid:after {
content: " ";
display: table;
}
.container-fluid:after {
clear: both;
}
.row {
margin-left: -50px;
margin-right: -50px;
background-color: #fff;
}
.row:before, .row:after {
content: " ";
display: table;
}
.row:after {
clear: both;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment