@carbon/type 11.0.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.
Files changed (33) hide show
  1. package/README.md +1 -1
  2. package/index.scss +3 -5
  3. package/package.json +6 -6
  4. package/scss/_default-type.scss +7 -7
  5. package/scss/_prefix.scss +18 -1
  6. package/scss/_styles.scss +1 -4
  7. package/scss/_inlined/_classes.scss +0 -42
  8. package/scss/_inlined/_default-type.scss +0 -49
  9. package/scss/_inlined/_font-family.scss +0 -104
  10. package/scss/_inlined/_prefix.scss +0 -11
  11. package/scss/_inlined/_reset.scss +0 -42
  12. package/scss/_inlined/_scale.scss +0 -57
  13. package/scss/_inlined/_styles.scss +0 -856
  14. package/scss/vendor/@carbon/grid/_breakpoint.scss +0 -198
  15. package/scss/vendor/@carbon/grid/_config.scss +0 -94
  16. package/scss/vendor/@carbon/grid/_css-grid.scss +0 -470
  17. package/scss/vendor/@carbon/grid/_flex-grid.scss +0 -343
  18. package/scss/vendor/@carbon/grid/_inlined/_breakpoint.scss +0 -198
  19. package/scss/vendor/@carbon/grid/_inlined/_config.scss +0 -94
  20. package/scss/vendor/@carbon/grid/_inlined/_css-grid.scss +0 -470
  21. package/scss/vendor/@carbon/grid/_inlined/_flex-grid.scss +0 -343
  22. package/scss/vendor/@carbon/grid/_inlined/_mixins.scss +0 -316
  23. package/scss/vendor/@carbon/grid/_mixins.scss +0 -316
  24. package/scss/vendor/@carbon/grid/vendor/@carbon/layout/_convert.import.scss +0 -63
  25. package/scss/vendor/@carbon/grid/vendor/@carbon/layout/_convert.scss +0 -49
  26. package/scss/vendor/@carbon/grid/vendor/@carbon/layout/_spacing.scss +0 -9
  27. package/scss/vendor/@carbon/grid/vendor/@carbon/layout/_utilities.scss +0 -41
  28. package/scss/vendor/@carbon/grid/vendor/@carbon/layout/generated/_container.scss +0 -43
  29. package/scss/vendor/@carbon/grid/vendor/@carbon/layout/generated/_fluid-spacing.scss +0 -37
  30. package/scss/vendor/@carbon/grid/vendor/@carbon/layout/generated/_icon-size.scss +0 -25
  31. package/scss/vendor/@carbon/grid/vendor/@carbon/layout/generated/_size.scss +0 -17
  32. package/scss/vendor/@carbon/grid/vendor/@carbon/layout/generated/_spacing.scss +0 -91
  33. 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
- }