@oslokommune/punkt-css 11.13.2 → 11.13.9
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 +36 -0
- package/dist/css/components/inputwrapper.css +11 -13
- package/dist/css/components/inputwrapper.min.css +1 -1
- package/dist/css/components/messagebox.css +14 -2
- package/dist/css/components/messagebox.min.css +1 -1
- package/dist/css/pkt-components.css +25 -15
- package/dist/css/pkt-components.min.css +1 -1
- package/dist/css/pkt.css +25 -15
- package/dist/css/pkt.min.css +1 -1
- package/dist/scss/components/_inputwrapper.scss +12 -13
- package/dist/scss/components/_messagebox.scss +20 -4
- package/package.json +2 -2
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
gap: map.get(variables.$spacing, 'size-8');
|
|
14
14
|
color: var(--pkt-color-text-body-default);
|
|
15
15
|
|
|
16
|
-
>h2 {
|
|
16
|
+
> h2 {
|
|
17
17
|
font-size: inherit;
|
|
18
18
|
font-weight: inherit;
|
|
19
19
|
letter-spacing: inherit;
|
|
@@ -28,7 +28,17 @@
|
|
|
28
28
|
@include typography.get-text('pkt-txt-14-light');
|
|
29
29
|
color: var(--pkt-color-text-body-default);
|
|
30
30
|
|
|
31
|
-
|
|
31
|
+
> .pkt-btn,
|
|
32
|
+
&-expandable .pkt-btn {
|
|
33
|
+
@include typography.get-text('pkt-txt-14-light');
|
|
34
|
+
padding: 0;
|
|
35
|
+
height: auto;
|
|
36
|
+
display: inline-flex;
|
|
37
|
+
text-align: left;
|
|
38
|
+
align-items: center;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
> * {
|
|
32
42
|
&:first-child {
|
|
33
43
|
margin-top: 0;
|
|
34
44
|
}
|
|
@@ -39,10 +49,6 @@
|
|
|
39
49
|
}
|
|
40
50
|
|
|
41
51
|
&-expandable {
|
|
42
|
-
display: inline-flex;
|
|
43
|
-
text-align: left;
|
|
44
|
-
align-items: center;
|
|
45
|
-
|
|
46
52
|
&-heading {
|
|
47
53
|
@include typography.get-text('pkt-txt-18-medium');
|
|
48
54
|
margin: 0;
|
|
@@ -111,14 +117,7 @@
|
|
|
111
117
|
margin-left: 8px;
|
|
112
118
|
}
|
|
113
119
|
|
|
114
|
-
.pkt-btn {
|
|
115
|
-
@include typography.get-text('pkt-txt-14-light');
|
|
116
|
-
padding: 0;
|
|
117
|
-
height: auto;
|
|
118
|
-
}
|
|
119
|
-
|
|
120
120
|
&--error {
|
|
121
|
-
|
|
122
121
|
.pkt-input,
|
|
123
122
|
.pkt-input-prefix,
|
|
124
123
|
.pkt-input-suffix,
|
|
@@ -38,18 +38,23 @@ $-border-thickness: map.get(variables.$spacing, 'size-4');
|
|
|
38
38
|
.#{$-module-name} {
|
|
39
39
|
padding: $-messagebox-spacing $-messagebox-spacing $-messagebox-spacing
|
|
40
40
|
calc($-messagebox-spacing - $-border-thickness);
|
|
41
|
-
|
|
42
|
-
|
|
41
|
+
|
|
42
|
+
display: grid;
|
|
43
|
+
grid-template-areas: 'title close' 'text text';
|
|
44
|
+
grid-template-columns: auto 40px;
|
|
45
|
+
|
|
43
46
|
border-left: $-border-thickness solid var(--pkt-color-messagebox-bc);
|
|
44
47
|
background-color: var(--pkt-color-messagebox-bg);
|
|
45
48
|
color: var(--pkt-color-messagebox-txt);
|
|
46
49
|
|
|
47
50
|
&__title {
|
|
51
|
+
grid-area: title;
|
|
48
52
|
@include get-text('pkt-txt-24-medium');
|
|
49
53
|
margin: 0 0 $-messagebox-spacing 0;
|
|
50
54
|
}
|
|
51
55
|
|
|
52
56
|
&__text {
|
|
57
|
+
grid-area: text;
|
|
53
58
|
@include get-text('pkt-txt-18-light');
|
|
54
59
|
margin: 0;
|
|
55
60
|
|
|
@@ -61,12 +66,19 @@ $-border-thickness: map.get(variables.$spacing, 'size-4');
|
|
|
61
66
|
}
|
|
62
67
|
}
|
|
63
68
|
}
|
|
69
|
+
|
|
70
|
+
&__close {
|
|
71
|
+
grid-area: close;
|
|
72
|
+
|
|
73
|
+
& svg {
|
|
74
|
+
--fg-color: var(--pkt-color-alert-close-fg);
|
|
75
|
+
}
|
|
76
|
+
}
|
|
64
77
|
}
|
|
65
78
|
|
|
66
79
|
// Compact variant
|
|
67
80
|
.#{$-module-name}--compact {
|
|
68
|
-
padding: $-messagebox-spacing-compact $-messagebox-spacing-compact
|
|
69
|
-
$-messagebox-spacing-compact
|
|
81
|
+
padding: $-messagebox-spacing-compact $-messagebox-spacing-compact $-messagebox-spacing-compact
|
|
70
82
|
calc($-messagebox-spacing-compact - $-border-thickness);
|
|
71
83
|
.#{$-module-name}__title {
|
|
72
84
|
@include get-text('pkt-txt-16-medium');
|
|
@@ -75,4 +87,8 @@ $-border-thickness: map.get(variables.$spacing, 'size-4');
|
|
|
75
87
|
.#{$-module-name}__text {
|
|
76
88
|
@include get-text('pkt-txt-16-light');
|
|
77
89
|
}
|
|
90
|
+
|
|
91
|
+
.#{$-module-name}__close > .pkt-btn {
|
|
92
|
+
top: -15px;
|
|
93
|
+
}
|
|
78
94
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@oslokommune/punkt-css",
|
|
3
|
-
"version": "11.13.
|
|
3
|
+
"version": "11.13.9",
|
|
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",
|
|
@@ -55,5 +55,5 @@
|
|
|
55
55
|
"url": "https://github.com/oslokommune/punkt/issues"
|
|
56
56
|
},
|
|
57
57
|
"license": "MIT",
|
|
58
|
-
"gitHead": "
|
|
58
|
+
"gitHead": "c0476c2b76e167c83493b01a59f267aa0b0845b1"
|
|
59
59
|
}
|