@sb1/ffe-buttons 18.0.16 → 18.0.18

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.
@@ -20,25 +20,24 @@
20
20
  display: inline-flex;
21
21
  font-family: var(--ffe-g-font);
22
22
  margin: 0 -4px; // Hack to allow box-shadow to float outside content on focus
23
- transition: all @ffe-transition-duration @ffe-ease;
23
+ transition: all var(--ffe-transition-duration) var(--ffe-ease);
24
24
  overflow: hidden;
25
- padding: 0 @ffe-spacing-2xs;
25
+ padding: 0 var(--ffe-spacing-2xs);
26
26
  text-decoration: none;
27
27
  font-size: var(--ffe-fontsize-body-text);
28
28
  align-items: center;
29
- overflow-wrap: anywhere;
30
29
 
31
30
  &:active {
32
31
  transform: scale(0.97);
33
32
  }
34
33
 
35
34
  &:focus {
36
- box-shadow: 0 0 0 2px @ffe-farge-vann;
35
+ box-shadow: 0 0 0 2px var(--ffe-farge-vann);
37
36
  outline: none;
38
37
 
39
38
  .native & {
40
39
  @media (prefers-color-scheme: dark) {
41
- box-shadow: 0 0 0 2px @ffe-farge-hvit;
40
+ box-shadow: 0 0 0 2px var(--ffe-farge-hvit);
42
41
  }
43
42
  }
44
43
  }
@@ -51,11 +50,12 @@
51
50
  .ffe-inline-button--back {
52
51
  color: var(--ffe-v-button-primary-color);
53
52
  line-height: 24px;
54
- padding: @ffe-spacing-xs @ffe-spacing-md @ffe-spacing-xs @ffe-spacing-2xl;
53
+ padding: var(--ffe-spacing-xs) var(--ffe-spacing-md) var(--ffe-spacing-xs)
54
+ var(--ffe-spacing-2xl);
55
55
  outline: none;
56
56
 
57
57
  .ffe-inline-button__label {
58
- transition: all @ffe-transition-duration @ffe-ease;
58
+ transition: all transform var(--ffe-transition-duration) var(--ffe-ease);
59
59
  border-bottom: 1px solid transparent;
60
60
  }
61
61
 
@@ -77,13 +77,14 @@
77
77
 
78
78
  .ffe-inline-button--expand {
79
79
  color: var(--ffe-v-button-primary-color);
80
- padding: 0 @ffe-spacing-xs;
80
+ padding: 0 var(--ffe-spacing-xs);
81
81
  margin: 0;
82
82
  align-items: center;
83
83
 
84
84
  .ffe-inline-button__icon {
85
85
  color: var(--ffe-v-button-primary-color);
86
- transition: transform @ffe-transition-duration @ffe-ease-in-out-back;
86
+ transition: transform var(--ffe-transition-duration)
87
+ var(--ffe-ease-in-out-back);
87
88
  }
88
89
  @media (hover: hover) and (pointer: fine) {
89
90
  &:hover .ffe-inline-button__icon,
@@ -97,7 +98,7 @@
97
98
  align-content: center;
98
99
  color: var(--ffe-v-button-tertiary-color);
99
100
  flex-wrap: wrap;
100
- padding: @ffe-spacing-xs (@ffe-spacing-sm + 1);
101
+ padding: var(--ffe-spacing-xs) calc(var(--ffe-spacing-sm) + 1px);
101
102
  border: 2px solid transparent;
102
103
 
103
104
  .ffe-inline-button__icon {
@@ -120,7 +121,7 @@
120
121
 
121
122
  .native & {
122
123
  @media (prefers-color-scheme: dark) {
123
- border-color: @ffe-farge-hvit;
124
+ border-color: var(--ffe-farge-hvit);
124
125
  box-shadow: none;
125
126
  }
126
127
  }
@@ -139,7 +140,7 @@
139
140
  }
140
141
  .native & {
141
142
  @media (prefers-color-scheme: dark) {
142
- color: @ffe-farge-hvit;
143
+ color: var(--ffe-farge-hvit);
143
144
  }
144
145
  }
145
146
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sb1/ffe-buttons",
3
- "version": "18.0.16",
3
+ "version": "18.0.18",
4
4
  "license": "MIT",
5
5
  "author": "SpareBank1",
6
6
  "files": [
@@ -15,7 +15,7 @@
15
15
  "test": "npm run lint"
16
16
  },
17
17
  "dependencies": {
18
- "@sb1/ffe-core": "^27.3.6"
18
+ "@sb1/ffe-core": "^27.3.7"
19
19
  },
20
20
  "devDependencies": {
21
21
  "@sb1/ffe-buildtool": "^0.5.1"
@@ -23,5 +23,5 @@
23
23
  "publishConfig": {
24
24
  "access": "public"
25
25
  },
26
- "gitHead": "6c536250d64e85449f22af7a5d998668e17f0a9b"
26
+ "gitHead": "c291894cefef43c0607f844862e87031452a0d94"
27
27
  }