@oslokommune/punkt-css 11.2.2 → 11.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.
@@ -6,7 +6,7 @@
6
6
  @forward 'spacing';
7
7
 
8
8
  // Default icon path
9
- $icon-path: 'https://punkt-cdn.oslo.kommune.no/11.2/icons' !default;
9
+ $icon-path: 'https://punkt-cdn.oslo.kommune.no/11.3/icons' !default;
10
10
 
11
11
  // Borders
12
12
  $border-width: (
@@ -105,8 +105,10 @@ $-border-thickness: map.get(variables.$spacing, 'size-4');
105
105
  }
106
106
 
107
107
  // Utelukkende for bruk i feilmeldinger i InputWrapper
108
- .#{$-module-name}--slim {
109
- padding: map.get(variables.$spacing, 'size-12') map.get(variables.$spacing, 'size-16') map.get(variables.$spacing, 'size-12') map.get(variables.$spacing, 'size-4');
108
+ .#{$-module-name}--compact {
109
+ padding: map.get(variables.$spacing, 'size-12')
110
+ map.get(variables.$spacing, 'size-16')
111
+ map.get(variables.$spacing, 'size-12') map.get(variables.$spacing, 'size-4');
110
112
 
111
113
  .#{$-module-name}__icon {
112
114
  width: 1.375rem;
@@ -117,6 +119,9 @@ $-border-thickness: map.get(variables.$spacing, 'size-4');
117
119
 
118
120
  .#{$-module-name}__text {
119
121
  @include get-text('pkt-txt-16-light');
120
- margin: 0 0 0 2.875rem;
122
+ margin: 0 2.875rem;
123
+ }
124
+ .#{$-module-name}__close {
125
+ top: 0.25rem;
121
126
  }
122
127
  }
@@ -1,4 +1,4 @@
1
- /*
1
+ /*
2
2
  * Messagebox component
3
3
  */
4
4
  @use 'sass:map';
@@ -10,6 +10,7 @@ $-module-name: 'pkt-messagebox';
10
10
 
11
11
  // Spacing
12
12
  $-messagebox-spacing: map.get(variables.$spacing, 'size-24');
13
+ $-messagebox-spacing-compact: map.get(variables.$spacing, 'size-16');
13
14
  $-border-thickness: map.get(variables.$spacing, 'size-4');
14
15
 
15
16
  // default is "info"
@@ -35,7 +36,8 @@ $-border-thickness: map.get(variables.$spacing, 'size-4');
35
36
  }
36
37
 
37
38
  .#{$-module-name} {
38
- padding: $-messagebox-spacing $-messagebox-spacing $-messagebox-spacing calc($-messagebox-spacing - $-border-thickness);
39
+ padding: $-messagebox-spacing $-messagebox-spacing $-messagebox-spacing
40
+ calc($-messagebox-spacing - $-border-thickness);
39
41
  display: block;
40
42
  position: relative;
41
43
  border-left: $-border-thickness solid var(--pkt-color-messagebox-bc);
@@ -60,3 +62,17 @@ $-border-thickness: map.get(variables.$spacing, 'size-4');
60
62
  }
61
63
  }
62
64
  }
65
+
66
+ // Compact variant
67
+ .#{$-module-name}--compact {
68
+ padding: $-messagebox-spacing-compact $-messagebox-spacing-compact
69
+ $-messagebox-spacing-compact
70
+ calc($-messagebox-spacing-compact - $-border-thickness);
71
+ .#{$-module-name}__title {
72
+ @include get-text('pkt-txt-16-medium');
73
+ }
74
+
75
+ .#{$-module-name}__text {
76
+ @include get-text('pkt-txt-16-light');
77
+ }
78
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@oslokommune/punkt-css",
3
- "version": "11.2.2",
3
+ "version": "11.3.0",
4
4
  "description": "CSS-rammeverket til Punkt, et designsystem laget av Oslo Origo",
5
5
  "homepage": "https://punkt.oslo.kommune.no",
6
6
  "author": "Team Designsystem, Oslo Origo",
@@ -55,5 +55,5 @@
55
55
  "url": "https://github.com/oslokommune/punkt/issues"
56
56
  },
57
57
  "license": "MIT",
58
- "gitHead": "774e405fe043821677feddd5ad6bdeeefd2d6cdb"
58
+ "gitHead": "14f97a3b27054b3ef5b50b800e49c039e2b2be23"
59
59
  }