summaryrefslogtreecommitdiffstats
path: root/public/css/icinga/grid.less
blob: e061bc8aa5e5ea3eec77cc002a931d2734546da6 (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
/*! Icinga Web 2 | (c) 2015 Icinga Development Team | GPLv2+ */

.grid {
  .clearfix();
}

[class^="col-"],
[class*=" col-"] {
  float: left;
  // Fix that empty columns don't consume their width
  min-height: 1px;
}

.controls {
  [class^="col-"],
  [class*=" col-"] {
    padding: @vertical-padding / 2 0;
  }
}

.col-1-2 {
  width: 50%;
}

.col-1-3 {
  width: 33.33%;
}

.col-2-3 {
  width: 66.66%;
}

.col-3-3 {
  width: 100%;
}

// TODO(el): Set proper breakpoints
#layout.twocols,
#layout.compact-layout,
#layout.minimal-layout,
#layout.poor-layout {
  [class^="col-"],
  [class*=" col-"] {
    float: none;
    width: 100%;
  }
}