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