@carbon/layout 11.19.0-rc.0 → 11.20.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/_convert.scss +15 -0
- package/scss/modules/_convert.scss +15 -0
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@carbon/layout",
|
|
3
3
|
"description": "Layout helpers for digital and software products using the Carbon Design System",
|
|
4
|
-
"version": "11.
|
|
4
|
+
"version": "11.20.0-rc.0",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"main": "lib/index.js",
|
|
7
7
|
"module": "es/index.js",
|
|
@@ -29,12 +29,12 @@
|
|
|
29
29
|
"clean": "rimraf es lib umd scss/generated"
|
|
30
30
|
},
|
|
31
31
|
"devDependencies": {
|
|
32
|
-
"@carbon/cli": "^11.
|
|
32
|
+
"@carbon/cli": "^11.15.0-rc.0",
|
|
33
33
|
"@carbon/cli-reporter": "^10.7.0",
|
|
34
34
|
"@carbon/scss-generator": "^10.18.0",
|
|
35
35
|
"@carbon/test-utils": "^10.30.0",
|
|
36
36
|
"core-js": "^3.16.0",
|
|
37
37
|
"rimraf": "^5.0.0"
|
|
38
38
|
},
|
|
39
|
-
"gitHead": "
|
|
39
|
+
"gitHead": "da28d28a2d3a34503099e25255076efd3da4db9f"
|
|
40
40
|
}
|
package/scss/_convert.scss
CHANGED
|
@@ -27,6 +27,21 @@ $base-font-size: 16px !default;
|
|
|
27
27
|
@return math.div($px, $base-font-size) * 1rem;
|
|
28
28
|
}
|
|
29
29
|
|
|
30
|
+
/// This function causes an error when using sass > 1.65.0
|
|
31
|
+
/// Replaced with `to-rem` function
|
|
32
|
+
/// @param {Number} $px - Number with px unit
|
|
33
|
+
/// @return {Number} Number with rem unit
|
|
34
|
+
/// @access public
|
|
35
|
+
/// @deprecated
|
|
36
|
+
/// @group @carbon/layout
|
|
37
|
+
@function rem($px) {
|
|
38
|
+
@if unit($px) != 'px' {
|
|
39
|
+
@error "Expected argument $px to be of type `px`, instead received: `#{unit($px)}`";
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
@return math.div($px, $base-font-size) * 1rem;
|
|
43
|
+
}
|
|
44
|
+
|
|
30
45
|
/// Convert a given px unit to a em unit
|
|
31
46
|
/// @param {Number} $px - Number with px unit
|
|
32
47
|
/// @return {Number} Number with em unit
|
|
@@ -27,6 +27,21 @@ $base-font-size: 16px !default;
|
|
|
27
27
|
@return math.div($px, $base-font-size) * 1rem;
|
|
28
28
|
}
|
|
29
29
|
|
|
30
|
+
/// This function causes an error when using sass > 1.65.0
|
|
31
|
+
/// Replaced with `to-rem` function
|
|
32
|
+
/// @param {Number} $px - Number with px unit
|
|
33
|
+
/// @return {Number} Number with rem unit
|
|
34
|
+
/// @access public
|
|
35
|
+
/// @deprecated
|
|
36
|
+
/// @group @carbon/layout
|
|
37
|
+
@function rem($px) {
|
|
38
|
+
@if unit($px) != 'px' {
|
|
39
|
+
@error "Expected argument $px to be of type `px`, instead received: `#{unit($px)}`";
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
@return math.div($px, $base-font-size) * 1rem;
|
|
43
|
+
}
|
|
44
|
+
|
|
30
45
|
/// Convert a given px unit to a em unit
|
|
31
46
|
/// @param {Number} $px - Number with px unit
|
|
32
47
|
/// @return {Number} Number with em unit
|