-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathall_grid_float.txt
More file actions
55 lines (44 loc) · 1.77 KB
/
all_grid_float.txt
File metadata and controls
55 lines (44 loc) · 1.77 KB
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
*****************************************************************************************************
***************************
*****************************************************************************************************
GRID GRID GRID GRID
=====================================================================================================
*****************************************************************************************************
// _grid.scss
.row {
max-width: $grid-width; // it means if smaller than 114 rem it will fill the available space
background-color: #23c232;
margin: 0 auto;
&:not(:last-child) {
// &:not(:last-child) means select everything and NOT the last child
margin-bottom: $gutter-vertical;
}
@include clearfix;
[class^="col-"] {
background-color: orangered;
float: left;
&:not(:last-child) {
margin-right: $gutter-horizontal;
}
}
.col-1-of-2 {
width: calc((100% - #{$gutter-horizontal}) / 2);
}
.col-1-of-3 {
width: calc((100% - 2 * #{$gutter-horizontal}) / 3);
}
.col-2-of-3 {
width: calc(2 * ((100% - 2 * #{$gutter-horizontal}) / 3) + #{$gutter-horizontal});
}
.col-1-of-4 {
width: calc((100% - 3 * #{$gutter-horizontal}) / 4);
}
.col-2-of-4 {
width: calc(2 * ((100% - 3 * #{$gutter-horizontal}) / 4) + #{$gutter-horizontal});
}
.col-3-of-4 {
width: calc(3 * ((100% - 3 * #{$gutter-horizontal}) / 4) + 2 * #{$gutter-horizontal});
}
}
***************************************************************************************************
****************************************