igniteui-theming 3.3.0-beta.3 → 3.3.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 +1 -0
- package/package.json +1 -1
- package/sass/config/_index.scss +1 -0
- package/sass/themes/charts/_category-chart-theme.scss +2 -1
- package/sass/themes/charts/_data-chart-theme.scss +2 -1
- package/sass/themes/charts/_doughnut-chart-theme.scss +2 -1
- package/sass/themes/charts/_financial-chart-theme.scss +2 -1
- package/sass/themes/charts/_funnel-chart-theme.scss +2 -1
- package/sass/themes/charts/_gauge-theme.scss +2 -1
- package/sass/themes/charts/_geo-map-theme.scss +2 -1
- package/sass/themes/charts/_graph-theme.scss +2 -1
- package/sass/themes/charts/_pie-chart-theme.scss +2 -1
- package/sass/themes/charts/_shape-chart-theme.scss +2 -1
- package/sass/themes/charts/_sparkline-theme.scss +2 -1
- package/sass/typography/_functions.scss +4 -5
- package/sass/typography/_mixins.scss +2 -0
- package/sass/typography/presets/_bootstrap.scss +1 -0
- package/sass/typography/presets/_fluent.scss +1 -0
- package/sass/typography/presets/_indigo.scss +1 -0
- package/sass/typography/presets/_material.scss +1 -0
package/_index.scss
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "igniteui-theming",
|
|
3
|
-
"version": "3.3.0
|
|
3
|
+
"version": "3.3.0",
|
|
4
4
|
"description": "A set of Sass variables, mixins, and functions for generating palettes, typography, and elevations used by Ignite UI components.",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
$base-font-size: 16px !default;
|
|
@@ -4,14 +4,13 @@
|
|
|
4
4
|
@use 'sass:list';
|
|
5
5
|
@use 'sass:string';
|
|
6
6
|
@use './types';
|
|
7
|
+
@use '../config' as *;
|
|
7
8
|
|
|
8
9
|
////
|
|
9
10
|
/// @package theming
|
|
10
11
|
/// @group Typography
|
|
11
12
|
////
|
|
12
13
|
|
|
13
|
-
$browser-context: 16px;
|
|
14
|
-
|
|
15
14
|
/// Converts pixels to relative values (em).
|
|
16
15
|
/// @access public
|
|
17
16
|
/// @param {number|string} $pixels - The pixel value to be converted.
|
|
@@ -21,7 +20,7 @@ $browser-context: 16px;
|
|
|
21
20
|
/// margin: em(10px) em(5px);
|
|
22
21
|
/// }
|
|
23
22
|
/// @return {number} - Returns the pixels value converted to em.
|
|
24
|
-
@function em($pixels, $context: $
|
|
23
|
+
@function em($pixels, $context: $base-font-size) {
|
|
25
24
|
@if math.is-unitless($pixels) {
|
|
26
25
|
$pixels: $pixels * 1px;
|
|
27
26
|
}
|
|
@@ -42,7 +41,7 @@ $browser-context: 16px;
|
|
|
42
41
|
/// margin: rem(10px) rem(5px);
|
|
43
42
|
/// }
|
|
44
43
|
/// @return {number} - Returns the pixels value converted to rem.
|
|
45
|
-
@function rem($pixels, $context: $
|
|
44
|
+
@function rem($pixels, $context: $base-font-size) {
|
|
46
45
|
@if math.is-unitless($pixels) {
|
|
47
46
|
$pixels: $pixels * 1px;
|
|
48
47
|
}
|
|
@@ -63,7 +62,7 @@ $browser-context: 16px;
|
|
|
63
62
|
/// margin: px(3.23rem);
|
|
64
63
|
/// }
|
|
65
64
|
/// @return {number} - Returns the relative value converted to pixels.
|
|
66
|
-
@function px($num, $context: $
|
|
65
|
+
@function px($num, $context: $base-font-size) {
|
|
67
66
|
@if meta.type-of($num) == 'number' {
|
|
68
67
|
@return math.div($num, $num * 0 + 1) * 16px;
|
|
69
68
|
}
|
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
@use '../utils/meta' as *;
|
|
5
5
|
@use './types';
|
|
6
6
|
@use '../themes/mixins' as *;
|
|
7
|
+
@use '../config' as *;
|
|
7
8
|
|
|
8
9
|
////
|
|
9
10
|
/// @package theming
|
|
@@ -126,6 +127,7 @@
|
|
|
126
127
|
|
|
127
128
|
#{$scope} {
|
|
128
129
|
--ig-font-family: #{string.unquote($font-family)};
|
|
130
|
+
--ig-base-font-size: #{$base-font-size};
|
|
129
131
|
|
|
130
132
|
@each $name, $style in map.remove($type-scale, '_meta') {
|
|
131
133
|
@include type-style-vars($name, $style);
|