@oslokommune/punkt-css 12.12.3 → 12.13.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.
@@ -22,13 +22,7 @@
22
22
  // Requires the use of quotes around data URIs.
23
23
 
24
24
  // Characters which are escaped by the escape-svg function
25
- $escaped-characters: (
26
- ('<', '%3c'),
27
- ('>', '%3e'),
28
- ('#', '%23'),
29
- ('(', '%28'),
30
- (')', '%29')
31
- ) !default;
25
+ $escaped-characters: (('<', '%3c'), ('>', '%3e'), ('#', '%23'), ('(', '%28'), (')', '%29')) !default;
32
26
 
33
27
  // Replace `$search` with `$replace` in `$string`
34
28
  // Used on our SVG icon backgrounds for custom forms.
@@ -42,8 +36,8 @@ $escaped-characters: (
42
36
  $index: string.index($string, $search);
43
37
 
44
38
  @if $index {
45
- @return str-slice($string, 1, $index - 1) + $replace +
46
- str-replace(str-slice($string, $index + str-length($search)), $search, $replace);
39
+ @return string.slice($string, 1, $index - 1) + $replace +
40
+ str-replace(string.slice($string, $index + string.length($search)), $search, $replace);
47
41
  }
48
42
 
49
43
  @return $string;
@@ -54,7 +48,7 @@ $escaped-characters: (
54
48
  @each $char, $encoded in $escaped-characters {
55
49
  // Do not escape the url brackets
56
50
  @if string.index($string, 'url(') == 1 {
57
- $string: url('#{str-replace(str-slice($string, 6, -3), $char, $encoded)}');
51
+ $string: url('#{str-replace(string.slice($string, 6, -3), $char, $encoded)}');
58
52
  } @else {
59
53
  $string: str-replace($string, $char, $encoded);
60
54
  }
@@ -6,7 +6,7 @@
6
6
  @forward 'spacing';
7
7
 
8
8
  // Default icon path
9
- $icon-path: 'https://punkt-cdn.oslo.kommune.no/12.12/icons' !default;
9
+ $icon-path: 'https://punkt-cdn.oslo.kommune.no/12.13/icons' !default;
10
10
 
11
11
  // Borders
12
12
  $border-width: (
@@ -87,6 +87,7 @@ $-linkcard-spacing-big: map.get(variables.$spacing, 'size-24');
87
87
  }
88
88
 
89
89
  // Modifiers
90
+
90
91
  &--beige {
91
92
  background-color: var(--pkt-color-surface-default-light-beige) !important;
92
93
  color: var(--pkt-color-text-body-dark) !important;
@@ -114,9 +115,8 @@ $-linkcard-spacing-big: map.get(variables.$spacing, 'size-24');
114
115
  color: var(--pkt-color-brand-warm-blue-1000) !important;
115
116
  }
116
117
  }
117
-
118
- &--gray,
119
- &--grey {
118
+ &--grey,
119
+ &--gray {
120
120
  background-color: var(--pkt-color-surface-default-gray) !important;
121
121
  color: var(--pkt-color-text-body-dark) !important;
122
122
 
@@ -147,9 +147,8 @@ $-linkcard-spacing-big: map.get(variables.$spacing, 'size-24');
147
147
  color: var(--pkt-color-brand-warm-blue-1000) !important;
148
148
  }
149
149
  }
150
-
151
- &--gray-outline,
152
- &--grey-outline {
150
+ &--grey-outline,
151
+ &--gray-outline {
153
152
  border: 4px solid var(--pkt-color-border-subtle) !important;
154
153
  }
155
154
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@oslokommune/punkt-css",
3
- "version": "12.12.3",
3
+ "version": "12.13.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",
@@ -54,5 +54,5 @@
54
54
  "url": "https://github.com/oslokommune/punkt/issues"
55
55
  },
56
56
  "license": "MIT",
57
- "gitHead": "0dc3e24d50fb19d8298f7c6912ce7cb815d78cd0"
57
+ "gitHead": "fafdb670e002cbf94fd34acc45dd066344695816"
58
58
  }