gel-typography 5.1.2 → 5.2.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/_typography.scss +3 -1
- package/lib/_settings.scss +3 -1
- package/lib/_tools.scss +4 -2
- package/package.json +2 -2
package/_typography.scss
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
@use 'sass:map';
|
|
2
|
+
|
|
1
3
|
///*------------------------------------*\
|
|
2
4
|
// # GEL TYPOGRAPHY
|
|
3
5
|
//\*------------------------------------*/
|
|
@@ -20,7 +22,7 @@ $enhanced: true !default;
|
|
|
20
22
|
|
|
21
23
|
// If larger font sizes enable, merge them with gel-type-settings
|
|
22
24
|
@if $gel-type-enable--larger-type-sizes {
|
|
23
|
-
$gel-type-settings: map
|
|
25
|
+
$gel-type-settings: map.merge($gel-type-settings, $gel-larger-font-sizes);
|
|
24
26
|
}
|
|
25
27
|
|
|
26
28
|
// Output the typography styles for the 4 groups
|
package/lib/_settings.scss
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
@use 'sass:meta';
|
|
2
|
+
|
|
1
3
|
///*------------------------------------*\
|
|
2
4
|
// # GEL TYPOGRAPHY - SETTINGS
|
|
3
5
|
//\*------------------------------------*/
|
|
@@ -412,7 +414,7 @@ $gel-larger-font-sizes: (
|
|
|
412
414
|
// Adds the typography specific breakpoints to the Sass MQ list
|
|
413
415
|
// of breakpoints
|
|
414
416
|
//
|
|
415
|
-
@if (mixin-exists(mq)) {
|
|
417
|
+
@if (meta.mixin-exists(mq)) {
|
|
416
418
|
@include mq-add-breakpoint(gel-bp-type-b, 320px);
|
|
417
419
|
@include mq-add-breakpoint(gel-bp-type-c, 600px);
|
|
418
420
|
} @else {
|
package/lib/_tools.scss
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
@use 'sass:map';
|
|
2
|
+
|
|
1
3
|
///*------------------------------------*\
|
|
2
4
|
// # GEL TYPOGRAPHY - TOOL
|
|
3
5
|
//\*------------------------------------*/
|
|
@@ -44,10 +46,10 @@
|
|
|
44
46
|
|
|
45
47
|
@if map-has-key($source, $key) {
|
|
46
48
|
$current: map-get($source, $key);
|
|
47
|
-
$new: ($key: map
|
|
49
|
+
$new: ($key: map.merge($current, $value));
|
|
48
50
|
}
|
|
49
51
|
|
|
50
|
-
$source: map
|
|
52
|
+
$source: map.merge($source, $new);
|
|
51
53
|
}
|
|
52
54
|
|
|
53
55
|
@return $source;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "gel-typography",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.2.0",
|
|
4
4
|
"description": "A flexible code implementation of the GEL Typography",
|
|
5
5
|
"main": "_typography.scss",
|
|
6
6
|
"scripts": {
|
|
@@ -42,6 +42,6 @@
|
|
|
42
42
|
"sass-mq": "6.0.0"
|
|
43
43
|
},
|
|
44
44
|
"dependencies": {
|
|
45
|
-
"gel-sass-tools": "3.
|
|
45
|
+
"gel-sass-tools": "3.4.0"
|
|
46
46
|
}
|
|
47
47
|
}
|