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