@oslokommune/punkt-css 11.9.0 → 11.9.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 +36 -0
- package/dist/css/components/alert.css +44 -0
- package/dist/css/components/alert.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 +44 -0
- package/dist/css/pkt-components.min.css +1 -1
- package/dist/css/pkt.css +44 -1
- package/dist/css/pkt.min.css +1 -1
- package/dist/scss/base/_defaults.scss +1 -1
- package/dist/scss/components/_alert.scss +53 -6
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,42 @@ og skriver commits ca etter [Conventional Commits](https://conventionalcommits.o
|
|
|
5
5
|
|
|
6
6
|
---
|
|
7
7
|
|
|
8
|
+
## [11.9.2](https://github.com/oslokommune/punkt/compare/11.9.1...11.9.2) (2024-03-12)
|
|
9
|
+
|
|
10
|
+
### ⚠ BREAKING CHANGES
|
|
11
|
+
Ingen
|
|
12
|
+
|
|
13
|
+
### Features
|
|
14
|
+
Ingen
|
|
15
|
+
|
|
16
|
+
### Bug Fixes
|
|
17
|
+
* I defaults skal overflow-y være auto, ikke scroll (#1582).
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
### Chores
|
|
21
|
+
Ingen
|
|
22
|
+
|
|
23
|
+
---
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
## [11.9.1](https://github.com/oslokommune/punkt/compare/11.9.0...11.9.1) (2024-03-12)
|
|
27
|
+
|
|
28
|
+
### ⚠ BREAKING CHANGES
|
|
29
|
+
Ingen
|
|
30
|
+
|
|
31
|
+
### Features
|
|
32
|
+
Ingen
|
|
33
|
+
|
|
34
|
+
### Bug Fixes
|
|
35
|
+
Ingen
|
|
36
|
+
|
|
37
|
+
### Chores
|
|
38
|
+
* Ny modus for Alert (#1581). Kode: PÅSKEFIGUR
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
---
|
|
42
|
+
|
|
43
|
+
|
|
8
44
|
## [11.9.0](https://github.com/oslokommune/punkt/compare/11.8.2...11.9.0) (2024-03-11)
|
|
9
45
|
|
|
10
46
|
### ⚠ BREAKING CHANGES
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
@charset "UTF-8";
|
|
1
2
|
/*
|
|
2
3
|
* Alert component
|
|
3
4
|
*/
|
|
@@ -24,6 +25,49 @@
|
|
|
24
25
|
--pkt-color-alert-bg: var(--pkt-color-surface-default-yellow);
|
|
25
26
|
}
|
|
26
27
|
|
|
28
|
+
.pkt-alert--🐣 {
|
|
29
|
+
--pkt-color-alert-bc: var(--pkt-color-border-yellow);
|
|
30
|
+
--pkt-color-alert-bg: white;
|
|
31
|
+
--angle: 0deg;
|
|
32
|
+
border: 0.25rem solid var(--pkt-color-alert-bc);
|
|
33
|
+
border-image: conic-gradient(from var(--angle), red, yellow, lime, aqua, blue, magenta, red) 1;
|
|
34
|
+
animation: 1s 🐣 linear infinite;
|
|
35
|
+
}
|
|
36
|
+
.pkt-alert--🐣 .pkt-alert__icon {
|
|
37
|
+
animation: 0.5s 🐰 linear infinite;
|
|
38
|
+
font-size: 2rem;
|
|
39
|
+
}
|
|
40
|
+
.pkt-alert--🐣.pkt-alert--compact .pkt-alert__icon {
|
|
41
|
+
font-size: 1.5rem;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
@keyframes 🐣 {
|
|
45
|
+
to {
|
|
46
|
+
--angle: 360deg;
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
@keyframes 🐰 {
|
|
50
|
+
0% {
|
|
51
|
+
transform: rotate(0deg);
|
|
52
|
+
}
|
|
53
|
+
25% {
|
|
54
|
+
transform: rotate(10deg);
|
|
55
|
+
}
|
|
56
|
+
50% {
|
|
57
|
+
transform: rotate(0eg);
|
|
58
|
+
}
|
|
59
|
+
75% {
|
|
60
|
+
transform: rotate(-10deg);
|
|
61
|
+
}
|
|
62
|
+
100% {
|
|
63
|
+
transform: rotate(0deg);
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
@property --angle {
|
|
67
|
+
syntax: "<angle>";
|
|
68
|
+
initial-value: 0deg;
|
|
69
|
+
inherits: false;
|
|
70
|
+
}
|
|
27
71
|
.pkt-alert {
|
|
28
72
|
padding: 1.5rem 1.5rem 1.5rem 1.25rem;
|
|
29
73
|
display: block;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.pkt-alert{--pkt-color-alert-bc: var(--pkt-color-border-blue);--pkt-color-alert-bg: var(--pkt-color-surface-default-light-blue);--pkt-color-alert-txt: var(--pkt-color-text-body-dark);--pkt-color-alert-icon-fg: var(--pkt-color-brand-dark-blue-1000);--pkt-color-alert-close-fg: var(--pkt-color-brand-dark-blue-1000)}.pkt-alert--error{--pkt-color-alert-bc: var(--pkt-color-border-red);--pkt-color-alert-bg: var(--pkt-color-surface-default-faded-red)}.pkt-alert--success{--pkt-color-alert-bc: var(--pkt-color-border-green);--pkt-color-alert-bg: var(--pkt-color-surface-default-light-green)}.pkt-alert--warning{--pkt-color-alert-bc: var(--pkt-color-border-yellow);--pkt-color-alert-bg: var(--pkt-color-surface-default-yellow)}.pkt-alert{padding:1.5rem 1.5rem 1.5rem 1.25rem;display:block;position:relative;border-left:.25rem solid var(--pkt-color-alert-bc);background-color:var(--pkt-color-alert-bg);color:var(--pkt-color-alert-txt)}.pkt-alert__title{font-size:1.125rem;font-weight:500;letter-spacing:-0.2px;line-height:1.75rem;margin:0 0 1.5rem 2.5rem}.pkt-alert__close~.pkt-alert__title{margin:0 4rem 1.5rem 2.5rem}.pkt-alert__text{font-size:1.125rem;font-weight:300;letter-spacing:-0.2px;line-height:1.75rem;margin:0 0 0 2.5rem}.pkt-alert__text p{margin-bottom:1rem}.pkt-alert__text p:first-of-type{margin-top:0}.pkt-alert__text p:last-of-type{margin-bottom:0}.pkt-alert__close+.pkt-alert__text{margin:0 4rem 0 2.5rem}.pkt-alert__title+.pkt-alert__text{margin-left:0;margin-right:0}.pkt-alert__date{font-size:.875rem;font-weight:300;letter-spacing:-0.2px;line-height:1.375rem;margin-top:1.5rem}.pkt-alert__icon{--fg-color: var(--pkt-color-alert-icon-fg);height:2rem;width:2rem;position:absolute;top:22px;left:20px}.pkt-alert__close{position:absolute;right:1.125rem;top:.625rem}.pkt-alert__close svg{--fg-color: var(--pkt-color-alert-close-fg)}.pkt-alert--compact{padding:.75rem 1rem .75rem .25rem}.pkt-alert--compact .pkt-alert__icon{width:1.375rem;height:1.375rem;top:.81rem;left:1.25rem}.pkt-alert--compact .pkt-alert__text{font-size:1rem;font-weight:300;letter-spacing:-0.2px;line-height:1.5rem;margin:0 2.875rem}.pkt-alert--compact .pkt-alert__close{top:.25rem}
|
|
1
|
+
.pkt-alert{--pkt-color-alert-bc: var(--pkt-color-border-blue);--pkt-color-alert-bg: var(--pkt-color-surface-default-light-blue);--pkt-color-alert-txt: var(--pkt-color-text-body-dark);--pkt-color-alert-icon-fg: var(--pkt-color-brand-dark-blue-1000);--pkt-color-alert-close-fg: var(--pkt-color-brand-dark-blue-1000)}.pkt-alert--error{--pkt-color-alert-bc: var(--pkt-color-border-red);--pkt-color-alert-bg: var(--pkt-color-surface-default-faded-red)}.pkt-alert--success{--pkt-color-alert-bc: var(--pkt-color-border-green);--pkt-color-alert-bg: var(--pkt-color-surface-default-light-green)}.pkt-alert--warning{--pkt-color-alert-bc: var(--pkt-color-border-yellow);--pkt-color-alert-bg: var(--pkt-color-surface-default-yellow)}.pkt-alert--🐣{--pkt-color-alert-bc: var(--pkt-color-border-yellow);--pkt-color-alert-bg: white;--angle: 0deg;border:.25rem solid var(--pkt-color-alert-bc);border-image:conic-gradient(from var(--angle), red, yellow, lime, aqua, blue, magenta, red) 1;animation:1s 🐣 linear infinite}.pkt-alert--🐣 .pkt-alert__icon{animation:.5s 🐰 linear infinite;font-size:2rem}.pkt-alert--🐣.pkt-alert--compact .pkt-alert__icon{font-size:1.5rem}@keyframes 🐣{to{--angle: 360deg}}@keyframes 🐰{0%{transform:rotate(0deg)}25%{transform:rotate(10deg)}50%{transform:rotate(0eg)}75%{transform:rotate(-10deg)}100%{transform:rotate(0deg)}}@property --angle{syntax:"<angle>";initial-value:0deg;inherits:false}.pkt-alert{padding:1.5rem 1.5rem 1.5rem 1.25rem;display:block;position:relative;border-left:.25rem solid var(--pkt-color-alert-bc);background-color:var(--pkt-color-alert-bg);color:var(--pkt-color-alert-txt)}.pkt-alert__title{font-size:1.125rem;font-weight:500;letter-spacing:-0.2px;line-height:1.75rem;margin:0 0 1.5rem 2.5rem}.pkt-alert__close~.pkt-alert__title{margin:0 4rem 1.5rem 2.5rem}.pkt-alert__text{font-size:1.125rem;font-weight:300;letter-spacing:-0.2px;line-height:1.75rem;margin:0 0 0 2.5rem}.pkt-alert__text p{margin-bottom:1rem}.pkt-alert__text p:first-of-type{margin-top:0}.pkt-alert__text p:last-of-type{margin-bottom:0}.pkt-alert__close+.pkt-alert__text{margin:0 4rem 0 2.5rem}.pkt-alert__title+.pkt-alert__text{margin-left:0;margin-right:0}.pkt-alert__date{font-size:.875rem;font-weight:300;letter-spacing:-0.2px;line-height:1.375rem;margin-top:1.5rem}.pkt-alert__icon{--fg-color: var(--pkt-color-alert-icon-fg);height:2rem;width:2rem;position:absolute;top:22px;left:20px}.pkt-alert__close{position:absolute;right:1.125rem;top:.625rem}.pkt-alert__close svg{--fg-color: var(--pkt-color-alert-close-fg)}.pkt-alert--compact{padding:.75rem 1rem .75rem .25rem}.pkt-alert--compact .pkt-alert__icon{width:1.375rem;height:1.375rem;top:.81rem;left:1.25rem}.pkt-alert--compact .pkt-alert__text{font-size:1rem;font-weight:300;letter-spacing:-0.2px;line-height:1.5rem;margin:0 2.875rem}.pkt-alert--compact .pkt-alert__close{top:.25rem}
|
package/dist/css/pkt-base.css
CHANGED
|
@@ -1336,7 +1336,7 @@ body {
|
|
|
1336
1336
|
-webkit-font-smoothing: antialiased;
|
|
1337
1337
|
-moz-osx-font-smoothing: grayscale;
|
|
1338
1338
|
min-height: 100vh;
|
|
1339
|
-
overflow-y:
|
|
1339
|
+
overflow-y: auto;
|
|
1340
1340
|
line-height: 1.5;
|
|
1341
1341
|
text-rendering: optimizeSpeed;
|
|
1342
1342
|
scroll-behavior: smooth;
|