@sb1/ffe-buttons 18.0.31 → 18.0.32
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/less/base-button.less +18 -17
- package/less/button-group.less +2 -2
- package/less/inline-base-button.less +0 -13
- package/package.json +3 -3
package/less/base-button.less
CHANGED
|
@@ -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:
|
|
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
|
|
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
|
|
32
|
-
transition: opacity
|
|
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
|
|
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:
|
|
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:
|
|
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
|
|
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
|
|
212
|
-
gap:
|
|
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
|
|
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:
|
|
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
|
|
245
|
+
margin: 0 var(--ffe-spacing-xs) 0 0;
|
|
245
246
|
width: 45px;
|
|
246
|
-
transition: all
|
|
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:
|
|
261
|
+
color: var(--ffe-farge-hvit);
|
|
261
262
|
|
|
262
263
|
.native & {
|
|
263
264
|
@media (prefers-color-scheme: dark) {
|
|
264
|
-
color:
|
|
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
|
|
285
|
+
transition: all var(--ffe-transition-duration) var(--ffe-ease);
|
|
285
286
|
visibility: hidden;
|
|
286
287
|
display: grid;
|
|
287
288
|
place-items: center;
|
package/less/button-group.less
CHANGED
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
.ffe-button,
|
|
23
23
|
.ffe-inline-button {
|
|
24
24
|
justify-content: center;
|
|
25
|
-
margin: 0 0
|
|
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:
|
|
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.
|
|
3
|
+
"version": "18.0.32",
|
|
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.5.
|
|
18
|
+
"@sb1/ffe-core": "^27.5.3"
|
|
19
19
|
},
|
|
20
20
|
"devDependencies": {
|
|
21
21
|
"@sb1/ffe-buildtool": "^0.6.4"
|
|
@@ -23,5 +23,5 @@
|
|
|
23
23
|
"publishConfig": {
|
|
24
24
|
"access": "public"
|
|
25
25
|
},
|
|
26
|
-
"gitHead": "
|
|
26
|
+
"gitHead": "3a4d6b2e14b8aa93318abdb176b41e448af5a31e"
|
|
27
27
|
}
|