aboutsummaryrefslogtreecommitdiff
path: root/less/grid.less
blob: 8162d99407649fb8479aebdf95331427792ae6b7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
//
// Grid system
// --------------------------------------------------


// Set the container width, and override it for fixed navbars in media queries
.container {
  .container-fixed();
}

// Mobile-first defaults
.row {
  .make-row();
}
[class*="col-span-"],
[class*="col-small-"] {
  position: relative;
  min-height: 1px;
  padding-left:  (@grid-gutter-width / 2);
  padding-right: (@grid-gutter-width / 2);
}

[class*="col-small-"] {
  float: left;
}
.generate-small-grid-columns(@grid-columns);

// Responsive: Tablets and up
@media screen and (min-width: 768px) {
  .container {
    max-width: 728px;
  }
  // Generate the grid columns and offsets
  [class*="col-span-"] {
    float: left;
  }
  .generate-grid-columns(@grid-columns);
}

// Responsive: Desktops and up
@media screen and (min-width: 992px) {
  .container {
    max-width: 940px;
  }
}

// Responsive: Large desktops and up
@media screen and (min-width: 1200px) {
  .container {
    max-width: 1170px;
  }
}

// Reset utility classes due to specificity
[class*="col-span-"].pull-right {
  float: right;
}