@oslokommune/punkt-css 17.0.6 → 17.0.8
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 +39 -0
- package/dist/css/components/tag.css +61 -45
- package/dist/css/components/tag.min.css +1 -1
- package/dist/css/pkt-base.css +13213 -13213
- package/dist/css/pkt-base.min.css +1 -1
- package/dist/css/pkt-components.css +61 -611
- package/dist/css/pkt-components.min.css +1 -1
- package/dist/css/pkt-docs.css +13240 -13467
- package/dist/css/pkt-docs.min.css +1 -1
- package/dist/css/pkt-elements.css +26 -72
- package/dist/css/pkt-elements.min.css +1 -1
- package/dist/css/pkt-grid.css +2232 -0
- package/dist/css/pkt-grid.min.css +1 -0
- package/dist/css/pkt-tokens.css +273 -0
- package/dist/css/pkt-tokens.min.css +1 -0
- package/dist/css/pkt-utilities.css +11335 -0
- package/dist/css/pkt-utilities.min.css +1 -0
- package/dist/css/pkt.css +13240 -13467
- package/dist/css/pkt.layer.css +24478 -0
- package/dist/css/pkt.layer.min.css +1 -0
- package/dist/css/pkt.min.css +1 -1
- package/dist/scss/base/_colors-tokens.scss +106 -0
- package/dist/scss/base/_colors-utilities.scss +43 -0
- package/dist/scss/base/_colors.scss +2 -144
- package/dist/scss/base/_index.scss +10 -3
- package/dist/scss/components/_index.scss +0 -2
- package/dist/scss/components/_tag.scss +37 -0
- package/dist/scss/elements/_index.scss +0 -1
- package/dist/scss/pkt-grid.scss +6 -0
- package/dist/scss/pkt-tokens.scss +5 -0
- package/dist/scss/pkt-utilities.scss +6 -0
- package/dist/scss/pkt.layer.scss +8 -0
- package/package.json +2 -2
- package/dist/css/components/preview.css +0 -180
- package/dist/css/components/preview.min.css +0 -1
- package/dist/css/components/textinput.css +0 -385
- package/dist/css/components/textinput.min.css +0 -1
- package/dist/css/elements/select.css +0 -419
- package/dist/css/elements/select.min.css +0 -1
- package/dist/scss/components/_preview.scss +0 -191
- package/dist/scss/components/_textinput.scss +0 -13
- package/dist/scss/elements/_select.scss +0 -13
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Colors
|
|
3
|
+
* Brand
|
|
4
|
+
* Light mode
|
|
5
|
+
* Dark mode
|
|
6
|
+
*/
|
|
7
|
+
|
|
8
|
+
@use '../abstracts/variables';
|
|
9
|
+
|
|
10
|
+
:root {
|
|
11
|
+
/**
|
|
12
|
+
* @tokens Colors
|
|
13
|
+
* @presenter Color
|
|
14
|
+
*/
|
|
15
|
+
// Brand
|
|
16
|
+
@each $name, $color in variables.$pkt-colors {
|
|
17
|
+
--pkt-color-#{$name}: #{$color};
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
// Semantic
|
|
21
|
+
@each $name, $color in variables.$pkt-semantic-colors {
|
|
22
|
+
--pkt-color-#{$name}: #{$color};
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
// Deprecated colors
|
|
26
|
+
@each $name, $color in variables.$colors {
|
|
27
|
+
--#{$name}: #{$color};
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
// Dark mode
|
|
31
|
+
&[data-mode='dark'],
|
|
32
|
+
[data-mode='dark'] {
|
|
33
|
+
// Background
|
|
34
|
+
--pkt-color-background-card: var(--pkt-color-grays-gray-700);
|
|
35
|
+
--pkt-color-background-default: var(--pkt-color-grays-gray-1000);
|
|
36
|
+
--pkt-color-background-subtle: var(--pkt-color-grays-gray-1000);
|
|
37
|
+
--pkt-color-background-transparent: var(--pkt-color-brand-neutrals-transparent);
|
|
38
|
+
|
|
39
|
+
// Borders
|
|
40
|
+
--pkt-color-border-default: var(--pkt-color-brand-neutrals-white);
|
|
41
|
+
--pkt-color-border-beige: var(--pkt-color-brand-dark-beige-1000);
|
|
42
|
+
--pkt-color-border-blue: var(--pkt-color-brand-blue-1000);
|
|
43
|
+
--pkt-color-border-green: var(--pkt-color-brand-green-1000);
|
|
44
|
+
--pkt-color-border-light-beige: var(--pkt-color-brand-light-beige-1000);
|
|
45
|
+
--pkt-color-border-red: var(--pkt-color-brand-red-1000);
|
|
46
|
+
--pkt-color-border-subtle: var(--pkt-color-brand-dark-blue-700);
|
|
47
|
+
--pkt-color-border-yellow: var(--pkt-color-brand-yellow-1000);
|
|
48
|
+
--pkt-color-border-states-active: var(--pkt-color-brand-blue-500);
|
|
49
|
+
--pkt-color-border-states-disabled: var(--pkt-color-grays-gray-500);
|
|
50
|
+
--pkt-color-border-states-focus: var(--pkt-color-brand-purple-1000);
|
|
51
|
+
--pkt-color-border-states-hover: var(--pkt-color-brand-blue-500);
|
|
52
|
+
|
|
53
|
+
// Surface
|
|
54
|
+
--pkt-color-surface-default-faded-green: var(--pkt-color-brand-light-green-400);
|
|
55
|
+
--pkt-color-surface-default-faded-red: var(--pkt-color-brand-red-400);
|
|
56
|
+
--pkt-color-surface-default-gray: var(--pkt-color-brand-neutrals-100);
|
|
57
|
+
--pkt-color-surface-default-light-beige: var(--pkt-color-brand-light-beige-1000);
|
|
58
|
+
--pkt-color-surface-default-light-blue: var(--pkt-color-brand-blue-300);
|
|
59
|
+
--pkt-color-surface-default-light-green: var(--pkt-color-brand-green-400);
|
|
60
|
+
--pkt-color-surface-default-red: var(--pkt-color-brand-red-600);
|
|
61
|
+
--pkt-color-surface-default-yellow: var(--pkt-color-brand-yellow-500);
|
|
62
|
+
--pkt-color-surface-strong-beige: var(--pkt-color-brand-dark-beige-1000);
|
|
63
|
+
--pkt-color-surface-strong-blue: var(--pkt-color-brand-blue-1000);
|
|
64
|
+
--pkt-color-surface-strong-dark-blue: var(--pkt-color-brand-dark-blue-1000);
|
|
65
|
+
--pkt-color-surface-strong-dark-green: var(--pkt-color-brand-dark-green-1000);
|
|
66
|
+
--pkt-color-surface-strong-gray: var(--pkt-color-brand-neutrals-200);
|
|
67
|
+
--pkt-color-surface-strong-green: var(--pkt-color-brand-green-1000);
|
|
68
|
+
--pkt-color-surface-strong-light-green: var(--pkt-color-brand-light-green-1000);
|
|
69
|
+
--pkt-color-surface-strong-red: var(--pkt-color-brand-red-1000);
|
|
70
|
+
--pkt-color-surface-strong-yellow: var(--pkt-color-brand-yellow-1000);
|
|
71
|
+
--pkt-color-surface-subtle-light-blue: var(--pkt-color-brand-blue-200);
|
|
72
|
+
--pkt-color-surface-subtle-light-red: var(--pkt-color-brand-red-100);
|
|
73
|
+
--pkt-color-surface-subtle-pale-blue: var(--pkt-color-brand-blue-100);
|
|
74
|
+
--pkt-color-surface-subtle-white: var(--pkt-color-brand-neutrals-white);
|
|
75
|
+
|
|
76
|
+
// Text
|
|
77
|
+
--pkt-color-text-body-dark: var(--pkt-color-brand-dark-blue-1000);
|
|
78
|
+
--pkt-color-text-body-default: var(--pkt-color-brand-neutrals-white);
|
|
79
|
+
--pkt-color-text-body-light: var(--pkt-color-brand-neutrals-white);
|
|
80
|
+
--pkt-color-text-placeholder: var(--pkt-color-grays-gray-300);
|
|
81
|
+
--pkt-color-text-action-disabled: var(--pkt-color-grays-gray-200);
|
|
82
|
+
--pkt-color-text-action-active: var(--pkt-color-brand-blue-500);
|
|
83
|
+
--pkt-color-text-action-hover: var(--pkt-color-brand-blue-500);
|
|
84
|
+
--pkt-color-text-action-normal: var(--pkt-color-brand-neutrals-white);
|
|
85
|
+
|
|
86
|
+
// Input (shared)
|
|
87
|
+
--pkt-color-input-background-normal: var(--pkt-color-brand-neutrals-white);
|
|
88
|
+
--pkt-color-input-border-active: var(--pkt-color-brand-blue-500);
|
|
89
|
+
--pkt-color-input-border-disabled: var(--pkt-color-grays-gray-200);
|
|
90
|
+
--pkt-color-input-border-error: var(--pkt-color-brand-red-1000);
|
|
91
|
+
--pkt-color-input-border-hover: var(--pkt-color-brand-blue-500);
|
|
92
|
+
--pkt-color-input-border-normal: var(--pkt-color-brand-neutrals-white);
|
|
93
|
+
--pkt-color-input-text-active: var(--pkt-color-brand-warm-blue-1000);
|
|
94
|
+
--pkt-color-input-text-disabled: var(--pkt-color-grays-gray-200);
|
|
95
|
+
--pkt-color-input-text-hover: var(--pkt-color-brand-warm-blue-1000);
|
|
96
|
+
--pkt-color-input-text-normal: var(--pkt-color-brand-dark-blue-1000);
|
|
97
|
+
--pkt-color-input-text-error: var(--pkt-color-brand-red-1000);
|
|
98
|
+
--pkt-color-input-text-open: var(--pkt-color-brand-dark-blue-1000);
|
|
99
|
+
|
|
100
|
+
// Input - Checkbox/Radio specific
|
|
101
|
+
--pkt-color-input-check-background: var(--pkt-color-brand-dark-blue-1000);
|
|
102
|
+
--pkt-color-input-check-border: var(--pkt-color-brand-neutrals-white);
|
|
103
|
+
--pkt-color-input-check-text-active: var(--pkt-color-brand-blue-500);
|
|
104
|
+
--pkt-color-input-check-text-hover: var(--pkt-color-brand-blue-500);
|
|
105
|
+
}
|
|
106
|
+
}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
// Colors
|
|
2
|
+
// Hjelpeklasser
|
|
3
|
+
|
|
4
|
+
@use '../abstracts/variables';
|
|
5
|
+
|
|
6
|
+
@each $name, $color in variables.$pkt-colors {
|
|
7
|
+
.pkt-color-bg-#{$name} {
|
|
8
|
+
background-color: $color !important;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
.pkt-color-txt-#{$name} {
|
|
12
|
+
color: $color !important;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
.pkt-color-border-#{$name} {
|
|
16
|
+
border-color: $color !important;
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
@each $name, $color in variables.$pkt-semantic-colors {
|
|
21
|
+
.pkt-color-bg-#{$name} {
|
|
22
|
+
background-color: var(--pkt-color-#{$name}) !important;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
.pkt-color-txt-#{$name} {
|
|
26
|
+
color: var(--pkt-color-#{$name}) !important;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
.pkt-color-border-#{$name} {
|
|
30
|
+
border-color: var(--pkt-color-#{$name}) !important;
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
// Deprecated
|
|
35
|
+
@each $name, $color in variables.$colors {
|
|
36
|
+
.bg-#{$name} {
|
|
37
|
+
background-color: $color !important;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
.txt-#{$name} {
|
|
41
|
+
color: $color !important;
|
|
42
|
+
}
|
|
43
|
+
}
|
|
@@ -1,144 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
* Brand
|
|
4
|
-
* Light mode
|
|
5
|
-
* Dark mode
|
|
6
|
-
*/
|
|
7
|
-
|
|
8
|
-
@use '../abstracts/variables';
|
|
9
|
-
|
|
10
|
-
:root {
|
|
11
|
-
/**
|
|
12
|
-
* @tokens Colors
|
|
13
|
-
* @presenter Color
|
|
14
|
-
*/
|
|
15
|
-
// Brand
|
|
16
|
-
@each $name, $color in variables.$pkt-colors {
|
|
17
|
-
--pkt-color-#{$name}: #{$color};
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
// Semantic
|
|
21
|
-
@each $name, $color in variables.$pkt-semantic-colors {
|
|
22
|
-
--pkt-color-#{$name}: #{$color};
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
// Deprecated colors
|
|
26
|
-
@each $name, $color in variables.$colors {
|
|
27
|
-
--#{$name}: #{$color};
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
// Dark mode
|
|
31
|
-
&[data-mode='dark'],
|
|
32
|
-
[data-mode='dark'] {
|
|
33
|
-
// Background
|
|
34
|
-
--pkt-color-background-card: var(--pkt-color-grays-gray-700);
|
|
35
|
-
--pkt-color-background-default: var(--pkt-color-grays-gray-1000);
|
|
36
|
-
--pkt-color-background-subtle: var(--pkt-color-grays-gray-1000);
|
|
37
|
-
--pkt-color-background-transparent: var(--pkt-color-brand-neutrals-transparent);
|
|
38
|
-
|
|
39
|
-
// Borders
|
|
40
|
-
--pkt-color-border-default: var(--pkt-color-brand-neutrals-white);
|
|
41
|
-
--pkt-color-border-beige: var(--pkt-color-brand-dark-beige-1000);
|
|
42
|
-
--pkt-color-border-blue: var(--pkt-color-brand-blue-1000);
|
|
43
|
-
--pkt-color-border-green: var(--pkt-color-brand-green-1000);
|
|
44
|
-
--pkt-color-border-light-beige: var(--pkt-color-brand-light-beige-1000);
|
|
45
|
-
--pkt-color-border-red: var(--pkt-color-brand-red-1000);
|
|
46
|
-
--pkt-color-border-subtle: var(--pkt-color-brand-dark-blue-700);
|
|
47
|
-
--pkt-color-border-yellow: var(--pkt-color-brand-yellow-1000);
|
|
48
|
-
--pkt-color-border-states-active: var(--pkt-color-brand-blue-500);
|
|
49
|
-
--pkt-color-border-states-disabled: var(--pkt-color-grays-gray-500);
|
|
50
|
-
--pkt-color-border-states-focus: var(--pkt-color-brand-purple-1000);
|
|
51
|
-
--pkt-color-border-states-hover: var(--pkt-color-brand-blue-500);
|
|
52
|
-
// Surface
|
|
53
|
-
--pkt-color-surface-default-faded-green: var(--pkt-color-brand-light-green-400);
|
|
54
|
-
--pkt-color-surface-default-faded-red: var(--pkt-color-brand-red-400);
|
|
55
|
-
--pkt-color-surface-default-gray: var(--pkt-color-brand-neutrals-100);
|
|
56
|
-
--pkt-color-surface-default-light-beige: var(--pkt-color-brand-light-beige-1000);
|
|
57
|
-
--pkt-color-surface-default-light-blue: var(--pkt-color-brand-blue-300);
|
|
58
|
-
--pkt-color-surface-default-light-green: var(--pkt-color-brand-green-400);
|
|
59
|
-
--pkt-color-surface-default-red: var(--pkt-color-brand-red-600);
|
|
60
|
-
--pkt-color-surface-default-yellow: var(--pkt-color-brand-yellow-500);
|
|
61
|
-
--pkt-color-surface-strong-beige: var(--pkt-color-brand-dark-beige-1000);
|
|
62
|
-
--pkt-color-surface-strong-blue: var(--pkt-color-brand-blue-1000);
|
|
63
|
-
--pkt-color-surface-strong-dark-blue: var(--pkt-color-brand-dark-blue-1000);
|
|
64
|
-
--pkt-color-surface-strong-dark-green: var(--pkt-color-brand-dark-green-1000);
|
|
65
|
-
--pkt-color-surface-strong-gray: var(--pkt-color-brand-neutrals-200);
|
|
66
|
-
--pkt-color-surface-strong-green: var(--pkt-color-brand-green-1000);
|
|
67
|
-
--pkt-color-surface-strong-light-green: var(--pkt-color-brand-light-green-1000);
|
|
68
|
-
--pkt-color-surface-strong-red: var(--pkt-color-brand-red-1000);
|
|
69
|
-
--pkt-color-surface-strong-yellow: var(--pkt-color-brand-yellow-1000);
|
|
70
|
-
--pkt-color-surface-subtle-light-blue: var(--pkt-color-brand-blue-200);
|
|
71
|
-
--pkt-color-surface-subtle-light-red: var(--pkt-color-brand-red-100);
|
|
72
|
-
--pkt-color-surface-subtle-pale-blue: var(--pkt-color-brand-blue-100);
|
|
73
|
-
--pkt-color-surface-subtle-white: var(--pkt-color-brand-neutrals-white);
|
|
74
|
-
|
|
75
|
-
// Text
|
|
76
|
-
--pkt-color-text-body-dark: var(--pkt-color-brand-dark-blue-1000);
|
|
77
|
-
--pkt-color-text-body-default: var(--pkt-color-brand-neutrals-white);
|
|
78
|
-
--pkt-color-text-body-light: var(--pkt-color-brand-neutrals-white);
|
|
79
|
-
--pkt-color-text-placeholder: var(--pkt-color-grays-gray-300);
|
|
80
|
-
--pkt-color-text-action-disabled: var(--pkt-color-grays-gray-200);
|
|
81
|
-
--pkt-color-text-action-active: var(--pkt-color-brand-blue-500);
|
|
82
|
-
--pkt-color-text-action-hover: var(--pkt-color-brand-blue-500);
|
|
83
|
-
--pkt-color-text-action-normal: var(--pkt-color-brand-neutrals-white);
|
|
84
|
-
|
|
85
|
-
// Input (shared)
|
|
86
|
-
--pkt-color-input-background-normal: var(--pkt-color-brand-neutrals-white);
|
|
87
|
-
--pkt-color-input-border-active: var(--pkt-color-brand-blue-500);
|
|
88
|
-
--pkt-color-input-border-disabled: var(--pkt-color-grays-gray-200);
|
|
89
|
-
--pkt-color-input-border-error: var(--pkt-color-brand-red-1000);
|
|
90
|
-
--pkt-color-input-border-hover: var(--pkt-color-brand-blue-500);
|
|
91
|
-
--pkt-color-input-border-normal: var(--pkt-color-brand-neutrals-white);
|
|
92
|
-
--pkt-color-input-text-active: var(--pkt-color-brand-warm-blue-1000);
|
|
93
|
-
--pkt-color-input-text-disabled: var(--pkt-color-grays-gray-200);
|
|
94
|
-
--pkt-color-input-text-hover: var(--pkt-color-brand-warm-blue-1000);
|
|
95
|
-
--pkt-color-input-text-normal: var(--pkt-color-brand-dark-blue-1000);
|
|
96
|
-
--pkt-color-input-text-error: var(--pkt-color-brand-red-1000);
|
|
97
|
-
--pkt-color-input-text-open: var(--pkt-color-brand-dark-blue-1000);
|
|
98
|
-
|
|
99
|
-
// Input - Checkbox/Radio specific
|
|
100
|
-
--pkt-color-input-check-background: var(--pkt-color-brand-dark-blue-1000);
|
|
101
|
-
--pkt-color-input-check-border: var(--pkt-color-brand-neutrals-white);
|
|
102
|
-
--pkt-color-input-check-text-active: var(--pkt-color-brand-blue-500);
|
|
103
|
-
--pkt-color-input-check-text-hover: var(--pkt-color-brand-blue-500);
|
|
104
|
-
}
|
|
105
|
-
}
|
|
106
|
-
|
|
107
|
-
@each $name, $color in variables.$pkt-colors {
|
|
108
|
-
.pkt-color-bg-#{$name} {
|
|
109
|
-
background-color: $color !important;
|
|
110
|
-
}
|
|
111
|
-
|
|
112
|
-
.pkt-color-txt-#{$name} {
|
|
113
|
-
color: $color !important;
|
|
114
|
-
}
|
|
115
|
-
|
|
116
|
-
.pkt-color-border-#{$name} {
|
|
117
|
-
border-color: $color !important;
|
|
118
|
-
}
|
|
119
|
-
}
|
|
120
|
-
|
|
121
|
-
@each $name, $color in variables.$pkt-semantic-colors {
|
|
122
|
-
.pkt-color-bg-#{$name} {
|
|
123
|
-
background-color: var(--pkt-color-#{$name}) !important;
|
|
124
|
-
}
|
|
125
|
-
|
|
126
|
-
.pkt-color-txt-#{$name} {
|
|
127
|
-
color: var(--pkt-color-#{$name}) !important;
|
|
128
|
-
}
|
|
129
|
-
|
|
130
|
-
.pkt-color-border-#{$name} {
|
|
131
|
-
border-color: var(--pkt-color-#{$name}) !important;
|
|
132
|
-
}
|
|
133
|
-
}
|
|
134
|
-
|
|
135
|
-
// Deprecated
|
|
136
|
-
@each $name, $color in variables.$colors {
|
|
137
|
-
.bg-#{$name} {
|
|
138
|
-
background-color: $color !important;
|
|
139
|
-
}
|
|
140
|
-
|
|
141
|
-
.txt-#{$name} {
|
|
142
|
-
color: $color !important;
|
|
143
|
-
}
|
|
144
|
-
}
|
|
1
|
+
@forward 'colors-tokens';
|
|
2
|
+
@forward 'colors-utilities';
|
|
@@ -1,10 +1,17 @@
|
|
|
1
|
+
// tokens → reset → typograhy → grid → utilities → a11y.
|
|
2
|
+
// Utilities ligger sist med vilje, så de vinner på spesifisitet når !important fjernes senere
|
|
1
3
|
@forward 'oslo-sans';
|
|
2
|
-
@forward 'colors';
|
|
4
|
+
@forward 'colors-tokens';
|
|
5
|
+
|
|
3
6
|
@forward 'defaults';
|
|
4
|
-
@forward '
|
|
7
|
+
@forward 'typography';
|
|
8
|
+
|
|
5
9
|
@forward 'containers';
|
|
6
10
|
@forward 'grid';
|
|
7
|
-
@forward 'typography';
|
|
8
11
|
@forward 'layouts';
|
|
12
|
+
|
|
13
|
+
@forward 'colors-utilities';
|
|
14
|
+
@forward 'spacing';
|
|
9
15
|
@forward 'visibility';
|
|
16
|
+
|
|
10
17
|
@forward 'accessibility';
|
|
@@ -24,7 +24,6 @@
|
|
|
24
24
|
@forward 'loader';
|
|
25
25
|
@forward 'modal';
|
|
26
26
|
@forward 'messagebox';
|
|
27
|
-
@forward 'preview';
|
|
28
27
|
@forward 'progressbar';
|
|
29
28
|
@forward 'searchinput';
|
|
30
29
|
@forward 'skiplink';
|
|
@@ -33,6 +32,5 @@
|
|
|
33
32
|
@forward 'tag';
|
|
34
33
|
@forward 'tag';
|
|
35
34
|
@forward 'teaserlist';
|
|
36
|
-
@forward 'textinput';
|
|
37
35
|
@forward 'textarea';
|
|
38
36
|
@forward 'timepicker';
|
|
@@ -29,8 +29,22 @@ pkt-tag > .pkt-tag {
|
|
|
29
29
|
display: flex;
|
|
30
30
|
}
|
|
31
31
|
|
|
32
|
+
button.pkt-tag {
|
|
33
|
+
appearance: none;
|
|
34
|
+
border-radius: 0;
|
|
35
|
+
cursor: pointer;
|
|
36
|
+
font-family: inherit;
|
|
37
|
+
justify-content: center;
|
|
38
|
+
text-align: left;
|
|
39
|
+
text-decoration: none;
|
|
40
|
+
text-decoration-thickness: 1px;
|
|
41
|
+
text-underline-offset: 0.3em;
|
|
42
|
+
user-select: none;
|
|
43
|
+
}
|
|
44
|
+
|
|
32
45
|
.pkt-tag {
|
|
33
46
|
width: fit-content;
|
|
47
|
+
vertical-align: middle;
|
|
34
48
|
background: var(--pkt-color-surface-default-light-blue);
|
|
35
49
|
padding: 0 map.get(variables.$spacing, 'size-8');
|
|
36
50
|
display: inline-flex;
|
|
@@ -51,6 +65,7 @@ pkt-tag > .pkt-tag {
|
|
|
51
65
|
}
|
|
52
66
|
|
|
53
67
|
&.pkt-btn:hover,
|
|
68
|
+
&:is(button):hover,
|
|
54
69
|
&.pkt-tag--hover {
|
|
55
70
|
background-color: var(--pkt-color-surface-strong-blue);
|
|
56
71
|
color: var(--pkt-color-tag-text-hover);
|
|
@@ -63,6 +78,7 @@ pkt-tag > .pkt-tag {
|
|
|
63
78
|
}
|
|
64
79
|
|
|
65
80
|
&.pkt-btn:focus,
|
|
81
|
+
&:is(button):focus,
|
|
66
82
|
&.pkt-tag--focus {
|
|
67
83
|
background-color: var(--pkt-color-surface-strong-blue);
|
|
68
84
|
border-color: var(--pkt-color-text-action-active);
|
|
@@ -75,6 +91,7 @@ pkt-tag > .pkt-tag {
|
|
|
75
91
|
}
|
|
76
92
|
|
|
77
93
|
&.pkt-btn:active,
|
|
94
|
+
&:is(button):active,
|
|
78
95
|
&.pkt-tag--active,
|
|
79
96
|
&.pkt-tag--active:hover {
|
|
80
97
|
background-color: var(--pkt-color-surface-strong-blue);
|
|
@@ -103,6 +120,7 @@ pkt-tag > .pkt-tag {
|
|
|
103
120
|
background: var(--pkt-color-surface-strong-light-green);
|
|
104
121
|
|
|
105
122
|
&.pkt-btn:hover,
|
|
123
|
+
&:is(button):hover,
|
|
106
124
|
&.pkt-tag--hover {
|
|
107
125
|
background-color: var(--pkt-color-surface-strong-green);
|
|
108
126
|
color: var(--pkt-color-tag-text-hover);
|
|
@@ -113,6 +131,7 @@ pkt-tag > .pkt-tag {
|
|
|
113
131
|
}
|
|
114
132
|
|
|
115
133
|
&.pkt-btn:focus,
|
|
134
|
+
&:is(button):focus,
|
|
116
135
|
&.pkt-tag--focus {
|
|
117
136
|
background-color: var(--pkt-color-surface-strong-green);
|
|
118
137
|
color: var(--pkt-color-tag-text-focus);
|
|
@@ -123,6 +142,7 @@ pkt-tag > .pkt-tag {
|
|
|
123
142
|
}
|
|
124
143
|
|
|
125
144
|
&.pkt-btn:active,
|
|
145
|
+
&:is(button):active,
|
|
126
146
|
&.pkt-tag--active {
|
|
127
147
|
background-color: var(--pkt-color-surface-strong-green);
|
|
128
148
|
color: var(--pkt-color-tag-text-active);
|
|
@@ -137,6 +157,7 @@ pkt-tag > .pkt-tag {
|
|
|
137
157
|
background: var(--pkt-color-surface-default-yellow);
|
|
138
158
|
|
|
139
159
|
&.pkt-btn:hover,
|
|
160
|
+
&:is(button):hover,
|
|
140
161
|
&.pkt-tag--hover {
|
|
141
162
|
background-color: var(--pkt-color-surface-strong-yellow);
|
|
142
163
|
color: var(--pkt-color-tag-text-hover);
|
|
@@ -147,6 +168,7 @@ pkt-tag > .pkt-tag {
|
|
|
147
168
|
}
|
|
148
169
|
|
|
149
170
|
&.pkt-btn:focus,
|
|
171
|
+
&:is(button):focus,
|
|
150
172
|
&.pkt-tag--focus {
|
|
151
173
|
background-color: var(--pkt-color-surface-strong-yellow);
|
|
152
174
|
color: var(--pkt-color-tag-text-focus);
|
|
@@ -157,6 +179,7 @@ pkt-tag > .pkt-tag {
|
|
|
157
179
|
}
|
|
158
180
|
|
|
159
181
|
&.pkt-btn:active,
|
|
182
|
+
&:is(button):active,
|
|
160
183
|
&.pkt-tag--active {
|
|
161
184
|
background-color: var(--pkt-color-surface-strong-yellow);
|
|
162
185
|
color: var(--pkt-color-tag-text-active);
|
|
@@ -171,6 +194,7 @@ pkt-tag > .pkt-tag {
|
|
|
171
194
|
background: var(--pkt-color-surface-default-red);
|
|
172
195
|
|
|
173
196
|
&.pkt-btn:hover,
|
|
197
|
+
&:is(button):hover,
|
|
174
198
|
&.pkt-tag--hover {
|
|
175
199
|
background-color: var(--pkt-color-surface-strong-red);
|
|
176
200
|
color: var(--pkt-color-tag-text-hover);
|
|
@@ -181,6 +205,7 @@ pkt-tag > .pkt-tag {
|
|
|
181
205
|
}
|
|
182
206
|
|
|
183
207
|
&.pkt-btn:focus,
|
|
208
|
+
&:is(button):focus,
|
|
184
209
|
&.pkt-tag--focus {
|
|
185
210
|
background-color: var(--pkt-color-surface-strong-red);
|
|
186
211
|
color: var(--pkt-color-tag-text-focus);
|
|
@@ -191,6 +216,7 @@ pkt-tag > .pkt-tag {
|
|
|
191
216
|
}
|
|
192
217
|
|
|
193
218
|
&.pkt-btn:active,
|
|
219
|
+
&:is(button):active,
|
|
194
220
|
&.pkt-tag--active {
|
|
195
221
|
background-color: var(--pkt-color-surface-strong-red);
|
|
196
222
|
color: var(--pkt-color-tag-text-active);
|
|
@@ -205,6 +231,7 @@ pkt-tag > .pkt-tag {
|
|
|
205
231
|
background: var(--pkt-color-surface-default-light-beige);
|
|
206
232
|
|
|
207
233
|
&.pkt-btn:hover,
|
|
234
|
+
&:is(button):hover,
|
|
208
235
|
&.pkt-tag--hover {
|
|
209
236
|
background-color: var(--pkt-color-surface-strong-beige);
|
|
210
237
|
color: var(--pkt-color-tag-text-hover);
|
|
@@ -215,6 +242,7 @@ pkt-tag > .pkt-tag {
|
|
|
215
242
|
}
|
|
216
243
|
|
|
217
244
|
&.pkt-btn:focus,
|
|
245
|
+
&:is(button):focus,
|
|
218
246
|
&.pkt-tag--focus {
|
|
219
247
|
background-color: var(--pkt-color-surface-strong-beige);
|
|
220
248
|
color: var(--pkt-color-tag-text-focus);
|
|
@@ -225,6 +253,7 @@ pkt-tag > .pkt-tag {
|
|
|
225
253
|
}
|
|
226
254
|
|
|
227
255
|
&.pkt-btn:active,
|
|
256
|
+
&:is(button):active,
|
|
228
257
|
&.pkt-tag--active {
|
|
229
258
|
background-color: var(--pkt-color-surface-strong-beige);
|
|
230
259
|
color: var(--pkt-color-tag-text-active);
|
|
@@ -240,6 +269,7 @@ pkt-tag > .pkt-tag {
|
|
|
240
269
|
background: var(--pkt-color-surface-default-gray);
|
|
241
270
|
|
|
242
271
|
&.pkt-btn:hover,
|
|
272
|
+
&:is(button):hover,
|
|
243
273
|
&.pkt-tag--hover {
|
|
244
274
|
background-color: var(--pkt-color-surface-strong-gray);
|
|
245
275
|
color: var(--pkt-color-tag-text-hover);
|
|
@@ -250,6 +280,7 @@ pkt-tag > .pkt-tag {
|
|
|
250
280
|
}
|
|
251
281
|
|
|
252
282
|
&.pkt-btn:focus,
|
|
283
|
+
&:is(button):focus,
|
|
253
284
|
&.pkt-tag--focus {
|
|
254
285
|
background-color: var(--pkt-color-surface-strong-gray);
|
|
255
286
|
color: var(--pkt-color-tag-text-active);
|
|
@@ -260,6 +291,7 @@ pkt-tag > .pkt-tag {
|
|
|
260
291
|
}
|
|
261
292
|
|
|
262
293
|
&.pkt-btn:active,
|
|
294
|
+
&:is(button):active,
|
|
263
295
|
&.pkt-tag--active {
|
|
264
296
|
background-color: var(--pkt-color-surface-strong-gray);
|
|
265
297
|
color: var(--pkt-color-tag-text-active);
|
|
@@ -274,6 +306,7 @@ pkt-tag > .pkt-tag {
|
|
|
274
306
|
background: var(--pkt-color-surface-subtle-light-blue);
|
|
275
307
|
|
|
276
308
|
&.pkt-btn:hover,
|
|
309
|
+
&:is(button):hover,
|
|
277
310
|
&.pkt-tag--hover {
|
|
278
311
|
background-color: var(--pkt-color-surface-strong-blue);
|
|
279
312
|
color: var(--pkt-color-tag-text-hover);
|
|
@@ -284,6 +317,7 @@ pkt-tag > .pkt-tag {
|
|
|
284
317
|
}
|
|
285
318
|
|
|
286
319
|
&.pkt-btn:focus,
|
|
320
|
+
&:is(button):focus,
|
|
287
321
|
&.pkt-tag--focus {
|
|
288
322
|
background-color: var(--pkt-color-surface-strong-blue);
|
|
289
323
|
color: var(--pkt-color-tag-text-focus);
|
|
@@ -294,6 +328,7 @@ pkt-tag > .pkt-tag {
|
|
|
294
328
|
}
|
|
295
329
|
|
|
296
330
|
&.pkt-btn:active,
|
|
331
|
+
&:is(button):active,
|
|
297
332
|
&.pkt-tag--active {
|
|
298
333
|
background-color: var(--pkt-color-surface-strong-blue);
|
|
299
334
|
color: var(--pkt-color-tag-text-active);
|
|
@@ -310,7 +345,9 @@ pkt-tag > .pkt-tag {
|
|
|
310
345
|
--fg-color: var(--pkt-color-brand-neutrals-200);
|
|
311
346
|
|
|
312
347
|
&.pkt-btn:hover,
|
|
348
|
+
&:is(button):hover,
|
|
313
349
|
&.pkt-btn:focus,
|
|
350
|
+
&:is(button):focus,
|
|
314
351
|
&.pkt-tag--hover {
|
|
315
352
|
background-color: var(--pkt-color-brand-warm-blue-1000) !important;
|
|
316
353
|
color: var(--pkt-color-brand-neutrals-200) !important;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@oslokommune/punkt-css",
|
|
3
|
-
"version": "17.0.
|
|
3
|
+
"version": "17.0.8",
|
|
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",
|
|
@@ -62,5 +62,5 @@
|
|
|
62
62
|
"dependencies": {
|
|
63
63
|
"astro": "^7.2.0"
|
|
64
64
|
},
|
|
65
|
-
"gitHead": "
|
|
65
|
+
"gitHead": "e755eac6123dd25b4f93b1de4cc8febe170eee2d"
|
|
66
66
|
}
|