@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.
@@ -34,7 +34,7 @@ body {
34
34
  -webkit-font-smoothing: antialiased;
35
35
  -moz-osx-font-smoothing: grayscale;
36
36
  min-height: 100vh;
37
- overflow-y: scroll;
37
+ overflow-y: auto;
38
38
  line-height: 1.5;
39
39
  text-rendering: optimizeSpeed;
40
40
  scroll-behavior: smooth;
@@ -36,6 +36,55 @@ $-border-thickness: map.get(variables.$spacing, 'size-4');
36
36
  --pkt-color-alert-bg: var(--pkt-color-surface-default-yellow);
37
37
  }
38
38
 
39
+ // Påskemodus
40
+ // Kode: PÅSKEFIGUR
41
+ .#{$-module-name}--🐣 {
42
+ --pkt-color-alert-bc: var(--pkt-color-border-yellow);
43
+ --pkt-color-alert-bg: white;
44
+ --angle: 0deg;
45
+ border: $-border-thickness solid var(--pkt-color-alert-bc);
46
+ border-image: conic-gradient(from var(--angle), red, yellow, lime, aqua, blue, magenta, red) 1;
47
+ animation: 1s 🐣 linear infinite;
48
+ .#{$-module-name}__icon {
49
+ animation: 0.5s 🐰 linear infinite;
50
+ font-size: 2rem;
51
+ }
52
+ &.#{$-module-name}--compact .#{$-module-name}__icon {
53
+ font-size: 1.5rem;
54
+ }
55
+ }
56
+
57
+ @keyframes 🐣 {
58
+ to {
59
+ --angle: 360deg;
60
+ }
61
+ }
62
+
63
+ @keyframes 🐰 {
64
+ 0% {
65
+ transform: rotate(0deg);
66
+ }
67
+ 25% {
68
+ transform: rotate(10deg);
69
+ }
70
+ 50% {
71
+ transform: rotate(0eg);
72
+ }
73
+ 75% {
74
+ transform: rotate(-10deg);
75
+ }
76
+ 100% {
77
+ transform: rotate(0deg);
78
+ }
79
+ }
80
+ // Slutt på påskemodus
81
+
82
+ @property --angle {
83
+ syntax: '<angle>';
84
+ initial-value: 0deg;
85
+ inherits: false;
86
+ }
87
+
39
88
  .#{$-module-name} {
40
89
  padding: $-alert-spacing $-alert-spacing $-alert-spacing calc($-alert-spacing - $-border-thickness);
41
90
  display: block;
@@ -49,7 +98,7 @@ $-border-thickness: map.get(variables.$spacing, 'size-4');
49
98
  margin: 0 0 $-alert-spacing 2.5rem;
50
99
  }
51
100
 
52
- &__close~&__title {
101
+ &__close ~ &__title {
53
102
  margin: 0 4rem $-alert-spacing 2.5rem;
54
103
  }
55
104
 
@@ -70,11 +119,11 @@ $-border-thickness: map.get(variables.$spacing, 'size-4');
70
119
  }
71
120
  }
72
121
 
73
- &__close+&__text {
122
+ &__close + &__text {
74
123
  margin: 0 4rem 0 2.5rem;
75
124
  }
76
125
 
77
- &__title+&__text {
126
+ &__title + &__text {
78
127
  margin-left: 0;
79
128
  margin-right: 0;
80
129
  }
@@ -104,10 +153,8 @@ $-border-thickness: map.get(variables.$spacing, 'size-4');
104
153
  }
105
154
  }
106
155
 
107
- // Utelukkende for bruk i feilmeldinger i InputWrapper
108
156
  .#{$-module-name}--compact {
109
- padding: map.get(variables.$spacing, 'size-12')
110
- map.get(variables.$spacing, 'size-16')
157
+ padding: map.get(variables.$spacing, 'size-12') map.get(variables.$spacing, 'size-16')
111
158
  map.get(variables.$spacing, 'size-12') map.get(variables.$spacing, 'size-4');
112
159
 
113
160
  .#{$-module-name}__icon {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@oslokommune/punkt-css",
3
- "version": "11.9.0",
3
+ "version": "11.9.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",
@@ -55,5 +55,5 @@
55
55
  "url": "https://github.com/oslokommune/punkt/issues"
56
56
  },
57
57
  "license": "MIT",
58
- "gitHead": "f9c10e09713a41530c52b4a836c9801dd1f527ac"
58
+ "gitHead": "4f8705ba802178b8f6089e3be360bd04e893de71"
59
59
  }