@carbon/grid 10.9.0 → 10.9.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@carbon/grid",
|
|
3
3
|
"description": "Grid for digital and software products using the Carbon Design System",
|
|
4
|
-
"version": "10.9.
|
|
4
|
+
"version": "10.9.2",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": "https://github.com/carbon-design-system/carbon/tree/master/packages/grid",
|
|
7
7
|
"bugs": "https://github.com/carbon-design-system/carbon/issues",
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
},
|
|
29
29
|
"dependencies": {
|
|
30
30
|
"@carbon/import-once": "^10.3.0",
|
|
31
|
-
"@carbon/layout": "^10.8.
|
|
31
|
+
"@carbon/layout": "^10.8.2"
|
|
32
32
|
},
|
|
33
33
|
"devDependencies": {
|
|
34
34
|
"@carbon/bundler": "^10.6.0",
|
|
@@ -40,5 +40,5 @@
|
|
|
40
40
|
"sassDir": "scss",
|
|
41
41
|
"needs": "^1.3.0"
|
|
42
42
|
},
|
|
43
|
-
"gitHead": "
|
|
43
|
+
"gitHead": "319eca70647f2534a48f65cabf3c569b26b3eb51"
|
|
44
44
|
}
|
|
@@ -87,7 +87,7 @@
|
|
|
87
87
|
$gutter: $carbon--grid-gutter
|
|
88
88
|
) {
|
|
89
89
|
.#{$prefix}--col {
|
|
90
|
-
@include carbon--make-col-ready();
|
|
90
|
+
@include carbon--make-col-ready($gutter);
|
|
91
91
|
}
|
|
92
92
|
|
|
93
93
|
@each $breakpoint in map-keys($breakpoints) {
|
|
@@ -97,13 +97,13 @@
|
|
|
97
97
|
// Allow columns to stretch full width below their breakpoints
|
|
98
98
|
@for $i from 0 through $columns {
|
|
99
99
|
.#{$prefix}--col#{$infix}-#{$i} {
|
|
100
|
-
@include carbon--make-col-ready();
|
|
100
|
+
@include carbon--make-col-ready($gutter);
|
|
101
101
|
}
|
|
102
102
|
}
|
|
103
103
|
|
|
104
104
|
.#{$prefix}--col#{$infix},
|
|
105
105
|
.#{$prefix}--col#{$infix}--auto {
|
|
106
|
-
@include carbon--make-col-ready();
|
|
106
|
+
@include carbon--make-col-ready($gutter);
|
|
107
107
|
}
|
|
108
108
|
|
|
109
109
|
@include carbon--breakpoint($breakpoint, $breakpoints) {
|
package/scss/_mixins.scss
CHANGED
|
@@ -87,7 +87,7 @@
|
|
|
87
87
|
$gutter: $carbon--grid-gutter
|
|
88
88
|
) {
|
|
89
89
|
.#{$prefix}--col {
|
|
90
|
-
@include carbon--make-col-ready();
|
|
90
|
+
@include carbon--make-col-ready($gutter);
|
|
91
91
|
}
|
|
92
92
|
|
|
93
93
|
@each $breakpoint in map-keys($breakpoints) {
|
|
@@ -97,13 +97,13 @@
|
|
|
97
97
|
// Allow columns to stretch full width below their breakpoints
|
|
98
98
|
@for $i from 0 through $columns {
|
|
99
99
|
.#{$prefix}--col#{$infix}-#{$i} {
|
|
100
|
-
@include carbon--make-col-ready();
|
|
100
|
+
@include carbon--make-col-ready($gutter);
|
|
101
101
|
}
|
|
102
102
|
}
|
|
103
103
|
|
|
104
104
|
.#{$prefix}--col#{$infix},
|
|
105
105
|
.#{$prefix}--col#{$infix}--auto {
|
|
106
|
-
@include carbon--make-col-ready();
|
|
106
|
+
@include carbon--make-col-ready($gutter);
|
|
107
107
|
}
|
|
108
108
|
|
|
109
109
|
@include carbon--breakpoint($breakpoint, $breakpoints) {
|
|
@@ -165,12 +165,8 @@ $carbon--grid-breakpoints: (
|
|
|
165
165
|
} @else if map-has-key($breakpoints, $name) {
|
|
166
166
|
$breakpoint: map-get($breakpoints, $name);
|
|
167
167
|
$width: map-get($breakpoint, width);
|
|
168
|
-
@
|
|
168
|
+
@media (max-width: $width) {
|
|
169
169
|
@content;
|
|
170
|
-
} @else {
|
|
171
|
-
@media (max-width: $width) {
|
|
172
|
-
@content;
|
|
173
|
-
}
|
|
174
170
|
}
|
|
175
171
|
} @else {
|
|
176
172
|
@error 'Unable to find a breakpoint with name `#{$name}`. Expected one of: (#{map-keys($breakpoints)})';
|