@sb1/ffe-accordion 10.0.22 → 10.0.23
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/accordion.less +18 -10
- package/package.json +2 -2
package/less/accordion.less
CHANGED
|
@@ -2,11 +2,16 @@
|
|
|
2
2
|
width: 100%;
|
|
3
3
|
border: 1px solid transparent;
|
|
4
4
|
font-family: var(--ffe-g-font);
|
|
5
|
+
|
|
6
|
+
.ffe-accordion-item__heading {
|
|
7
|
+
margin: 0;
|
|
8
|
+
}
|
|
5
9
|
}
|
|
6
10
|
|
|
7
11
|
.ffe-accordion-item {
|
|
8
|
-
margin-bottom:
|
|
9
|
-
transition: margin-bottom
|
|
12
|
+
margin-bottom: var(--ffe-spacing-xs);
|
|
13
|
+
transition: margin-bottom var(--ffe-transition-duration)
|
|
14
|
+
var(--ffe-ease-in-out-back);
|
|
10
15
|
box-shadow: 0 1px 4px rgb(38 38 38 / 30%);
|
|
11
16
|
border-radius: 16px;
|
|
12
17
|
border: 2px solid transparent;
|
|
@@ -25,7 +30,7 @@
|
|
|
25
30
|
width: 100%;
|
|
26
31
|
background: none;
|
|
27
32
|
border: none;
|
|
28
|
-
padding:
|
|
33
|
+
padding: var(--ffe-spacing-sm);
|
|
29
34
|
font-family: var(--ffe-g-font-heading-small);
|
|
30
35
|
cursor: pointer;
|
|
31
36
|
outline: none;
|
|
@@ -34,13 +39,14 @@
|
|
|
34
39
|
@media (hover: hover) and (pointer: fine) {
|
|
35
40
|
&:hover {
|
|
36
41
|
.ffe-accordion-item__heading-icon {
|
|
37
|
-
transition: fill
|
|
42
|
+
transition: fill var(--ffe-transition-duration)
|
|
43
|
+
var(--ffe-ease);
|
|
38
44
|
color: var(--ffe-v-accordion-secondary-color);
|
|
39
45
|
}
|
|
40
46
|
|
|
41
47
|
.ffe-accordion-item__heading-icon-wrapper {
|
|
42
|
-
transition: background-color
|
|
43
|
-
|
|
48
|
+
transition: background-color var(--ffe-transition-duration)
|
|
49
|
+
var(--ffe-ease);
|
|
44
50
|
background-color: var(--ffe-v-accordion-primary-color);
|
|
45
51
|
}
|
|
46
52
|
}
|
|
@@ -57,7 +63,7 @@
|
|
|
57
63
|
display: flex;
|
|
58
64
|
align-items: center;
|
|
59
65
|
justify-content: space-between;
|
|
60
|
-
gap:
|
|
66
|
+
gap: var(--ffe-spacing-xs);
|
|
61
67
|
}
|
|
62
68
|
|
|
63
69
|
&__heading-icon-wrapper {
|
|
@@ -70,17 +76,19 @@
|
|
|
70
76
|
&__heading-icon {
|
|
71
77
|
flex: 0 0 auto;
|
|
72
78
|
color: var(--ffe-v-accordion-primary-color);
|
|
73
|
-
transition: transform
|
|
79
|
+
transition: transform var(--ffe-transition-duration)
|
|
80
|
+
var(--ffe-ease-in-out-back);
|
|
74
81
|
}
|
|
75
82
|
|
|
76
83
|
&__body {
|
|
77
|
-
padding:
|
|
84
|
+
padding: var(--ffe-spacing-xs) var(--ffe-spacing-sm)
|
|
85
|
+
var(--ffe-spacing-md);
|
|
78
86
|
color: var(--ffe-v-accordion-body-text-color);
|
|
79
87
|
}
|
|
80
88
|
|
|
81
89
|
&--open {
|
|
82
90
|
&:not(:last-of-type) {
|
|
83
|
-
margin-bottom:
|
|
91
|
+
margin-bottom: var(--ffe-spacing-md);
|
|
84
92
|
}
|
|
85
93
|
|
|
86
94
|
.ffe-accordion-item__heading-icon {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sb1/ffe-accordion",
|
|
3
|
-
"version": "10.0.
|
|
3
|
+
"version": "10.0.23",
|
|
4
4
|
"description": "Accordion component for FFE.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "SpareBank 1",
|
|
@@ -24,5 +24,5 @@
|
|
|
24
24
|
"publishConfig": {
|
|
25
25
|
"access": "public"
|
|
26
26
|
},
|
|
27
|
-
"gitHead": "
|
|
27
|
+
"gitHead": "93dd227b3321cf54c3a3acf4144c50dad248033f"
|
|
28
28
|
}
|