static/less/grid.less
author stetrabby <info@trabucchi.de>
Fri, 20 Dec 2013 22:30:44 +0100
changeset 53 3416f82943ea
permissions -rwxr-xr-x
less initial added
info@53
     1
//
info@53
     2
// Grid system
info@53
     3
// --------------------------------------------------
info@53
     4
info@53
     5
// Set the container width, and override it for fixed navbars in media queries
info@53
     6
.container {
info@53
     7
  .container-fixed();
info@53
     8
info@53
     9
  @media (min-width: @screen-sm) {
info@53
    10
    width: @container-sm;
info@53
    11
  }
info@53
    12
  @media (min-width: @screen-md) {
info@53
    13
    width: @container-md;
info@53
    14
  }
info@53
    15
  @media (min-width: @screen-lg-min) {
info@53
    16
    width: @container-lg;
info@53
    17
  }
info@53
    18
}
info@53
    19
info@53
    20
// mobile first defaults
info@53
    21
.row {
info@53
    22
  .make-row();
info@53
    23
}
info@53
    24
info@53
    25
// Common styles for small and large grid columns
info@53
    26
.make-grid-columns();
info@53
    27
info@53
    28
info@53
    29
// Extra small grid
info@53
    30
//
info@53
    31
// Columns, offsets, pushes, and pulls for extra small devices like
info@53
    32
// smartphones.
info@53
    33
info@53
    34
.make-grid-columns-float(xs);
info@53
    35
.make-grid(@grid-columns, xs, width);
info@53
    36
.make-grid(@grid-columns, xs, pull);
info@53
    37
.make-grid(@grid-columns, xs, push);
info@53
    38
.make-grid(@grid-columns, xs, offset);
info@53
    39
info@53
    40
info@53
    41
// Small grid
info@53
    42
//
info@53
    43
// Columns, offsets, pushes, and pulls for the small device range, from phones
info@53
    44
// to tablets.
info@53
    45
info@53
    46
@media (min-width: @screen-sm-min) {
info@53
    47
  .make-grid-columns-float(sm);
info@53
    48
  .make-grid(@grid-columns, sm, width);
info@53
    49
  .make-grid(@grid-columns, sm, pull);
info@53
    50
  .make-grid(@grid-columns, sm, push);
info@53
    51
  .make-grid(@grid-columns, sm, offset);
info@53
    52
}
info@53
    53
info@53
    54
info@53
    55
// Medium grid
info@53
    56
//
info@53
    57
// Columns, offsets, pushes, and pulls for the desktop device range.
info@53
    58
info@53
    59
@media (min-width: @screen-md-min) {
info@53
    60
  .make-grid-columns-float(md);
info@53
    61
  .make-grid(@grid-columns, md, width);
info@53
    62
  .make-grid(@grid-columns, md, pull);
info@53
    63
  .make-grid(@grid-columns, md, push);
info@53
    64
  .make-grid(@grid-columns, md, offset);
info@53
    65
}
info@53
    66
info@53
    67
info@53
    68
// Large grid
info@53
    69
//
info@53
    70
// Columns, offsets, pushes, and pulls for the large desktop device range.
info@53
    71
info@53
    72
@media (min-width: @screen-lg-min) {
info@53
    73
  .make-grid-columns-float(lg);
info@53
    74
  .make-grid(@grid-columns, lg, width);
info@53
    75
  .make-grid(@grid-columns, lg, pull);
info@53
    76
  .make-grid(@grid-columns, lg, push);
info@53
    77
  .make-grid(@grid-columns, lg, offset);
info@53
    78
}
info@53
    79
Impressum Datenschutzerklärung