@carbon/grid 11.47.0 → 11.48.0-rc.0
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 +3 -3
- package/scss/_breakpoint.scss +25 -4
- package/scss/_inlined/_breakpoint.scss +25 -4
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": "11.
|
|
4
|
+
"version": "11.48.0-rc.0",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|
|
7
7
|
"type": "git",
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
"postinstall": "ibmtelemetry --config=telemetry.yml"
|
|
36
36
|
},
|
|
37
37
|
"dependencies": {
|
|
38
|
-
"@carbon/layout": "^11.
|
|
38
|
+
"@carbon/layout": "^11.46.0-rc.0",
|
|
39
39
|
"@ibm/telemetry-js": "^1.5.0"
|
|
40
40
|
},
|
|
41
41
|
"devDependencies": {
|
|
@@ -48,5 +48,5 @@
|
|
|
48
48
|
"sassDir": "scss",
|
|
49
49
|
"needs": "^1.3.0"
|
|
50
50
|
},
|
|
51
|
-
"gitHead": "
|
|
51
|
+
"gitHead": "8263c72357fc43c00e66c9030698f759ef7977ce"
|
|
52
52
|
}
|
package/scss/_breakpoint.scss
CHANGED
|
@@ -152,12 +152,33 @@
|
|
|
152
152
|
@mixin breakpoint-between($lower, $upper, $breakpoints: $grid-breakpoints) {
|
|
153
153
|
$is-number-lower: meta.type-of($lower) == 'number';
|
|
154
154
|
$is-number-upper: meta.type-of($upper) == 'number';
|
|
155
|
-
$min:
|
|
156
|
-
$max:
|
|
155
|
+
$min: null;
|
|
156
|
+
$max: null;
|
|
157
|
+
|
|
158
|
+
@if $is-number-lower {
|
|
159
|
+
$min: $lower;
|
|
160
|
+
} @else {
|
|
161
|
+
$min: map.get($breakpoints, $lower);
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
@if $is-number-upper {
|
|
165
|
+
$max: $upper;
|
|
166
|
+
} @else {
|
|
167
|
+
$max: map.get($breakpoints, $upper);
|
|
168
|
+
}
|
|
157
169
|
|
|
158
170
|
@if $min and $max {
|
|
159
|
-
$min-width:
|
|
160
|
-
$max-width:
|
|
171
|
+
$min-width: $min;
|
|
172
|
+
$max-width: $max;
|
|
173
|
+
|
|
174
|
+
@if not $is-number-lower and meta.type-of($min) == 'map' {
|
|
175
|
+
$min-width: map.get($min, width);
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
@if not $is-number-upper and meta.type-of($max) == 'map' {
|
|
179
|
+
$max-width: map.get($max, width);
|
|
180
|
+
}
|
|
181
|
+
|
|
161
182
|
@media (min-width: $min-width) and (max-width: $max-width) {
|
|
162
183
|
@content;
|
|
163
184
|
}
|
|
@@ -152,12 +152,33 @@
|
|
|
152
152
|
@mixin breakpoint-between($lower, $upper, $breakpoints: $grid-breakpoints) {
|
|
153
153
|
$is-number-lower: meta.type-of($lower) == 'number';
|
|
154
154
|
$is-number-upper: meta.type-of($upper) == 'number';
|
|
155
|
-
$min:
|
|
156
|
-
$max:
|
|
155
|
+
$min: null;
|
|
156
|
+
$max: null;
|
|
157
|
+
|
|
158
|
+
@if $is-number-lower {
|
|
159
|
+
$min: $lower;
|
|
160
|
+
} @else {
|
|
161
|
+
$min: map.get($breakpoints, $lower);
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
@if $is-number-upper {
|
|
165
|
+
$max: $upper;
|
|
166
|
+
} @else {
|
|
167
|
+
$max: map.get($breakpoints, $upper);
|
|
168
|
+
}
|
|
157
169
|
|
|
158
170
|
@if $min and $max {
|
|
159
|
-
$min-width:
|
|
160
|
-
$max-width:
|
|
171
|
+
$min-width: $min;
|
|
172
|
+
$max-width: $max;
|
|
173
|
+
|
|
174
|
+
@if not $is-number-lower and meta.type-of($min) == 'map' {
|
|
175
|
+
$min-width: map.get($min, width);
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
@if not $is-number-upper and meta.type-of($max) == 'map' {
|
|
179
|
+
$max-width: map.get($max, width);
|
|
180
|
+
}
|
|
181
|
+
|
|
161
182
|
@media (min-width: $min-width) and (max-width: $max-width) {
|
|
162
183
|
@content;
|
|
163
184
|
}
|