@tedi-design-system/core 2.3.0 → 2.5.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/_base.scss CHANGED
@@ -4,7 +4,7 @@
4
4
  html,
5
5
  body {
6
6
  height: 100%;
7
- background-color: var(--neutral-300);
7
+ background-color: var(--tedi-neutral-300);
8
8
  }
9
9
 
10
10
  html {
package/_mixins.scss CHANGED
@@ -15,15 +15,36 @@ $breakpoints: (
15
15
  $result: '';
16
16
 
17
17
  @each $name in $variable-names {
18
- $prefixed: var(--#{$name});
19
- $result: #{$result} #{$prefixed};
18
+ $result: #{$result} var(--#{$name}-#{$suffix});
20
19
  }
21
20
 
22
21
  @return $result;
23
22
  }
24
23
 
25
- @mixin responsive-styles($property, $name, $exclude: null) {
26
- #{$property}: var(--#{$name});
24
+ @mixin responsive-styles($property, $names, $exclude: null) {
25
+ $variable-names: ();
26
+
27
+ @if meta.type-of($names) == 'string' {
28
+ $variable-names: (string.slice($names, 1, -1));
29
+ } @else {
30
+ $variable-names: $names;
31
+ }
32
+
33
+ & {
34
+ #{$property}: #{construct-variables($variable-names, mobile)};
35
+ }
36
+
37
+ @if $exclude != 'tablet' {
38
+ @media (min-width: map.get($breakpoints, sm)) {
39
+ #{$property}: #{construct-variables($variable-names, tablet)};
40
+ }
41
+ }
42
+
43
+ @if $exclude != 'desktop' {
44
+ @media (min-width: map.get($breakpoints, lg)) {
45
+ #{$property}: #{construct-variables($variable-names, desktop)};
46
+ }
47
+ }
27
48
  }
28
49
 
29
50
  @mixin print-grayscale {
package/_print.scss CHANGED
@@ -6,7 +6,7 @@ $breaks: ('auto', 'avoid', 'avoid-column', 'avoid-page', 'avoid-region');
6
6
  }
7
7
 
8
8
  body {
9
- background-color: var(--neutral-100);
9
+ background-color: var(--tedi-neutral-100);
10
10
  -webkit-print-color-adjust: exact;
11
11
  print-color-adjust: exact; // needed for Edge. Isn't added automatically by autoprefixer
12
12
  }
package/_typography.scss CHANGED
@@ -75,6 +75,12 @@ small,
75
75
  line-height: var(--body-small-regular-line-height);
76
76
  }
77
77
 
78
+ .text-extra-small {
79
+ font-size: var(--body-extra-small-size);
80
+ font-weight: var(--body-extra-small-weight);
81
+ line-height: var(--body-extra-small-line-height);
82
+ }
83
+
78
84
  // Text color variants
79
85
  @each $color,
80
86
  $var