@oslokommune/punkt-css 12.7.3 → 12.9.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/CHANGELOG.md +35 -0
- package/dist/css/components/inputwrapper.css +1 -1
- package/dist/css/components/inputwrapper.min.css +1 -1
- package/dist/css/components/stepper.css +29 -1
- package/dist/css/components/stepper.min.css +1 -1
- package/dist/css/components/textinput.css +1 -1
- package/dist/css/components/textinput.min.css +1 -1
- package/dist/css/pkt-base.css +1 -1
- package/dist/css/pkt-base.min.css +1 -1
- package/dist/css/pkt-components.css +31 -3
- package/dist/css/pkt-components.min.css +1 -1
- package/dist/css/pkt-elements.css +3 -3
- package/dist/css/pkt-elements.min.css +1 -1
- package/dist/css/pkt.css +34 -6
- package/dist/css/pkt.min.css +1 -1
- package/dist/scss/abstracts/variables/_index.scss +1 -1
- package/dist/scss/components/_inputwrapper.scss +1 -1
- package/dist/scss/components/_stepper.scss +49 -2
- package/package.json +2 -2
|
@@ -221,9 +221,56 @@
|
|
|
221
221
|
}
|
|
222
222
|
}
|
|
223
223
|
|
|
224
|
-
//
|
|
225
|
-
.pkt-step--
|
|
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.
|
|
3
|
+
"version": "12.9.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": "
|
|
57
|
+
"gitHead": "285ab0b5f51f8dd6d8b4cda6d5902e0bdc52f855"
|
|
58
58
|
}
|