@oslokommune/punkt-css 12.8.1 → 12.10.1

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/12.8/icons' !default;
9
+ $icon-path: 'https://punkt-cdn.oslo.kommune.no/12.10/icons' !default;
10
10
 
11
11
  // Borders
12
12
  $border-width: (
@@ -39,7 +39,7 @@
39
39
 
40
40
  .pkt-accordion--outlined {
41
41
  .pkt-accordion-item {
42
- border: 3px solid var(--pkt-color-border-gray);
42
+ border: 2px solid var(--pkt-color-border-subtle);
43
43
  }
44
44
  }
45
45
 
@@ -221,9 +221,56 @@
221
221
  }
222
222
  }
223
223
 
224
- // ALL STEP CONTENT EXCEPT CURRENT
225
- .pkt-step--hidden:not(.pkt-step--current) {
224
+ // CURRENT STEP
225
+ .pkt-step--current {
226
+ .pkt-step__line--1 {
227
+ background-color: var(--pkt-color-brand-dark-blue-1000);
228
+ }
229
+
230
+ .pkt-step__line--2,
231
+ .pkt-step__line--3 {
232
+ background-color: var(--pkt-color-grays-gray-200);
233
+ }
234
+ }
235
+
236
+ // CURRENT STEP + INCOMPLETE STEP
237
+ .pkt-step--current + .pkt-step--incomplete {
238
+ .pkt-step__line--1 {
239
+ background-color: var(--pkt-color-grays-gray-200);
240
+ }
241
+ }
242
+
243
+ // HIDE ALL STEP CONTENT EXCEPT CURRENT
244
+ .pkt-step--hideContent:not(.pkt-step--current) {
226
245
  .pkt-step__content {
227
246
  display: none;
228
247
  }
229
248
  }
249
+
250
+ // HIDE ALL STEPS EXCEPT CURRENT
251
+ .pkt-step--hideStep:not(.pkt-step--current) {
252
+ .pkt-step__title,
253
+ .pkt-step__content {
254
+ display: none;
255
+ }
256
+ }
257
+
258
+ // Adjust spacing between steps when hiding non-active steps on vertical stepper
259
+ .pkt-stepper--vertical {
260
+ .pkt-step--hideStep:not(.pkt-step--current) {
261
+ .pkt-step__line--3 {
262
+ min-height: map.get(variables.$spacing, 'size-32');
263
+ }
264
+ }
265
+ }
266
+
267
+ // Adjust spacing between steps when hiding non-active steps on horizontal stepper
268
+ .pkt-stepper--horizontal {
269
+ .pkt-step--hideStep:not(.pkt-step--current) {
270
+ grid-template-columns: var(--pkt-steps-indicator-width) minmax(map.get(variables.$spacing, 'size-32'), max-content);
271
+
272
+ .pkt-step__line--3 {
273
+ min-width: map.get(variables.$spacing, 'size-32');
274
+ }
275
+ }
276
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@oslokommune/punkt-css",
3
- "version": "12.8.1",
3
+ "version": "12.10.1",
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": "5ef8d6c7ba6a986e3a3267a970089be4758420a7"
57
+ "gitHead": "dffc9a6674efa752dc97af0ebdda1278346460ba"
58
58
  }