-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathtest_grid_float.less
80 lines (65 loc) · 1.28 KB
/
test_grid_float.less
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
/**
* Style implementing the default grid using float.
*
* The style is used by the html files in htdocs/ to test the grid
* constructs.
*/
@import "grid.less";
@columnWidth: 30;
@gutterWidth: 10;
@columns: 24;
@gridType: "float"; // "flex"
.row {
#desinax-vgrid.row();
background-color: darken(#0f0, 20%);
margin-bottom: 12px;
}
.header1,
.header2 {
#desinax-vgrid.column(@columns / 2);
}
.flash {
#desinax-vgrid.column(@columns - 4);
#desinax-vgrid.push(2);
}
.sidebar-left,
.sidebar-right {
#desinax-vgrid.column(@columns / 4);
}
.main {
#desinax-vgrid.column(@columns / 2);
}
.footer {
#desinax-vgrid.column(@columns);
}
.region {
height: 80px;
background-color: lighten(#0f0, 20%);
margin-bottom: 1px;
}
.inner-wrap {
#desinax-vgrid.grid(1100px);
}
.inner-wrap-header,
.inner-wrap-footer {
#desinax-vgrid.grid(100%);
}
@media screen and (max-width: 700px) {
.flash {
#desinax-vgrid.column(@columns);
}
.sidebar-left,
.sidebar-right {
#desinax-vgrid.column(@columns / 2);
}
.main {
#desinax-vgrid.column(@columns / 2);
}
}
@media screen and (max-width: 600px) {
.sidebar-left,
.sidebar-right,
.main {
#desinax-vgrid.column(@columns);
}
}