@sb1/ffe-buttons 18.0.31 → 18.0.33

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.
@@ -3,7 +3,7 @@
3
3
  appearance: none;
4
4
  border: 2px solid transparent;
5
5
  border-radius: var(--ffe-v-buttons-border-radius);
6
- color: @ffe-farge-hvit;
6
+ color: var(--ffe-farge-hvit);
7
7
  cursor: pointer;
8
8
  display: flex;
9
9
  font-family: var(--ffe-g-font);
@@ -14,7 +14,7 @@
14
14
  position: relative;
15
15
  text-align: center;
16
16
  text-decoration: none;
17
- transition: all @ffe-transition-duration @ffe-ease;
17
+ transition: all var(--ffe-transition-duration) var(--ffe-ease);
18
18
  user-select: none;
19
19
  hyphens: auto;
20
20
  width: 100%;
@@ -28,11 +28,11 @@
28
28
  background: transparent;
29
29
  border-radius: 1.5rem;
30
30
  inset: -5px;
31
- box-shadow: 0 0 0 2px @ffe-farge-vann;
32
- transition: opacity @ffe-transition-duration @ffe-ease;
31
+ box-shadow: 0 0 0 2px var(--ffe-farge-vann);
32
+ transition: opacity var(--ffe-transition-duration) var(--ffe-ease);
33
33
 
34
34
  .native & {
35
- box-shadow: 0 0 0 2px @ffe-farge-hvit;
35
+ box-shadow: 0 0 0 2px var(--ffe-farge-hvit);
36
36
  }
37
37
  }
38
38
 
@@ -156,7 +156,7 @@
156
156
  }
157
157
 
158
158
  .ffe-button--expanded {
159
- padding: @ffe-spacing-xs;
159
+ padding: var(--ffe-spacing-xs);
160
160
  width: 45px;
161
161
  }
162
162
 
@@ -167,9 +167,10 @@
167
167
  box-shadow: none;
168
168
  color: var(--ffe-v-button-task-primary-color);
169
169
  display: inline-block;
170
- padding: @ffe-spacing-2xs @ffe-spacing-sm @ffe-spacing-2xs @ffe-spacing-2xs;
170
+ padding: var(--ffe-spacing-2xs) var(--ffe-spacing-sm) var(--ffe-spacing-2xs)
171
+ var(--ffe-spacing-2xs);
171
172
  text-align: left;
172
- transition: all @ffe-transition-duration @ffe-ease;
173
+ transition: all var(--ffe-transition-duration) var(--ffe-ease);
173
174
  width: auto;
174
175
 
175
176
  .ffe-button__icon > .ffe-icons {
@@ -208,8 +209,8 @@
208
209
  .ffe-button__label {
209
210
  align-items: center;
210
211
  display: flex;
211
- transition: transform @ffe-transition-duration @ffe-ease;
212
- gap: @ffe-spacing-xs;
212
+ transition: transform var(--ffe-transition-duration) var(--ffe-ease);
213
+ gap: var(--ffe-spacing-xs);
213
214
  .ffe-button--loading & {
214
215
  transform: translateY(-32px);
215
216
  opacity: 0;
@@ -218,7 +219,7 @@
218
219
 
219
220
  .ffe-button__icon {
220
221
  .ffe-button--shortcut & {
221
- transition: all @ffe-transition-duration @ffe-ease;
222
+ transition: all var(--ffe-transition-duration) var(--ffe-ease);
222
223
  will-change: transform;
223
224
  }
224
225
 
@@ -235,15 +236,15 @@
235
236
  .ffe-button--task & {
236
237
  border: 2px solid var(--ffe-v-button-primary-color);
237
238
  border-radius: 50%;
238
- background-color: @ffe-farge-hvit;
239
+ background-color: var(--ffe-farge-hvit);
239
240
  color: var(--ffe-v-button-task-primary-color);
240
241
  height: 45px;
241
242
  display: flex;
242
243
  align-items: center;
243
244
  justify-content: center;
244
- margin: 0 @ffe-spacing-xs 0 0;
245
+ margin: 0 var(--ffe-spacing-xs) 0 0;
245
246
  width: 45px;
246
- transition: all @ffe-transition-duration @ffe-ease;
247
+ transition: all var(--ffe-transition-duration) var(--ffe-ease);
247
248
  .native & {
248
249
  @media (prefers-color-scheme: dark) {
249
250
  background-color: transparent;
@@ -257,11 +258,11 @@
257
258
 
258
259
  @media (hover: hover) and (pointer: fine) {
259
260
  .ffe-button--expand:hover & {
260
- color: @ffe-farge-hvit;
261
+ color: var(--ffe-farge-hvit);
261
262
 
262
263
  .native & {
263
264
  @media (prefers-color-scheme: dark) {
264
- color: @ffe-farge-svart;
265
+ color: var(--ffe-farge-svart);
265
266
  }
266
267
  }
267
268
  }
@@ -281,7 +282,7 @@
281
282
  opacity: 0;
282
283
  position: absolute;
283
284
  transform: translateY(24px);
284
- transition: all @ffe-transition-duration @ffe-ease;
285
+ transition: all var(--ffe-transition-duration) var(--ffe-ease);
285
286
  visibility: hidden;
286
287
  display: grid;
287
288
  place-items: center;
@@ -22,7 +22,7 @@
22
22
  .ffe-button,
23
23
  .ffe-inline-button {
24
24
  justify-content: center;
25
- margin: 0 0 @ffe-spacing-xs;
25
+ margin: 0 0 var(--ffe-spacing-xs);
26
26
  }
27
27
 
28
28
  &--thin {
@@ -43,7 +43,7 @@
43
43
  flex-direction: row;
44
44
  width: auto;
45
45
  flex-wrap: wrap;
46
- gap: @ffe-spacing-xs @ffe-spacing-sm;
46
+ gap: var(--ffe-spacing-xs) var(--ffe-spacing-sm);
47
47
 
48
48
  .ffe-button,
49
49
  .ffe-inline-button {
@@ -1,16 +1,3 @@
1
- // Inline buttons
2
- //
3
- // Markup:
4
- // <button class="ffe-inline-button ffe-inline-button{{modifier_class}}">
5
- // <span class="ffe-inline-button__label">Click bait</span>
6
- // </button>
7
- //
8
- // --tertiary - Tertiary
9
- // --back - Back
10
- // --expand - Expand
11
- //
12
- // Styleguide ffe-buttons.inline-base-button
13
-
14
1
  .ffe-inline-button {
15
2
  appearance: none;
16
3
  background-color: transparent;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sb1/ffe-buttons",
3
- "version": "18.0.31",
3
+ "version": "18.0.33",
4
4
  "license": "MIT",
5
5
  "author": "SpareBank1",
6
6
  "files": [
@@ -15,13 +15,13 @@
15
15
  "test": "npm run lint"
16
16
  },
17
17
  "dependencies": {
18
- "@sb1/ffe-core": "^27.5.2"
18
+ "@sb1/ffe-core": "^27.5.4"
19
19
  },
20
20
  "devDependencies": {
21
- "@sb1/ffe-buildtool": "^0.6.4"
21
+ "@sb1/ffe-buildtool": "^0.7.0"
22
22
  },
23
23
  "publishConfig": {
24
24
  "access": "public"
25
25
  },
26
- "gitHead": "4e29cbd7778ac53d9dfa1dcba6a0ec40846fce89"
26
+ "gitHead": "83b5c8952328ec39a99040567677ab01c3180f42"
27
27
  }