aboutsummaryrefslogtreecommitdiff
path: root/less/grid.less
blob: 47636189bfd34ea7ce6700d20b94e1664914051f (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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
//
// Grid system
// --------------------------------------------------


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

// Mobile-first defaults
.row {
  margin-left: -10px;
  margin-right: -10px;
  .clear_float();
}
[class^="span"] {
  min-height: 1px;
  padding-left: 10px;
  padding-right: 10px;
  // Proper box-model (padding doesn't add to width)
  -webkit-box-sizing: border-box;
     -moz-box-sizing: border-box;
          box-sizing: border-box;
}

// Responsive: Tablets and up
@media screen and (min-width: 768px) {

  .container {
    max-width: 728px;
  }

  [class^="span"] {
    float: left;
  }
  .span1 { width: 8.3333333%; }
  .span2 { width: 16.6666667%; }
  .span3 { width: 25%; }
  .span4 { width: 33.3333333%; }
  .span5 { width: 41.666666667%; }
  .span6 { width: 50%; }
  .span7 { width: 58.333333333%; }
  .span8 { width: 66.666666667%; }
  .span9 { width: 75%; }
  .span10 { width: 83.333333333%; }
  .span11 { width: 91.666666667%; }

  .offset1 { margin-left: 8.3333333%; }
  .offset2 { margin-left: 16.6666667%; }
  .offset3 { margin-left: 25%; }
  .offset4 { margin-left: 33.3333333%; }
  .offset5 { margin-left: 41.666666667%; }
  .offset6 { margin-left: 50%; }
  .offset7 { margin-left: 58.333333333%; }
  .offset8 { margin-left: 66.666666667%; }
  .offset9 { margin-left: 75%; }
  .offset10 { margin-left: 83.333333333%; }
  .offset11 { margin-left: 91.666666667%; }

}

// 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;
  }
  [class^="span"] {
    padding-left: 15px;
    padding-right: 15px;
  }
}

// Fixed (940px)
// #grid > .core(@grid-column-width, @grid-gutter-width, @grid-row-width);

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