@simple-reporting/base 1.0.23 → 1.0.24
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/dev/index.html +1 -1
- package/dev/livingdocs.config.json +6 -6
- package/dev/package.json +1 -1
- package/dev/src/Dialog.vue +3 -0
- package/package.json +2 -1
- package/scripts/beaver.js +14 -18
- package/scripts/build/variables.d.ts +6 -0
- package/scripts/build/variables.js +6 -0
- package/scripts/build.js +56 -16
- package/scripts/dotenv.d.ts +1 -0
- package/scripts/dotenv.js +8 -0
- package/scripts/init.js +1 -1
- package/scripts/ldd/mapLdd.js +2 -2
- package/scripts/utils.d.ts +1 -0
- package/scripts/utils.js +22 -0
- package/scss/colors/functions.scss +2 -10
- package/scss/colors/mixins.scss +0 -18
- package/scss/colors/root.scss +10 -0
- package/scss/core-styles.scss +4 -1
- package/scss/fonts/root.scss +4 -0
- package/scss/grid/functions.scss +8 -6
- package/scss/grid/mixins.scss +0 -77
- package/scss/grid/root.scss +80 -0
- package/scss/helpers/root.scss +4 -0
- package/scss/init-root.scss +12 -0
- package/scss/meta/root.scss +4 -0
- package/scss/spacer/functions.scss +2 -1
- package/scss/spacer/mixins.scss +0 -52
- package/scss/spacer/root.scss +55 -0
- package/scss/system/functions.scss +70 -5
- package/scss/system/root.scss +0 -3
- package/scss/system/variables.scss +1 -0
- package/scss/typography/functions.scss +12 -12
- package/scss/typography/mixins.scss +0 -221
- package/scss/typography/root.scss +226 -0
- package/srl/.srl/components/Srl/Article/Dialog/Button.vue +18 -20
- package/srl/.srl/components/Srl/Page/Dialog.vue +17 -19
- package/srl/.srl/utils/pageState.ts +2 -2
- package/srl/srl/pdf.scss +0 -2
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
@use "variables";
|
|
2
|
+
@use "../system";
|
|
3
|
+
@use "sass:map";
|
|
4
|
+
|
|
5
|
+
@each $breakpoint, $min-width in variables.$breakpoints {
|
|
6
|
+
$size-unit: false;
|
|
7
|
+
@if $breakpoint == print {
|
|
8
|
+
$size-unit: in;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
@include system.add-root-style(
|
|
12
|
+
#{variables.$variable-prefix}breakpoint-#{$breakpoint},
|
|
13
|
+
system.size-unit($min-width, $size-unit)
|
|
14
|
+
);
|
|
15
|
+
|
|
16
|
+
$container: map.get(variables.$containers, $breakpoint);
|
|
17
|
+
|
|
18
|
+
$container-max-width: map.get($container, max-width);
|
|
19
|
+
@if not $container-max-width {
|
|
20
|
+
$container-max-width: unset;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
@include system.add-root-style(
|
|
24
|
+
#{variables.$variable-prefix}container-max-width,
|
|
25
|
+
system.size-unit($container-max-width, $size-unit),
|
|
26
|
+
$breakpoint
|
|
27
|
+
);
|
|
28
|
+
|
|
29
|
+
$container-padding: map.get($container, padding);
|
|
30
|
+
@if not $container-padding {
|
|
31
|
+
$container-padding: unset;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
@include system.add-root-style(
|
|
35
|
+
#{variables.$variable-prefix}container-padding,
|
|
36
|
+
system.size-unit($container-padding, $size-unit),
|
|
37
|
+
$breakpoint
|
|
38
|
+
);
|
|
39
|
+
|
|
40
|
+
$gutter: map.get(variables.$gutter, $breakpoint);
|
|
41
|
+
@if not $gutter {
|
|
42
|
+
$gutter: (
|
|
43
|
+
columns: 1,
|
|
44
|
+
);
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
$columns: map.get(variables.$columns, $breakpoint);
|
|
48
|
+
|
|
49
|
+
$gap: map.get($gutter, gap);
|
|
50
|
+
$row-gap: unset;
|
|
51
|
+
$column-gap: unset;
|
|
52
|
+
@if $gap {
|
|
53
|
+
$row-gap: $gap;
|
|
54
|
+
$column-gap: $gap;
|
|
55
|
+
} @else {
|
|
56
|
+
@if map.has-key($gutter, row-gap) {
|
|
57
|
+
$row-gap: map.get($gutter, row-gap);
|
|
58
|
+
}
|
|
59
|
+
@if map.has-key($gutter, column-gap) {
|
|
60
|
+
$column-gap: map.get($gutter, column-gap);
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
@include system.add-root-style(
|
|
65
|
+
#{variables.$variable-prefix}gutter-columns,
|
|
66
|
+
$columns,
|
|
67
|
+
$breakpoint
|
|
68
|
+
);
|
|
69
|
+
@include system.add-root-style(
|
|
70
|
+
#{variables.$variable-prefix}gutter-row-gap,
|
|
71
|
+
system.size-unit($row-gap, $size-unit),
|
|
72
|
+
$breakpoint
|
|
73
|
+
);
|
|
74
|
+
|
|
75
|
+
@include system.add-root-style(
|
|
76
|
+
#{variables.$variable-prefix}gutter-column-gap,
|
|
77
|
+
system.size-unit($column-gap, $size-unit),
|
|
78
|
+
$breakpoint
|
|
79
|
+
);
|
|
80
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
@use "./colors/root" as *;
|
|
2
|
+
@use "./fonts/root" as *;
|
|
3
|
+
@use "./grid/root" as *;
|
|
4
|
+
@use "./helpers/root" as *;
|
|
5
|
+
@use "./meta/root" as *;
|
|
6
|
+
@use "./spacer/root" as *;
|
|
7
|
+
@use "./typography/root" as *;
|
|
8
|
+
@use "./system";
|
|
9
|
+
|
|
10
|
+
@each $key, $value in system.$root-styles {
|
|
11
|
+
@include system.add-root-style($key, $value);
|
|
12
|
+
}
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
@use 'variables';
|
|
2
2
|
@use 'sass:map';
|
|
3
|
+
@use "../system";
|
|
3
4
|
|
|
4
5
|
@function get($spacer) {
|
|
5
6
|
@if not map.has-key(variables.$spacer, $spacer) {
|
|
6
7
|
@error "Invalid column-gap "#{$spacer}" specified! Choose one of #{map.keys(variables.$spacer)}";
|
|
7
8
|
}
|
|
8
|
-
@return
|
|
9
|
+
@return system.root-style(#{variables.$variable-prefix}spacer-#{$spacer});
|
|
9
10
|
}
|
package/scss/spacer/mixins.scss
CHANGED
|
@@ -72,58 +72,6 @@
|
|
|
72
72
|
column-gap: functions.get($spacer);
|
|
73
73
|
}
|
|
74
74
|
|
|
75
|
-
@each $spacer, $spacerValue in variables.$spacer {
|
|
76
|
-
$varName: #{variables.$variable-prefix}spacer-#{$spacer};
|
|
77
|
-
@include system.add-root-style(
|
|
78
|
-
$varName,
|
|
79
|
-
system.size-unit(map.get($spacerValue, size))
|
|
80
|
-
);
|
|
81
|
-
|
|
82
|
-
@if not (map.has-key($spacerValue, media) and map.has-key(map.get($spacerValue, media), print)) {
|
|
83
|
-
@include system.add-root-style(
|
|
84
|
-
$varName,
|
|
85
|
-
system.size-unit(map.get($spacerValue, size)),
|
|
86
|
-
print
|
|
87
|
-
);
|
|
88
|
-
}
|
|
89
|
-
|
|
90
|
-
@if map.has-key($spacerValue, media) {
|
|
91
|
-
@each $breakpoint, $breakpointValue in map.get($spacerValue, media) {
|
|
92
|
-
@if $breakpoint == print {
|
|
93
|
-
@include system.add-root-style(
|
|
94
|
-
$varName,
|
|
95
|
-
system.size-unit(map.get($breakpointValue, size)),
|
|
96
|
-
print
|
|
97
|
-
);
|
|
98
|
-
} @else if $breakpoint == up {
|
|
99
|
-
@each $upBreakpoint, $upBreakpointValue in $breakpointValue {
|
|
100
|
-
@include system.add-root-style(
|
|
101
|
-
$varName,
|
|
102
|
-
system.size-unit($upBreakpointValue),
|
|
103
|
-
$upBreakpoint,
|
|
104
|
-
up
|
|
105
|
-
);
|
|
106
|
-
}
|
|
107
|
-
} @else if $breakpoint == down {
|
|
108
|
-
@each $downBreakpoint, $downBreakpointValue in $breakpointValue {
|
|
109
|
-
@include system.add-root-style(
|
|
110
|
-
$varName,
|
|
111
|
-
system.size-unit($downBreakpointValue),
|
|
112
|
-
$downBreakpoint,
|
|
113
|
-
down
|
|
114
|
-
);
|
|
115
|
-
}
|
|
116
|
-
} @else {
|
|
117
|
-
@include system.add-root-style(
|
|
118
|
-
$varName,
|
|
119
|
-
system.size-unit($breakpointValue),
|
|
120
|
-
$breakpoint
|
|
121
|
-
);
|
|
122
|
-
}
|
|
123
|
-
}
|
|
124
|
-
}
|
|
125
|
-
}
|
|
126
|
-
|
|
127
75
|
@mixin core-styles {
|
|
128
76
|
@at-root {
|
|
129
77
|
@each $spacer, $spacerValue in variables.$spacer {
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
@use "variables";
|
|
2
|
+
@use "../system";
|
|
3
|
+
@use "sass:map";
|
|
4
|
+
|
|
5
|
+
@each $spacer, $spacerValue in variables.$spacer {
|
|
6
|
+
$varName: #{variables.$variable-prefix}spacer-#{$spacer};
|
|
7
|
+
@include system.add-root-style(
|
|
8
|
+
$varName,
|
|
9
|
+
system.size-unit(map.get($spacerValue, size))
|
|
10
|
+
);
|
|
11
|
+
|
|
12
|
+
@if not (map.has-key($spacerValue, media) and map.has-key(map.get($spacerValue, media), print)) {
|
|
13
|
+
@include system.add-root-style(
|
|
14
|
+
$varName,
|
|
15
|
+
system.size-unit(map.get($spacerValue, size)),
|
|
16
|
+
print
|
|
17
|
+
);
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
@if map.has-key($spacerValue, media) {
|
|
21
|
+
@each $breakpoint, $breakpointValue in map.get($spacerValue, media) {
|
|
22
|
+
@if $breakpoint == print {
|
|
23
|
+
@include system.add-root-style(
|
|
24
|
+
$varName,
|
|
25
|
+
system.size-unit(map.get($breakpointValue, size)),
|
|
26
|
+
print
|
|
27
|
+
);
|
|
28
|
+
} @else if $breakpoint == up {
|
|
29
|
+
@each $upBreakpoint, $upBreakpointValue in $breakpointValue {
|
|
30
|
+
@include system.add-root-style(
|
|
31
|
+
$varName,
|
|
32
|
+
system.size-unit($upBreakpointValue),
|
|
33
|
+
$upBreakpoint,
|
|
34
|
+
up
|
|
35
|
+
);
|
|
36
|
+
}
|
|
37
|
+
} @else if $breakpoint == down {
|
|
38
|
+
@each $downBreakpoint, $downBreakpointValue in $breakpointValue {
|
|
39
|
+
@include system.add-root-style(
|
|
40
|
+
$varName,
|
|
41
|
+
system.size-unit($downBreakpointValue),
|
|
42
|
+
$downBreakpoint,
|
|
43
|
+
down
|
|
44
|
+
);
|
|
45
|
+
}
|
|
46
|
+
} @else {
|
|
47
|
+
@include system.add-root-style(
|
|
48
|
+
$varName,
|
|
49
|
+
system.size-unit($breakpointValue),
|
|
50
|
+
$breakpoint
|
|
51
|
+
);
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
@use 'variables';
|
|
2
|
+
@use "mixins";
|
|
2
3
|
@use 'sass:map';
|
|
3
4
|
@use 'sass:list';
|
|
4
5
|
@use 'sass:math';
|
|
@@ -44,6 +45,11 @@
|
|
|
44
45
|
@return $fallback;
|
|
45
46
|
}
|
|
46
47
|
|
|
48
|
+
@function unit-to-number($unit) {
|
|
49
|
+
// $unit z.B. "em" oder "pt"
|
|
50
|
+
@return 1#{$unit}; // ergibt 1em / 1pt als Number mit Einheit
|
|
51
|
+
}
|
|
52
|
+
|
|
47
53
|
@function size-unit($size, $size-unit: false) {
|
|
48
54
|
@if not $size-unit {
|
|
49
55
|
$size-unit: variables.$size-unit;
|
|
@@ -51,11 +57,21 @@
|
|
|
51
57
|
@if meta.type-of($size) == 'number' and math.is-unitless($size) and $size != 0
|
|
52
58
|
{
|
|
53
59
|
@if $size-unit == 'rem' {
|
|
54
|
-
@return math.div($size, variables.$root-size)
|
|
60
|
+
@return math.div($size, variables.$root-size) * 1rem;
|
|
55
61
|
} @else if $size-unit == 'in' {
|
|
56
|
-
@return math.div($size, variables.$dpi)
|
|
62
|
+
@return math.div($size, variables.$dpi) * 1in;
|
|
57
63
|
} @else if $size-unit == 'pt' {
|
|
58
|
-
@return ($size * variables.$point)
|
|
64
|
+
@return ($size * variables.$point) * 1pt;
|
|
65
|
+
} @else if $size-unit == 'px' {
|
|
66
|
+
@return $size * 1px;
|
|
67
|
+
} @else if $size-unit == 'cm' {
|
|
68
|
+
@return math.div($size, variables.$dpi) * 2.54cm;
|
|
69
|
+
} @else if $size-unit == 'mm' {
|
|
70
|
+
@return math.div($size, variables.$dpi) * 25.4mm;
|
|
71
|
+
} @else if $size-unit == 'pc' {
|
|
72
|
+
@return math.div($size, variables.$dpi) * 6pc;
|
|
73
|
+
} @else if $size-unit == 'Q' {
|
|
74
|
+
@return math.div($size, variables.$dpi) * 101.6Q;
|
|
59
75
|
} @else {
|
|
60
76
|
@return $size + $size-unit;
|
|
61
77
|
}
|
|
@@ -64,7 +80,7 @@
|
|
|
64
80
|
} @else if $size == null {
|
|
65
81
|
@return unset;
|
|
66
82
|
} @else {
|
|
67
|
-
@return
|
|
83
|
+
@return $size;
|
|
68
84
|
}
|
|
69
85
|
}
|
|
70
86
|
|
|
@@ -72,6 +88,55 @@
|
|
|
72
88
|
@if meta.type-of($number) == 'number' and not math.is-unitless($number) {
|
|
73
89
|
@return math.div($number, ($number * 0 + 1));
|
|
74
90
|
}
|
|
75
|
-
|
|
76
91
|
@return $number;
|
|
77
92
|
}
|
|
93
|
+
|
|
94
|
+
@function number-to-unit($number, $unit) {
|
|
95
|
+
@if $unit == 'rem' {
|
|
96
|
+
@return $number * 1rem;
|
|
97
|
+
} @else if $unit == 'in' {
|
|
98
|
+
@return $number * 1in;
|
|
99
|
+
} @else if $unit == 'pt' {
|
|
100
|
+
@return $number * 1pt;
|
|
101
|
+
} @else if $unit == 'px' {
|
|
102
|
+
@return $number * 1px;
|
|
103
|
+
} @else if $unit == 'cm' {
|
|
104
|
+
@return $number * 1cm;
|
|
105
|
+
} @else if $unit == 'mm' {
|
|
106
|
+
@return $number * 1mm;
|
|
107
|
+
} @else if $unit == 'pc' {
|
|
108
|
+
@return $number * 1pc;
|
|
109
|
+
} @else if $unit == 'Q' {
|
|
110
|
+
@return $number * 1Q;
|
|
111
|
+
} @else {
|
|
112
|
+
@return $number + $unit;
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
@function round-if-unit($value) {
|
|
117
|
+
@if meta.type-of($value) == 'number' and not math.is-unitless($value) {
|
|
118
|
+
$unit: math.unit($value);
|
|
119
|
+
@return number-to-unit(math.round(strip-unit($value)), $unit);
|
|
120
|
+
}
|
|
121
|
+
@return $value;
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
@function root-style($varname, $default: unset) {
|
|
125
|
+
@if variables.$build == 'word' {
|
|
126
|
+
$res: map.get(mixins.$stylesOnly, print, $varname);
|
|
127
|
+
@if $res == null {
|
|
128
|
+
$res: map.get(mixins.$stylesUp, print, $varname);
|
|
129
|
+
}
|
|
130
|
+
@if $res == null {
|
|
131
|
+
$res: map.get(mixins.$styles, $varname);
|
|
132
|
+
}
|
|
133
|
+
@if meta.type-of($res) == 'number' and math.unit($res) == 'pt' {
|
|
134
|
+
$res: round-if-unit($res);
|
|
135
|
+
}
|
|
136
|
+
@if $res == null {
|
|
137
|
+
$res: $default;
|
|
138
|
+
}
|
|
139
|
+
@return $res;
|
|
140
|
+
}
|
|
141
|
+
@return var(--#{$varname}, #{$default});
|
|
142
|
+
}
|
package/scss/system/root.scss
CHANGED
|
@@ -6,51 +6,51 @@
|
|
|
6
6
|
@if not map.has-key(variables.$typography, $typo) {
|
|
7
7
|
@error "Invalid typo for typography specified! Choose one of #{map.keys(variables.$typography)}";
|
|
8
8
|
}
|
|
9
|
-
@return
|
|
9
|
+
@return system.root-style(#{variables.$variable-prefix}typo-#{$typo}-font-family, unset);
|
|
10
10
|
}
|
|
11
11
|
|
|
12
12
|
@function get-font-size($typo) {
|
|
13
13
|
@if not map.has-key(variables.$typography, $typo) {
|
|
14
14
|
@error "Invalid typo for typo specified! Choose one of #{map.keys(variables.$typography)}";
|
|
15
15
|
}
|
|
16
|
-
@return
|
|
16
|
+
@return system.root-style(#{variables.$variable-prefix}typo-#{$typo}-font-size, unset);
|
|
17
17
|
}
|
|
18
18
|
|
|
19
19
|
@function get-line-height($typo) {
|
|
20
20
|
@if not map.has-key(variables.$typography, $typo) {
|
|
21
21
|
@error "Invalid typo for typography specified! Choose one of #{map.keys(variables.$typography)}";
|
|
22
22
|
}
|
|
23
|
-
@return
|
|
23
|
+
@return system.root-style(#{variables.$variable-prefix}typo-#{$typo}-line-height, unset);
|
|
24
24
|
}
|
|
25
25
|
|
|
26
26
|
@function get-font-style($typo) {
|
|
27
27
|
@if not map.has-key(variables.$typography, $typo) {
|
|
28
28
|
@error "Invalid typo for typography specified! Choose one of #{map.keys(variables.$typography)}";
|
|
29
29
|
}
|
|
30
|
-
@return
|
|
30
|
+
@return system.root-style(#{variables.$variable-prefix}typo-#{$typo}-font-style, normal);
|
|
31
31
|
}
|
|
32
32
|
|
|
33
33
|
@function get-font-weight($typo) {
|
|
34
|
-
@return
|
|
34
|
+
@return system.root-style(#{variables.$variable-prefix}typo-#{$typo}-font-weight, unset);
|
|
35
35
|
}
|
|
36
36
|
|
|
37
37
|
@function get-font-color($typo) {
|
|
38
38
|
@if not map.has-key(variables.$typography, $typo) {
|
|
39
39
|
@error "Invalid typo for typography specified! Choose one of #{map.keys(variables.$typography)}";
|
|
40
40
|
}
|
|
41
|
-
@return
|
|
41
|
+
@return system.root-style(#{variables.$variable-prefix}typo-#{$typo}-font-color, unset);
|
|
42
42
|
}
|
|
43
43
|
|
|
44
44
|
@function get-letter-spacing($typo) {
|
|
45
|
-
@return
|
|
46
|
-
|
|
45
|
+
@return system.root-style(
|
|
46
|
+
#{variables.$variable-prefix}typo-#{$typo}-letter-spacing,
|
|
47
47
|
unset
|
|
48
48
|
);
|
|
49
49
|
}
|
|
50
50
|
|
|
51
51
|
@function get-text-transform($typo) {
|
|
52
|
-
@return
|
|
53
|
-
|
|
52
|
+
@return system.root-style(
|
|
53
|
+
#{variables.$variable-prefix}typo-#{$typo}-text-transform,
|
|
54
54
|
unset
|
|
55
55
|
);
|
|
56
56
|
}
|
|
@@ -59,12 +59,12 @@
|
|
|
59
59
|
@if not map.has-key(variables.$typography, $typo) {
|
|
60
60
|
@error "Invalid typo for typography specified! Choose one of #{map.keys(variables.$typography)}";
|
|
61
61
|
}
|
|
62
|
-
@return
|
|
62
|
+
@return system.root-style(#{variables.$variable-prefix}typo-#{$typo}-margin-top, 0);
|
|
63
63
|
}
|
|
64
64
|
|
|
65
65
|
@function get-margin-bottom($typo) {
|
|
66
66
|
@if not map.has-key(variables.$typography, $typo) {
|
|
67
67
|
@error "Invalid typo for typography specified! Choose one of #{map.keys(variables.$typography)}";
|
|
68
68
|
}
|
|
69
|
-
@return
|
|
69
|
+
@return system.root-style(#{variables.$variable-prefix}typo-#{$typo}-margin-bottom, 0);
|
|
70
70
|
}
|
|
@@ -44,223 +44,6 @@
|
|
|
44
44
|
}
|
|
45
45
|
}
|
|
46
46
|
|
|
47
|
-
@mixin _register-typo-variables(
|
|
48
|
-
$typo,
|
|
49
|
-
$map,
|
|
50
|
-
$media: false,
|
|
51
|
-
$mediaBehavior: false
|
|
52
|
-
) {
|
|
53
|
-
@if not $media {
|
|
54
|
-
$defaults: map.merge(
|
|
55
|
-
(
|
|
56
|
-
font-family: unset,
|
|
57
|
-
font-size: unset,
|
|
58
|
-
line-height: unset,
|
|
59
|
-
font-style: normal,
|
|
60
|
-
font-weight: unset,
|
|
61
|
-
letter-spacing: unset,
|
|
62
|
-
margin-top: 0,
|
|
63
|
-
margin-bottom: 0,
|
|
64
|
-
),
|
|
65
|
-
$map
|
|
66
|
-
);
|
|
67
|
-
|
|
68
|
-
@if (map.has-key($map, font-family)) {
|
|
69
|
-
@include system.add-root-style(
|
|
70
|
-
#{variables.$variable-prefix}typo-#{$typo}-font-family,
|
|
71
|
-
string.unquote(map.get($defaults, font-family))
|
|
72
|
-
);
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
@include system.add-root-style(
|
|
76
|
-
#{variables.$variable-prefix}typo-#{$typo}-font-size,
|
|
77
|
-
system.size-unit(map.get($defaults, font-size))
|
|
78
|
-
);
|
|
79
|
-
|
|
80
|
-
@include system.add-root-style(
|
|
81
|
-
#{variables.$variable-prefix}typo-#{$typo}-line-height,
|
|
82
|
-
system.size-unit(map.get($defaults, line-height), em)
|
|
83
|
-
);
|
|
84
|
-
|
|
85
|
-
@include system.add-root-style(
|
|
86
|
-
#{variables.$variable-prefix}typo-#{$typo}-font-style,
|
|
87
|
-
string.unquote(map.get($defaults, font-style))
|
|
88
|
-
);
|
|
89
|
-
|
|
90
|
-
@include system.add-root-style(
|
|
91
|
-
#{variables.$variable-prefix}typo-#{$typo}-font-weight,
|
|
92
|
-
map.get($defaults, font-weight)
|
|
93
|
-
);
|
|
94
|
-
|
|
95
|
-
@if (map.has-key($map, color)) {
|
|
96
|
-
@include system.add-root-style(
|
|
97
|
-
#{variables.$variable-prefix}typo-#{$typo}-font-color,
|
|
98
|
-
colors.get(map.get($defaults, color))
|
|
99
|
-
);
|
|
100
|
-
}
|
|
101
|
-
|
|
102
|
-
@if (map.has-key($map, letter-spacing)) {
|
|
103
|
-
@include system.add-root-style(
|
|
104
|
-
#{variables.$variable-prefix}typo-#{$typo}-letter-spacing,
|
|
105
|
-
system.size-unit(map.get($defaults, letter-spacing))
|
|
106
|
-
);
|
|
107
|
-
}
|
|
108
|
-
|
|
109
|
-
@if (map.has-key($map, text-transform)) {
|
|
110
|
-
@include system.add-root-style(
|
|
111
|
-
#{variables.$variable-prefix}typo-#{$typo}-text-transform,
|
|
112
|
-
map.get($defaults, text-transform)
|
|
113
|
-
);
|
|
114
|
-
}
|
|
115
|
-
|
|
116
|
-
@include system.add-root-style(
|
|
117
|
-
#{variables.$variable-prefix}typo-#{$typo}-margin-top,
|
|
118
|
-
system.size-unit(map.get($defaults, margin-top))
|
|
119
|
-
);
|
|
120
|
-
|
|
121
|
-
@include system.add-root-style(
|
|
122
|
-
#{variables.$variable-prefix}typo-#{$typo}-margin-bottom,
|
|
123
|
-
system.size-unit(map.get($defaults, margin-bottom))
|
|
124
|
-
);
|
|
125
|
-
|
|
126
|
-
@if map.has-key($map, media) {
|
|
127
|
-
@each $breakpoint, $breakpointValue in map.get($map, media) {
|
|
128
|
-
@if $breakpoint == up {
|
|
129
|
-
@each $upBreakpoint, $upBreakpointValue in $breakpointValue {
|
|
130
|
-
@include _register-typo-variables(
|
|
131
|
-
$typo,
|
|
132
|
-
$upBreakpointValue,
|
|
133
|
-
$upBreakpoint,
|
|
134
|
-
up
|
|
135
|
-
);
|
|
136
|
-
}
|
|
137
|
-
} @else if $breakpoint == down {
|
|
138
|
-
@each $downBreakpoint, $downBreakpointValue in $breakpointValue {
|
|
139
|
-
@include _register-typo-variables(
|
|
140
|
-
$typo,
|
|
141
|
-
$downBreakpointValue,
|
|
142
|
-
$downBreakpoint,
|
|
143
|
-
down
|
|
144
|
-
);
|
|
145
|
-
}
|
|
146
|
-
} @else {
|
|
147
|
-
@include _register-typo-variables(
|
|
148
|
-
$typo,
|
|
149
|
-
$breakpointValue,
|
|
150
|
-
$breakpoint
|
|
151
|
-
);
|
|
152
|
-
}
|
|
153
|
-
}
|
|
154
|
-
}
|
|
155
|
-
} @else {
|
|
156
|
-
@if (map.has-key($map, font-family)) {
|
|
157
|
-
@include system.add-root-style(
|
|
158
|
-
#{variables.$variable-prefix}typo-#{$typo}-font-family,
|
|
159
|
-
string.unquote(map.get($map, font-family)),
|
|
160
|
-
$media,
|
|
161
|
-
$mediaBehavior
|
|
162
|
-
);
|
|
163
|
-
}
|
|
164
|
-
|
|
165
|
-
@if (map.has-key($map, font-size)) {
|
|
166
|
-
@include system.add-root-style(
|
|
167
|
-
#{variables.$variable-prefix}typo-#{$typo}-font-size,
|
|
168
|
-
system.size-unit(map.get($map, font-size)),
|
|
169
|
-
$media,
|
|
170
|
-
$mediaBehavior
|
|
171
|
-
);
|
|
172
|
-
}
|
|
173
|
-
|
|
174
|
-
@if map.has-key($map, line-height) {
|
|
175
|
-
@include system.add-root-style(
|
|
176
|
-
#{variables.$variable-prefix}typo-#{$typo}-line-height,
|
|
177
|
-
system.size-unit(map.get($map, line-height), em),
|
|
178
|
-
$media,
|
|
179
|
-
$mediaBehavior
|
|
180
|
-
);
|
|
181
|
-
}
|
|
182
|
-
|
|
183
|
-
@if map.has-key($map, font-style) {
|
|
184
|
-
@include system.add-root-style(
|
|
185
|
-
#{variables.$variable-prefix}typo-#{$typo}-font-style,
|
|
186
|
-
string.unquote(map.get($map, font-style)),
|
|
187
|
-
$media,
|
|
188
|
-
$mediaBehavior
|
|
189
|
-
);
|
|
190
|
-
}
|
|
191
|
-
|
|
192
|
-
@if map.has-key($map, font-weight) {
|
|
193
|
-
@include system.add-root-style(
|
|
194
|
-
#{variables.$variable-prefix}typo-#{$typo}-font-weight,
|
|
195
|
-
map.get($map, font-weight),
|
|
196
|
-
$media,
|
|
197
|
-
$mediaBehavior
|
|
198
|
-
);
|
|
199
|
-
}
|
|
200
|
-
|
|
201
|
-
@if (map.has-key($map, color)) {
|
|
202
|
-
@include system.add-root-style(
|
|
203
|
-
#{variables.$variable-prefix}typo-#{$typo}-font-color,
|
|
204
|
-
colors.get(map.get($defaults, color))
|
|
205
|
-
);
|
|
206
|
-
}
|
|
207
|
-
|
|
208
|
-
@if (map.has-key($map, letter-spacing)) {
|
|
209
|
-
@include system.add-root-style(
|
|
210
|
-
#{variables.$variable-prefix}typo-#{$typo}-letter-spacing,
|
|
211
|
-
system.size-unit(map.get($defaults, letter-spacing)),
|
|
212
|
-
$media,
|
|
213
|
-
$mediaBehavior
|
|
214
|
-
);
|
|
215
|
-
}
|
|
216
|
-
|
|
217
|
-
@if (map.has-key($map, text-transform)) {
|
|
218
|
-
@include system.add-root-style(
|
|
219
|
-
#{variables.$variable-prefix}typo-#{$typo}-text-transform,
|
|
220
|
-
map.get($defaults, text-transform),
|
|
221
|
-
$media,
|
|
222
|
-
$mediaBehavior
|
|
223
|
-
);
|
|
224
|
-
}
|
|
225
|
-
|
|
226
|
-
@if map.has-key($map, margin-top) {
|
|
227
|
-
@if $media == print {
|
|
228
|
-
@include system.add-root-style(
|
|
229
|
-
#{variables.$variable-prefix}typo-#{$typo}-margin-top,
|
|
230
|
-
system.size-unit(map.get($map, margin-top), in),
|
|
231
|
-
$media,
|
|
232
|
-
$mediaBehavior
|
|
233
|
-
);
|
|
234
|
-
} @else {
|
|
235
|
-
@include system.add-root-style(
|
|
236
|
-
#{variables.$variable-prefix}typo-#{$typo}-margin-top,
|
|
237
|
-
system.size-unit(map.get($map, margin-top)),
|
|
238
|
-
$media,
|
|
239
|
-
$mediaBehavior
|
|
240
|
-
);
|
|
241
|
-
}
|
|
242
|
-
}
|
|
243
|
-
|
|
244
|
-
@if map.has-key($map, margin-bottom) {
|
|
245
|
-
@if $media == print {
|
|
246
|
-
@include system.add-root-style(
|
|
247
|
-
#{variables.$variable-prefix}typo-#{$typo}-margin-bottom,
|
|
248
|
-
system.size-unit(map.get($map, margin-bottom), in),
|
|
249
|
-
$media,
|
|
250
|
-
$mediaBehavior
|
|
251
|
-
);
|
|
252
|
-
} @else {
|
|
253
|
-
@include system.add-root-style(
|
|
254
|
-
#{variables.$variable-prefix}typo-#{$typo}-margin-bottom,
|
|
255
|
-
system.size-unit(map.get($map, margin-bottom)),
|
|
256
|
-
$media,
|
|
257
|
-
$mediaBehavior
|
|
258
|
-
);
|
|
259
|
-
}
|
|
260
|
-
}
|
|
261
|
-
}
|
|
262
|
-
}
|
|
263
|
-
|
|
264
47
|
@mixin set-font-family($typo, $value) {
|
|
265
48
|
--#{variables.$variable-prefix}typo-#{$typo}-font-family: #{string.unquote(
|
|
266
49
|
$value
|
|
@@ -312,10 +95,6 @@
|
|
|
312
95
|
)};
|
|
313
96
|
}
|
|
314
97
|
|
|
315
|
-
@each $typo, $values in variables.$typography {
|
|
316
|
-
@include _register-typo-variables($typo, $values);
|
|
317
|
-
}
|
|
318
|
-
|
|
319
98
|
@mixin core-styles {
|
|
320
99
|
@each $typo, $values in variables.$typography {
|
|
321
100
|
.#{variables.$class-prefix}typo-#{'' + $typo} {
|