@oslokommune/punkt-css 11.9.4 → 11.10.1

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.
@@ -6,7 +6,7 @@
6
6
  @forward 'spacing';
7
7
 
8
8
  // Default icon path
9
- $icon-path: 'https://punkt-cdn.oslo.kommune.no/11.9/icons' !default;
9
+ $icon-path: 'https://punkt-cdn.oslo.kommune.no/11.10/icons' !default;
10
10
 
11
11
  // Borders
12
12
  $border-width: (
@@ -1,4 +1,4 @@
1
- /*
1
+ /*
2
2
  * Alert component
3
3
  */
4
4
  @use 'sass:map';
@@ -36,49 +36,6 @@ $-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
39
  @property --angle {
83
40
  syntax: '<angle>';
84
41
  initial-value: 0deg;
@@ -55,4 +55,101 @@
55
55
  width: 3.5rem;
56
56
  }
57
57
  }
58
+ .egg-loader {
59
+ position: relative;
60
+ display: flex;
61
+ justify-content: center;
62
+ align-items: center;
63
+ margin-top: 8em;
64
+ font-size: 0.4rem;
65
+ width: 25em;
66
+ height: 5em;
67
+ }
68
+ &--small {
69
+ .egg-loader {
70
+ font-size: 0.2rem;
71
+ }
72
+ }
73
+ &--large {
74
+ .egg-loader {
75
+ font-size: 0.6rem;
76
+ }
77
+ }
78
+
79
+ .egg {
80
+ position: absolute;
81
+ width: 5em;
82
+ height: 6.5em;
83
+ left: 0em;
84
+ background: repeating-linear-gradient(#ff8274, #ff8274 1em, #f9c66b 1em, #f9c66b 2em);
85
+ border-radius: 50% 50% 50% 50% / 55% 55% 45% 45%;
86
+ transform: translate3d(0, 0, 0);
87
+ animation-name: eggroll;
88
+ animation-duration: 2s;
89
+ animation-iteration-count: infinite;
90
+ animation-timing-function: linear;
91
+ animation-delay: 0;
92
+ opacity: 0;
93
+ }
94
+ .egg.two {
95
+ background: repeating-linear-gradient(#6fe9ff, #6fe9ff 1em, #ff8274 1em, #ff8274 2em);
96
+ animation-delay: 0.5s;
97
+ }
98
+ .egg.three {
99
+ background: repeating-linear-gradient(#43f8b6, #43f8b6 1em, #f9c66b 1em, #f9c66b 2em);
100
+ animation-delay: 1s;
101
+ }
102
+ .egg.four {
103
+ background: repeating-linear-gradient(#43f8b6, #43f8b6 1em, #ff8274 1em, #ff8274 2em);
104
+ animation-delay: 1.5s;
105
+ }
106
+ }
107
+
108
+ @keyframes eggroll {
109
+ 0% {
110
+ transform: translate3d(0, 0, 0) rotate(0deg);
111
+ opacity: 0;
112
+ }
113
+
114
+ 12.5% {
115
+ transform: translate3d(50%, 1em, 0) rotate(90deg);
116
+ }
117
+
118
+ 25% {
119
+ transform: translate3d(100%, 0, 0) rotate(180deg);
120
+ }
121
+
122
+ 37.5% {
123
+ transform: translate3d(150%, 1em, 0) rotate(270deg);
124
+ }
125
+
126
+ 46% {
127
+ transform: translate3d(200%, 0, 0) rotate(380deg);
128
+ }
129
+
130
+ 50% {
131
+ transform: translate3d(200%, 0, 0) rotate(360deg);
132
+ opacity: 1;
133
+ }
134
+ 54% {
135
+ transform: translate3d(200%, 0, 0) rotate(340deg);
136
+ }
137
+
138
+ 62.5% {
139
+ transform: translate3d(250%, 1em, 0) rotate(450deg);
140
+ }
141
+
142
+ 70% {
143
+ transform: translate3d(300%, 0, 0) rotate(540deg);
144
+ }
145
+
146
+ 75% {
147
+ transform: translate3d(350%, 1em, 0) rotate(630deg);
148
+ opacity: 1;
149
+ }
150
+
151
+ 100% {
152
+ transform: translate3d(400%, 0, 0) rotate(720deg);
153
+ opacity: 0;
154
+ }
58
155
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@oslokommune/punkt-css",
3
- "version": "11.9.4",
3
+ "version": "11.10.1",
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": "581930ff3415a56bce6634e14a9a76d106e2d247"
58
+ "gitHead": "2309609a0e76e913954fbf3f6042786e1fb5c2e1"
59
59
  }