@carbon/type 11.1.0 → 11.2.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/index.scss +3 -5
- package/package.json +4 -4
- package/scss/_default-type.scss +7 -7
- package/scss/_prefix.scss +18 -1
- package/scss/_styles.scss +1 -4
- package/scss/_inlined/_classes.scss +0 -42
- package/scss/_inlined/_default-type.scss +0 -49
- package/scss/_inlined/_font-family.scss +0 -104
- package/scss/_inlined/_prefix.scss +0 -11
- package/scss/_inlined/_reset.scss +0 -42
- package/scss/_inlined/_scale.scss +0 -57
- package/scss/_inlined/_styles.scss +0 -856
- package/scss/vendor/@carbon/grid/_breakpoint.scss +0 -198
- package/scss/vendor/@carbon/grid/_config.scss +0 -94
- package/scss/vendor/@carbon/grid/_css-grid.scss +0 -470
- package/scss/vendor/@carbon/grid/_flex-grid.scss +0 -343
- package/scss/vendor/@carbon/grid/_inlined/_breakpoint.scss +0 -198
- package/scss/vendor/@carbon/grid/_inlined/_config.scss +0 -94
- package/scss/vendor/@carbon/grid/_inlined/_css-grid.scss +0 -470
- package/scss/vendor/@carbon/grid/_inlined/_flex-grid.scss +0 -343
- package/scss/vendor/@carbon/grid/_inlined/_mixins.scss +0 -316
- package/scss/vendor/@carbon/grid/_mixins.scss +0 -316
- package/scss/vendor/@carbon/grid/vendor/@carbon/layout/_convert.import.scss +0 -63
- package/scss/vendor/@carbon/grid/vendor/@carbon/layout/_convert.scss +0 -49
- package/scss/vendor/@carbon/grid/vendor/@carbon/layout/_spacing.scss +0 -9
- package/scss/vendor/@carbon/grid/vendor/@carbon/layout/_utilities.scss +0 -41
- package/scss/vendor/@carbon/grid/vendor/@carbon/layout/generated/_container.scss +0 -43
- package/scss/vendor/@carbon/grid/vendor/@carbon/layout/generated/_fluid-spacing.scss +0 -37
- package/scss/vendor/@carbon/grid/vendor/@carbon/layout/generated/_icon-size.scss +0 -25
- package/scss/vendor/@carbon/grid/vendor/@carbon/layout/generated/_size.scss +0 -17
- package/scss/vendor/@carbon/grid/vendor/@carbon/layout/generated/_spacing.scss +0 -91
- package/scss/vendor/@carbon/grid/vendor/@carbon/layout/modules/_convert.scss +0 -49
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
//
|
|
2
|
-
// Copyright IBM Corp. 2018, 2018
|
|
3
|
-
//
|
|
4
|
-
// This source code is licensed under the Apache-2.0 license found in the
|
|
5
|
-
// LICENSE file in the root directory of this source tree.
|
|
6
|
-
//
|
|
7
|
-
|
|
8
|
-
@use 'sass:meta';
|
|
9
|
-
@use 'sass:math';
|
|
10
|
-
|
|
11
|
-
/// Default font size
|
|
12
|
-
/// @type Number
|
|
13
|
-
/// @access public
|
|
14
|
-
/// @group @carbon/layout
|
|
15
|
-
$base-font-size: 16px !default;
|
|
16
|
-
|
|
17
|
-
/// Convert a given px unit to a rem unit
|
|
18
|
-
/// @param {Number} $px - Number with px unit
|
|
19
|
-
/// @return {Number} Number with rem unit
|
|
20
|
-
/// @access public
|
|
21
|
-
/// @group @carbon/layout
|
|
22
|
-
@function rem($px) {
|
|
23
|
-
@if unit($px) != 'px' {
|
|
24
|
-
@error "Expected argument $px to be of type `px`, instead received: `#{unit($px)}`";
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
@if meta.function-exists('div', 'math') {
|
|
28
|
-
@return math.div($px, $base-font-size) * 1rem;
|
|
29
|
-
} @else {
|
|
30
|
-
@return ($px / $base-font-size) * 1rem;
|
|
31
|
-
}
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
/// Convert a given px unit to a em unit
|
|
35
|
-
/// @param {Number} $px - Number with px unit
|
|
36
|
-
/// @return {Number} Number with em unit
|
|
37
|
-
/// @access public
|
|
38
|
-
/// @group @carbon/layout
|
|
39
|
-
@function em($px) {
|
|
40
|
-
@if unit($px) != 'px' {
|
|
41
|
-
@error "Expected argument $px to be of type `px`, instead received: `#{unit($px)}`";
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
@if meta.function-exists('div', 'math') {
|
|
45
|
-
@return math.div($px, $base-font-size) * 1em;
|
|
46
|
-
} @else {
|
|
47
|
-
@return ($px / $base-font-size) * 1em;
|
|
48
|
-
}
|
|
49
|
-
}
|