@kth/style 0.15.0 → 0.16.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kth/style",
3
- "version": "0.15.0",
3
+ "version": "0.16.0",
4
4
  "main": "dist/cjs/index.js",
5
5
  "module": "dist/esm/index.js",
6
6
  "exports": {
@@ -20,15 +20,34 @@ $padding-inline: calc(spacing.$space-12 - $border-inline);
20
20
  border-style: solid;
21
21
  border-color: var(--color-text);
22
22
 
23
+ &:before {
24
+ background-color: var(--color-text);
25
+ grid-column-start: 1;
26
+ align-self: center;
27
+ }
28
+
23
29
  &.info {
24
30
  border-color: var(--color-primary);
31
+
32
+ &::before {
33
+ @include icons.icon-info-500;
34
+ }
25
35
  }
26
36
 
27
- &.info::before {
28
- @include icons.icon-info-500;
29
- background-color: var(--color-text);
30
- grid-column-start: 1;
31
- align-self: center;
37
+ &.warning {
38
+ border-color: var(--color-error);
39
+
40
+ &::before {
41
+ @include icons.icon-warning-500;
42
+ }
43
+ }
44
+
45
+ &.success {
46
+ border-color: var(--color-success);
47
+
48
+ &::before {
49
+ @include icons.icon-check-500;
50
+ }
32
51
  }
33
52
 
34
53
  > * {
@@ -96,10 +96,10 @@ $font-bold: 600;
96
96
 
97
97
  // Replaces t10
98
98
  @mixin font-lead-fluid {
99
- @include font-lead-l;
99
+ @include font-lead-m;
100
100
 
101
101
  @media (min-width: $breakpoint-fluid-typography) {
102
- @include font-lead-m;
102
+ @include font-lead-l;
103
103
  }
104
104
  }
105
105