@oslokommune/punkt-css 16.7.3 → 16.8.2
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/datepicker.css +1 -0
- package/dist/css/components/datepicker.min.css +1 -1
- package/dist/css/components/tabs.css +17 -7
- package/dist/css/components/tabs.min.css +1 -1
- package/dist/css/components/textinput.css +15 -15
- package/dist/css/components/textinput.min.css +1 -1
- package/dist/css/elements/checkbox-radio.css +3 -3
- package/dist/css/elements/checkbox-radio.min.css +1 -1
- package/dist/css/elements/input.css +14 -14
- package/dist/css/elements/input.min.css +1 -1
- package/dist/css/elements/select.css +18 -18
- package/dist/css/elements/select.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 +33 -22
- package/dist/css/pkt-components.min.css +1 -1
- package/dist/css/pkt-docs.css +41 -30
- package/dist/css/pkt-docs.min.css +1 -1
- package/dist/css/pkt-elements.css +21 -21
- package/dist/css/pkt-elements.min.css +1 -1
- package/dist/css/pkt.css +41 -30
- package/dist/css/pkt.min.css +1 -1
- package/dist/scss/abstracts/variables/_index.scss +1 -1
- package/dist/scss/components/_datepicker.scss +1 -0
- package/dist/scss/components/_tabs.scss +50 -27
- package/dist/scss/elements/_input.scss +26 -27
- package/package.json +2 -2
|
@@ -37,7 +37,7 @@ pkt-tab-item {
|
|
|
37
37
|
align-items: center;
|
|
38
38
|
gap: 0.5rem;
|
|
39
39
|
padding: 0.75rem 1rem;
|
|
40
|
-
color: var(--pkt-color-text-action-
|
|
40
|
+
color: var(--pkt-color-text-action-normal);
|
|
41
41
|
border-bottom: 0.25rem solid transparent;
|
|
42
42
|
white-space: nowrap;
|
|
43
43
|
@include typography.get-text('pkt-txt-16');
|
|
@@ -47,37 +47,60 @@ pkt-tab-item {
|
|
|
47
47
|
--fg-color: currentColor;
|
|
48
48
|
}
|
|
49
49
|
&,
|
|
50
|
-
&:
|
|
51
|
-
&:
|
|
52
|
-
text-decoration: none;
|
|
53
|
-
}
|
|
54
|
-
&:focus:not(:active),
|
|
55
|
-
&:focus-visible:not(:active) {
|
|
56
|
-
border: 0;
|
|
57
|
-
box-shadow: none;
|
|
58
|
-
background-color: var(--pkt-tabs-bg);
|
|
59
|
-
outline: 0.25rem solid var(--pkt-color-border-states-focus);
|
|
60
|
-
outline-offset: 0;
|
|
61
|
-
}
|
|
62
|
-
&.active:focus,
|
|
63
|
-
&.active:focus-visible {
|
|
64
|
-
box-shadow: none;
|
|
65
|
-
border-bottom: 0.25rem solid var(--pkt-color-border-blue);
|
|
66
|
-
}
|
|
50
|
+
&:link,
|
|
51
|
+
&:visited,
|
|
67
52
|
&:hover,
|
|
68
53
|
&:focus,
|
|
69
54
|
&:focus-visible,
|
|
70
|
-
&:focus-visible:is(:active),
|
|
71
|
-
&:focus:is(:active),
|
|
72
55
|
&:active {
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
56
|
+
text-decoration: none !important;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
&.pkt-tabs__item--disabled,
|
|
60
|
+
&:disabled {
|
|
61
|
+
color: var(--pkt-color-text-action-disabled);
|
|
62
|
+
border-bottom-color: transparent;
|
|
63
|
+
cursor: not-allowed;
|
|
64
|
+
|
|
65
|
+
&:hover,
|
|
66
|
+
&:focus,
|
|
67
|
+
&:focus-visible,
|
|
68
|
+
&:active {
|
|
69
|
+
color: var(--pkt-color-text-action-disabled);
|
|
70
|
+
border-bottom-color: transparent;
|
|
71
|
+
outline: 0;
|
|
72
|
+
}
|
|
76
73
|
}
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
74
|
+
|
|
75
|
+
// Prevent disabled tabs from inheriting interactive styles.
|
|
76
|
+
&:not(.pkt-tabs__item--disabled):not(:disabled) {
|
|
77
|
+
&:focus:not(:active),
|
|
78
|
+
&:focus-visible:not(:active) {
|
|
79
|
+
border: 0;
|
|
80
|
+
box-shadow: none;
|
|
81
|
+
background-color: var(--pkt-tabs-bg);
|
|
82
|
+
outline: 0.25rem solid var(--pkt-color-border-states-focus);
|
|
83
|
+
outline-offset: 0;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
&.active:focus,
|
|
87
|
+
&.active:focus-visible {
|
|
88
|
+
box-shadow: none;
|
|
89
|
+
border-bottom: 0.25rem solid var(--pkt-color-border-blue);
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
&:hover,
|
|
93
|
+
&:active {
|
|
94
|
+
outline: 0;
|
|
95
|
+
color: var(--pkt-color-text-action-active);
|
|
96
|
+
border-bottom: 0.25rem solid var(--pkt-color-border-states-hover);
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
&.active {
|
|
100
|
+
color: var(--pkt-color-text-action-normal);
|
|
101
|
+
border-bottom: 0.25rem solid var(--pkt-color-border-blue);
|
|
102
|
+
@include typography.get-text('pkt-txt-16-medium');
|
|
103
|
+
}
|
|
81
104
|
}
|
|
82
105
|
}
|
|
83
106
|
|
|
@@ -274,35 +274,34 @@ pkt-select {
|
|
|
274
274
|
}
|
|
275
275
|
}
|
|
276
276
|
}
|
|
277
|
-
|
|
278
|
-
&__range-inputs {
|
|
279
|
-
container: range / inline-size;
|
|
280
|
-
}
|
|
281
277
|
}
|
|
282
|
-
@
|
|
283
|
-
.pkt-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
278
|
+
@media screen and (max-width: 30rem) {
|
|
279
|
+
.pkt-input__range-inputs {
|
|
280
|
+
max-width: 100%;
|
|
281
|
+
.pkt-input__container {
|
|
282
|
+
border: 2px solid var(--pkt-color-input-border-normal);
|
|
283
|
+
display: grid;
|
|
284
|
+
grid-template-rows: auto auto;
|
|
285
|
+
grid-template-columns: auto 3rem;
|
|
286
|
+
gap: 0;
|
|
287
|
+
.pkt-input-prefix,
|
|
288
|
+
.pkt-input-suffix,
|
|
289
|
+
.pkt-input-icon,
|
|
290
|
+
.pkt-input {
|
|
291
|
+
border: 0;
|
|
292
|
+
}
|
|
293
|
+
.pkt-input-separator {
|
|
294
|
+
margin: 0 auto;
|
|
295
|
+
}
|
|
296
|
+
.pkt-input.pkt-datepicker__input.pkt-datepicker--range {
|
|
297
|
+
padding-left: 1rem;
|
|
298
|
+
}
|
|
300
299
|
}
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
300
|
+
.pkt-input__container:has(> :first-child.pkt-input-prefix) {
|
|
301
|
+
> :nth-child(2) {
|
|
302
|
+
grid-column-start: span 2;
|
|
303
|
+
}
|
|
304
|
+
grid-template-columns: min-content auto 3rem;
|
|
305
305
|
}
|
|
306
|
-
grid-template-columns: min-content auto 3rem;
|
|
307
306
|
}
|
|
308
307
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@oslokommune/punkt-css",
|
|
3
|
-
"version": "16.
|
|
3
|
+
"version": "16.8.2",
|
|
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",
|
|
@@ -60,5 +60,5 @@
|
|
|
60
60
|
"url": "https://github.com/oslokommune/punkt/issues"
|
|
61
61
|
},
|
|
62
62
|
"license": "MIT",
|
|
63
|
-
"gitHead": "
|
|
63
|
+
"gitHead": "1ff7d19b9d19c3b3e810dcee4bc3bd1d3fcc3610"
|
|
64
64
|
}
|