-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Expand file tree
/
Copy path_grid.scss
More file actions
49 lines (46 loc) · 1.07 KB
/
_grid.scss
File metadata and controls
49 lines (46 loc) · 1.07 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
//
// Copyright IBM Corp. 2016, 2018
//
// This source code is licensed under the Apache-2.0 license found in the
// LICENSE file in the root directory of this source tree.
//
@import '../scss/feature-flags';
@import '../scss/functions';
@import '../scss/mixins';
@import '../scss/vendor/@carbon/elements/scss/grid/mixins';
@mixin grid {
@if feature-flag-enabled('grid-columns-16') {
@include carbon--grid();
} @else {
$carbon--12-column-grid: map-merge(
$carbon--grid-breakpoints,
(
lg:
map-merge(
map-get($carbon--grid-breakpoints, lg),
(
columns: 12,
)
),
xlg:
map-merge(
map-get($carbon--grid-breakpoints, xlg),
(
columns: 12,
)
),
max:
map-merge(
map-get($carbon--grid-breakpoints, max),
(
columns: 12,
)
),
)
);
@include carbon--grid($carbon--12-column-grid);
}
}
@include exports('grid') {
@include grid;
}