summaryrefslogtreecommitdiffstats
path: root/public/ng/less/ui/grid.less
blob: 2b7d004340dc35072ae149802eb640b7e5ed975c (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
88
89
90
91
92
93
94
95
96
97
98
99
@import "var";
@import "reset";

// float elements

.left {
  float: left;
}

.right {
  float: right;
}

.clear::after {
  clear: both;
  content: " ";
  width: 0;
  height: 0;
  display: block;
}

.hide {
  display: none;
}

// 12 based grids

.grid-1-12 {
  width: 8.33%;
}

.grid-2-12,
.grid-1-6 {
  width: 16.67%;
}

.grid-3-12,
.grid-1-4 {
  width: 25%;
}

.grid-4-12,
.grid-1-3 {
  width: 33%;
}

.grid-5-12 {
  width: 41.67%;
}

.grid-6-12,
.grid-1-2 {
  width: 50%;
}

.grid-7-12 {
  width: 58.33%;
}

.grid-8-12,
.grid-2-3 {
  width: 66.67%;
}

.grid-9-12,
.grid-3-4 {
  width: 75%;
}

.grid-10-12,
.grid-5-6 {
  width: 83.33%;
}

.grid-11-12 {
  width: 91.67%;
}

*[class*="grid-"] {
  box-sizing: content-box;
}

// 5 based

.grid-1-5 {
  width: 20%;
}

.grid-2-5 {
  width: 40%;
}

.grid-3-5 {
  width: 60%;
}

.grid-4-5 {
  width: 80%;
}