Blame content/assets/css/bootstrap/_grid.scss

e8ec7a
//
e8ec7a
// Grid system
e8ec7a
// --------------------------------------------------
e8ec7a
e8ec7a
e8ec7a
// Set the container width, and override it for fixed navbars in media queries
e8ec7a
.container {
e8ec7a
  @include container-fixed();
e8ec7a
}
e8ec7a
e8ec7a
// mobile first defaults
e8ec7a
.row {
e8ec7a
  @include make-row();
e8ec7a
}
e8ec7a
e8ec7a
// Common styles for small and large grid columns
e8ec7a
.col-xs-1,
e8ec7a
.col-xs-2,
e8ec7a
.col-xs-3,
e8ec7a
.col-xs-4,
e8ec7a
.col-xs-5,
e8ec7a
.col-xs-6,
e8ec7a
.col-xs-7,
e8ec7a
.col-xs-8,
e8ec7a
.col-xs-9,
e8ec7a
.col-xs-10,
e8ec7a
.col-xs-11,
e8ec7a
.col-xs-12,
e8ec7a
.col-sm-1,
e8ec7a
.col-sm-2,
e8ec7a
.col-sm-3,
e8ec7a
.col-sm-4,
e8ec7a
.col-sm-5,
e8ec7a
.col-sm-6,
e8ec7a
.col-sm-7,
e8ec7a
.col-sm-8,
e8ec7a
.col-sm-9,
e8ec7a
.col-sm-10,
e8ec7a
.col-sm-11,
e8ec7a
.col-sm-12,
e8ec7a
.col-md-1,
e8ec7a
.col-md-2,
e8ec7a
.col-md-3,
e8ec7a
.col-md-4,
e8ec7a
.col-md-5,
e8ec7a
.col-md-6,
e8ec7a
.col-md-7,
e8ec7a
.col-md-8,
e8ec7a
.col-md-9,
e8ec7a
.col-md-10,
e8ec7a
.col-md-11,
e8ec7a
.col-md-12,
e8ec7a
.col-lg-1,
e8ec7a
.col-lg-2,
e8ec7a
.col-lg-3,
e8ec7a
.col-lg-4,
e8ec7a
.col-lg-5,
e8ec7a
.col-lg-6,
e8ec7a
.col-lg-7,
e8ec7a
.col-lg-8,
e8ec7a
.col-lg-9,
e8ec7a
.col-lg-10,
e8ec7a
.col-lg-11,
e8ec7a
.col-lg-12 {
e8ec7a
  position: relative;
e8ec7a
  // Prevent columns from collapsing when empty
e8ec7a
  min-height: 1px;
e8ec7a
  // Inner gutter via padding
e8ec7a
  padding-left:  ($grid-gutter-width / 2);
e8ec7a
  padding-right: ($grid-gutter-width / 2);
e8ec7a
}
e8ec7a
e8ec7a
e8ec7a
// Extra small grid
e8ec7a
//
e8ec7a
// Grid classes for extra small devices like smartphones. No offset, push, or
e8ec7a
// pull classes are present here due to the size of the target.
e8ec7a
//
e8ec7a
// Note that `.col-xs-12` doesn't get floated on purpose—there's no need since
e8ec7a
// it's full-width.
e8ec7a
e8ec7a
.col-xs-1,
e8ec7a
.col-xs-2,
e8ec7a
.col-xs-3,
e8ec7a
.col-xs-4,
e8ec7a
.col-xs-5,
e8ec7a
.col-xs-6,
e8ec7a
.col-xs-7,
e8ec7a
.col-xs-8,
e8ec7a
.col-xs-9,
e8ec7a
.col-xs-10,
e8ec7a
.col-xs-11 {
e8ec7a
  float: left;
e8ec7a
}
e8ec7a
.col-xs-1  { width: percentage((1 / $grid-columns)); }
e8ec7a
.col-xs-2  { width: percentage((2 / $grid-columns)); }
e8ec7a
.col-xs-3  { width: percentage((3 / $grid-columns)); }
e8ec7a
.col-xs-4  { width: percentage((4 / $grid-columns)); }
e8ec7a
.col-xs-5  { width: percentage((5 / $grid-columns)); }
e8ec7a
.col-xs-6  { width: percentage((6 / $grid-columns)); }
e8ec7a
.col-xs-7  { width: percentage((7 / $grid-columns)); }
e8ec7a
.col-xs-8  { width: percentage((8 / $grid-columns)); }
e8ec7a
.col-xs-9  { width: percentage((9 / $grid-columns)); }
e8ec7a
.col-xs-10 { width: percentage((10/ $grid-columns)); }
e8ec7a
.col-xs-11 { width: percentage((11/ $grid-columns)); }
e8ec7a
.col-xs-12 { width: 100%; }
e8ec7a
e8ec7a
e8ec7a
// Small grid
e8ec7a
//
e8ec7a
// Columns, offsets, pushes, and pulls for the small device range, from phones
e8ec7a
// to tablets.
e8ec7a
//
e8ec7a
// Note that `.col-sm-12` doesn't get floated on purpose—there's no need since
e8ec7a
// it's full-width.
e8ec7a
e8ec7a
@media (min-width: $screen-tablet) {
e8ec7a
  .container {
e8ec7a
    max-width: $container-tablet;
e8ec7a
  }
e8ec7a
e8ec7a
  .col-sm-1,
e8ec7a
  .col-sm-2,
e8ec7a
  .col-sm-3,
e8ec7a
  .col-sm-4,
e8ec7a
  .col-sm-5,
e8ec7a
  .col-sm-6,
e8ec7a
  .col-sm-7,
e8ec7a
  .col-sm-8,
e8ec7a
  .col-sm-9,
e8ec7a
  .col-sm-10,
e8ec7a
  .col-sm-11 {
e8ec7a
    float: left;
e8ec7a
  }
e8ec7a
  .col-sm-1  { width: percentage((1 / $grid-columns)); }
e8ec7a
  .col-sm-2  { width: percentage((2 / $grid-columns)); }
e8ec7a
  .col-sm-3  { width: percentage((3 / $grid-columns)); }
e8ec7a
  .col-sm-4  { width: percentage((4 / $grid-columns)); }
e8ec7a
  .col-sm-5  { width: percentage((5 / $grid-columns)); }
e8ec7a
  .col-sm-6  { width: percentage((6 / $grid-columns)); }
e8ec7a
  .col-sm-7  { width: percentage((7 / $grid-columns)); }
e8ec7a
  .col-sm-8  { width: percentage((8 / $grid-columns)); }
e8ec7a
  .col-sm-9  { width: percentage((9 / $grid-columns)); }
e8ec7a
  .col-sm-10 { width: percentage((10/ $grid-columns)); }
e8ec7a
  .col-sm-11 { width: percentage((11/ $grid-columns)); }
e8ec7a
  .col-sm-12 { width: 100%; }
e8ec7a
e8ec7a
  // Push and pull columns for source order changes
e8ec7a
  .col-sm-push-1  { left: percentage((1 / $grid-columns)); }
e8ec7a
  .col-sm-push-2  { left: percentage((2 / $grid-columns)); }
e8ec7a
  .col-sm-push-3  { left: percentage((3 / $grid-columns)); }
e8ec7a
  .col-sm-push-4  { left: percentage((4 / $grid-columns)); }
e8ec7a
  .col-sm-push-5  { left: percentage((5 / $grid-columns)); }
e8ec7a
  .col-sm-push-6  { left: percentage((6 / $grid-columns)); }
e8ec7a
  .col-sm-push-7  { left: percentage((7 / $grid-columns)); }
e8ec7a
  .col-sm-push-8  { left: percentage((8 / $grid-columns)); }
e8ec7a
  .col-sm-push-9  { left: percentage((9 / $grid-columns)); }
e8ec7a
  .col-sm-push-10 { left: percentage((10/ $grid-columns)); }
e8ec7a
  .col-sm-push-11 { left: percentage((11/ $grid-columns)); }
e8ec7a
e8ec7a
  .col-sm-pull-1  { right: percentage((1 / $grid-columns)); }
e8ec7a
  .col-sm-pull-2  { right: percentage((2 / $grid-columns)); }
e8ec7a
  .col-sm-pull-3  { right: percentage((3 / $grid-columns)); }
e8ec7a
  .col-sm-pull-4  { right: percentage((4 / $grid-columns)); }
e8ec7a
  .col-sm-pull-5  { right: percentage((5 / $grid-columns)); }
e8ec7a
  .col-sm-pull-6  { right: percentage((6 / $grid-columns)); }
e8ec7a
  .col-sm-pull-7  { right: percentage((7 / $grid-columns)); }
e8ec7a
  .col-sm-pull-8  { right: percentage((8 / $grid-columns)); }
e8ec7a
  .col-sm-pull-9  { right: percentage((9 / $grid-columns)); }
e8ec7a
  .col-sm-pull-10 { right: percentage((10/ $grid-columns)); }
e8ec7a
  .col-sm-pull-11 { right: percentage((11/ $grid-columns)); }
e8ec7a
e8ec7a
  // Offsets
e8ec7a
  .col-sm-offset-1  { margin-left: percentage((1 / $grid-columns)); }
e8ec7a
  .col-sm-offset-2  { margin-left: percentage((2 / $grid-columns)); }
e8ec7a
  .col-sm-offset-3  { margin-left: percentage((3 / $grid-columns)); }
e8ec7a
  .col-sm-offset-4  { margin-left: percentage((4 / $grid-columns)); }
e8ec7a
  .col-sm-offset-5  { margin-left: percentage((5 / $grid-columns)); }
e8ec7a
  .col-sm-offset-6  { margin-left: percentage((6 / $grid-columns)); }
e8ec7a
  .col-sm-offset-7  { margin-left: percentage((7 / $grid-columns)); }
e8ec7a
  .col-sm-offset-8  { margin-left: percentage((8 / $grid-columns)); }
e8ec7a
  .col-sm-offset-9  { margin-left: percentage((9 / $grid-columns)); }
e8ec7a
  .col-sm-offset-10 { margin-left: percentage((10/ $grid-columns)); }
e8ec7a
  .col-sm-offset-11 { margin-left: percentage((11/ $grid-columns)); }
e8ec7a
}
e8ec7a
e8ec7a
e8ec7a
// Medium grid
e8ec7a
//
e8ec7a
// Columns, offsets, pushes, and pulls for the desktop device range.
e8ec7a
//
e8ec7a
// Note that `.col-md-12` doesn't get floated on purpose—there's no need since
e8ec7a
// it's full-width.
e8ec7a
e8ec7a
@media (min-width: $screen-desktop) {
e8ec7a
  .container {
e8ec7a
    max-width: $container-desktop;
e8ec7a
  }
e8ec7a
  .col-md-1,
e8ec7a
  .col-md-2,
e8ec7a
  .col-md-3,
e8ec7a
  .col-md-4,
e8ec7a
  .col-md-5,
e8ec7a
  .col-md-6,
e8ec7a
  .col-md-7,
e8ec7a
  .col-md-8,
e8ec7a
  .col-md-9,
e8ec7a
  .col-md-10,
e8ec7a
  .col-md-11 {
e8ec7a
    float: left;
e8ec7a
  }
e8ec7a
  .col-md-1  { width: percentage((1 / $grid-columns)); }
e8ec7a
  .col-md-2  { width: percentage((2 / $grid-columns)); }
e8ec7a
  .col-md-3  { width: percentage((3 / $grid-columns)); }
e8ec7a
  .col-md-4  { width: percentage((4 / $grid-columns)); }
e8ec7a
  .col-md-5  { width: percentage((5 / $grid-columns)); }
e8ec7a
  .col-md-6  { width: percentage((6 / $grid-columns)); }
e8ec7a
  .col-md-7  { width: percentage((7 / $grid-columns)); }
e8ec7a
  .col-md-8  { width: percentage((8 / $grid-columns)); }
e8ec7a
  .col-md-9  { width: percentage((9 / $grid-columns)); }
e8ec7a
  .col-md-10 { width: percentage((10/ $grid-columns)); }
e8ec7a
  .col-md-11 { width: percentage((11/ $grid-columns)); }
e8ec7a
  .col-md-12 { width: 100%; }
e8ec7a
e8ec7a
  // Push and pull columns for source order changes
e8ec7a
  .col-md-push-0  { left: auto; }
e8ec7a
  .col-md-push-1  { left: percentage((1 / $grid-columns)); }
e8ec7a
  .col-md-push-2  { left: percentage((2 / $grid-columns)); }
e8ec7a
  .col-md-push-3  { left: percentage((3 / $grid-columns)); }
e8ec7a
  .col-md-push-4  { left: percentage((4 / $grid-columns)); }
e8ec7a
  .col-md-push-5  { left: percentage((5 / $grid-columns)); }
e8ec7a
  .col-md-push-6  { left: percentage((6 / $grid-columns)); }
e8ec7a
  .col-md-push-7  { left: percentage((7 / $grid-columns)); }
e8ec7a
  .col-md-push-8  { left: percentage((8 / $grid-columns)); }
e8ec7a
  .col-md-push-9  { left: percentage((9 / $grid-columns)); }
e8ec7a
  .col-md-push-10 { left: percentage((10/ $grid-columns)); }
e8ec7a
  .col-md-push-11 { left: percentage((11/ $grid-columns)); }
e8ec7a
e8ec7a
  .col-md-pull-0  { right: auto; }
e8ec7a
  .col-md-pull-1  { right: percentage((1 / $grid-columns)); }
e8ec7a
  .col-md-pull-2  { right: percentage((2 / $grid-columns)); }
e8ec7a
  .col-md-pull-3  { right: percentage((3 / $grid-columns)); }
e8ec7a
  .col-md-pull-4  { right: percentage((4 / $grid-columns)); }
e8ec7a
  .col-md-pull-5  { right: percentage((5 / $grid-columns)); }
e8ec7a
  .col-md-pull-6  { right: percentage((6 / $grid-columns)); }
e8ec7a
  .col-md-pull-7  { right: percentage((7 / $grid-columns)); }
e8ec7a
  .col-md-pull-8  { right: percentage((8 / $grid-columns)); }
e8ec7a
  .col-md-pull-9  { right: percentage((9 / $grid-columns)); }
e8ec7a
  .col-md-pull-10 { right: percentage((10/ $grid-columns)); }
e8ec7a
  .col-md-pull-11 { right: percentage((11/ $grid-columns)); }
e8ec7a
e8ec7a
  // Offsets
e8ec7a
  .col-md-offset-0  { margin-left: 0; }
e8ec7a
  .col-md-offset-1  { margin-left: percentage((1 / $grid-columns)); }
e8ec7a
  .col-md-offset-2  { margin-left: percentage((2 / $grid-columns)); }
e8ec7a
  .col-md-offset-3  { margin-left: percentage((3 / $grid-columns)); }
e8ec7a
  .col-md-offset-4  { margin-left: percentage((4 / $grid-columns)); }
e8ec7a
  .col-md-offset-5  { margin-left: percentage((5 / $grid-columns)); }
e8ec7a
  .col-md-offset-6  { margin-left: percentage((6 / $grid-columns)); }
e8ec7a
  .col-md-offset-7  { margin-left: percentage((7 / $grid-columns)); }
e8ec7a
  .col-md-offset-8  { margin-left: percentage((8 / $grid-columns)); }
e8ec7a
  .col-md-offset-9  { margin-left: percentage((9 / $grid-columns)); }
e8ec7a
  .col-md-offset-10 { margin-left: percentage((10/ $grid-columns)); }
e8ec7a
  .col-md-offset-11 { margin-left: percentage((11/ $grid-columns)); }
e8ec7a
}
e8ec7a
e8ec7a
e8ec7a
// Large grid
e8ec7a
//
e8ec7a
// Columns, offsets, pushes, and pulls for the large desktop device range.
e8ec7a
//
e8ec7a
// Note that `.col-lg-12` doesn't get floated on purpose—there's no need since
e8ec7a
// it's full-width.
e8ec7a
e8ec7a
@media (min-width: $screen-lg-desktop) {
e8ec7a
  .container {
e8ec7a
    max-width: $container-lg-desktop;
e8ec7a
  }
e8ec7a
e8ec7a
  .col-lg-1,
e8ec7a
  .col-lg-2,
e8ec7a
  .col-lg-3,
e8ec7a
  .col-lg-4,
e8ec7a
  .col-lg-5,
e8ec7a
  .col-lg-6,
e8ec7a
  .col-lg-7,
e8ec7a
  .col-lg-8,
e8ec7a
  .col-lg-9,
e8ec7a
  .col-lg-10,
e8ec7a
  .col-lg-11 {
e8ec7a
    float: left;
e8ec7a
  }
e8ec7a
  .col-lg-1  { width: percentage((1 / $grid-columns)); }
e8ec7a
  .col-lg-2  { width: percentage((2 / $grid-columns)); }
e8ec7a
  .col-lg-3  { width: percentage((3 / $grid-columns)); }
e8ec7a
  .col-lg-4  { width: percentage((4 / $grid-columns)); }
e8ec7a
  .col-lg-5  { width: percentage((5 / $grid-columns)); }
e8ec7a
  .col-lg-6  { width: percentage((6 / $grid-columns)); }
e8ec7a
  .col-lg-7  { width: percentage((7 / $grid-columns)); }
e8ec7a
  .col-lg-8  { width: percentage((8 / $grid-columns)); }
e8ec7a
  .col-lg-9  { width: percentage((9 / $grid-columns)); }
e8ec7a
  .col-lg-10 { width: percentage((10/ $grid-columns)); }
e8ec7a
  .col-lg-11 { width: percentage((11/ $grid-columns)); }
e8ec7a
  .col-lg-12 { width: 100%; }
e8ec7a
e8ec7a
  // Push and pull columns for source order changes
e8ec7a
  .col-lg-push-0  { left: auto; }
e8ec7a
  .col-lg-push-1  { left: percentage((1 / $grid-columns)); }
e8ec7a
  .col-lg-push-2  { left: percentage((2 / $grid-columns)); }
e8ec7a
  .col-lg-push-3  { left: percentage((3 / $grid-columns)); }
e8ec7a
  .col-lg-push-4  { left: percentage((4 / $grid-columns)); }
e8ec7a
  .col-lg-push-5  { left: percentage((5 / $grid-columns)); }
e8ec7a
  .col-lg-push-6  { left: percentage((6 / $grid-columns)); }
e8ec7a
  .col-lg-push-7  { left: percentage((7 / $grid-columns)); }
e8ec7a
  .col-lg-push-8  { left: percentage((8 / $grid-columns)); }
e8ec7a
  .col-lg-push-9  { left: percentage((9 / $grid-columns)); }
e8ec7a
  .col-lg-push-10 { left: percentage((10/ $grid-columns)); }
e8ec7a
  .col-lg-push-11 { left: percentage((11/ $grid-columns)); }
e8ec7a
e8ec7a
  .col-lg-pull-0  { right: auto; }
e8ec7a
  .col-lg-pull-1  { right: percentage((1 / $grid-columns)); }
e8ec7a
  .col-lg-pull-2  { right: percentage((2 / $grid-columns)); }
e8ec7a
  .col-lg-pull-3  { right: percentage((3 / $grid-columns)); }
e8ec7a
  .col-lg-pull-4  { right: percentage((4 / $grid-columns)); }
e8ec7a
  .col-lg-pull-5  { right: percentage((5 / $grid-columns)); }
e8ec7a
  .col-lg-pull-6  { right: percentage((6 / $grid-columns)); }
e8ec7a
  .col-lg-pull-7  { right: percentage((7 / $grid-columns)); }
e8ec7a
  .col-lg-pull-8  { right: percentage((8 / $grid-columns)); }
e8ec7a
  .col-lg-pull-9  { right: percentage((9 / $grid-columns)); }
e8ec7a
  .col-lg-pull-10 { right: percentage((10/ $grid-columns)); }
e8ec7a
  .col-lg-pull-11 { right: percentage((11/ $grid-columns)); }
e8ec7a
e8ec7a
  // Offsets
e8ec7a
  .col-lg-offset-0  { margin-left: 0; }
e8ec7a
  .col-lg-offset-1  { margin-left: percentage((1 / $grid-columns)); }
e8ec7a
  .col-lg-offset-2  { margin-left: percentage((2 / $grid-columns)); }
e8ec7a
  .col-lg-offset-3  { margin-left: percentage((3 / $grid-columns)); }
e8ec7a
  .col-lg-offset-4  { margin-left: percentage((4 / $grid-columns)); }
e8ec7a
  .col-lg-offset-5  { margin-left: percentage((5 / $grid-columns)); }
e8ec7a
  .col-lg-offset-6  { margin-left: percentage((6 / $grid-columns)); }
e8ec7a
  .col-lg-offset-7  { margin-left: percentage((7 / $grid-columns)); }
e8ec7a
  .col-lg-offset-8  { margin-left: percentage((8 / $grid-columns)); }
e8ec7a
  .col-lg-offset-9  { margin-left: percentage((9 / $grid-columns)); }
e8ec7a
  .col-lg-offset-10 { margin-left: percentage((10/ $grid-columns)); }
e8ec7a
  .col-lg-offset-11 { margin-left: percentage((11/ $grid-columns)); }
e8ec7a
}