1 |
|
2 |
|
3 |
|
4 |
|
5 | @mixin make-container() {
|
6 | width: 100%;
|
7 | padding-right: ($grid-gutter-width / 2);
|
8 | padding-left: ($grid-gutter-width / 2);
|
9 | margin-right: auto;
|
10 | margin-left: auto;
|
11 | }
|
12 |
|
13 |
|
14 |
|
15 | @mixin make-container-max-widths($max-widths: $container-max-widths, $breakpoints: $grid-breakpoints) {
|
16 | @each $breakpoint, $container-max-width in $max-widths {
|
17 | @include media-breakpoint-up($breakpoint, $breakpoints) {
|
18 | max-width: $container-max-width;
|
19 | }
|
20 | }
|
21 | }
|
22 |
|
23 | @mixin make-row() {
|
24 | display: flex;
|
25 | flex-wrap: wrap;
|
26 | margin-right: ($grid-gutter-width / -2);
|
27 | margin-left: ($grid-gutter-width / -2);
|
28 | }
|
29 |
|
30 | @mixin make-col-ready() {
|
31 | position: relative;
|
32 |
|
33 |
|
34 |
|
35 | width: 100%;
|
36 | min-height: 1px;
|
37 | padding-right: ($grid-gutter-width / 2);
|
38 | padding-left: ($grid-gutter-width / 2);
|
39 | }
|
40 |
|
41 | @mixin make-col($size, $columns: $grid-columns) {
|
42 | flex: 0 0 percentage($size / $columns);
|
43 |
|
44 |
|
45 |
|
46 | max-width: percentage($size / $columns);
|
47 | }
|
48 |
|
49 | @mixin make-col-offset($size, $columns: $grid-columns) {
|
50 | $num: $size / $columns;
|
51 | margin-left: if($num == 0, 0, percentage($num));
|
52 | }
|