@factor_ec/ui 2.1.0 → 2.1.2
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/esm2020/lib/io/rating/rating.component.mjs +3 -3
- package/fesm2015/factor_ec-ui.mjs +3 -2
- package/fesm2015/factor_ec-ui.mjs.map +1 -1
- package/fesm2020/factor_ec-ui.mjs +3 -2
- package/fesm2020/factor_ec-ui.mjs.map +1 -1
- package/package.json +1 -1
- package/scss/all.scss +5 -5
- package/scss/components/avatar.scss +1 -1
- package/scss/components/list.scss +73 -31
- package/scss/components.scss +5 -4
- package/scss/reboot.scss +1 -1
|
@@ -1,41 +1,83 @@
|
|
|
1
|
-
.ft-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
width: 280px;
|
|
5
|
-
position: fixed;
|
|
6
|
-
top: 0;
|
|
7
|
-
bottom: 0;
|
|
8
|
-
box-shadow: var(--ft-popup-box-shadow);
|
|
9
|
-
}
|
|
1
|
+
.ft-list {
|
|
2
|
+
display: block;
|
|
3
|
+
overflow: auto;
|
|
10
4
|
&__header {
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
5
|
+
text-transform: uppercase;
|
|
6
|
+
font-weight: 700;
|
|
7
|
+
padding: 0.75rem 1.5rem 0.25rem;
|
|
8
|
+
font-size: 0.75rem;
|
|
9
|
+
opacity: 0.3;
|
|
10
|
+
}
|
|
11
|
+
&__item {
|
|
12
|
+
border: 0;
|
|
13
|
+
box-sizing: border-box;
|
|
14
|
+
color: var(--ft-text-color);
|
|
15
|
+
background-color: var(--ft-background-color);
|
|
16
|
+
cursor: pointer;
|
|
15
17
|
display: flex;
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
18
|
+
outline: none;
|
|
19
|
+
transition: background-color 0.3s, color 0.3s;
|
|
20
|
+
text-align: left;
|
|
21
|
+
padding: 0.75rem 1.5rem;
|
|
22
|
+
width: 100%;
|
|
23
|
+
&:hover {
|
|
24
|
+
text-decoration: none;
|
|
25
|
+
&:not(.active) {
|
|
26
|
+
--ft-background-color: var(--ft-background-color-hover);
|
|
27
|
+
--ft-text-color: var(--text-color-hover);
|
|
28
|
+
}
|
|
20
29
|
}
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
30
|
+
&--active,
|
|
31
|
+
&:active {
|
|
32
|
+
--ft-background-color: var(--ft-background-color-active);
|
|
33
|
+
--ft-text-color: var(--ft-text-color-active);
|
|
25
34
|
}
|
|
26
|
-
|
|
27
|
-
|
|
35
|
+
.ft-item {
|
|
36
|
+
max-width: 100%;
|
|
37
|
+
display: flex;
|
|
38
|
+
align-items: center;
|
|
39
|
+
gap: 0.25rem;
|
|
40
|
+
&__icon {
|
|
41
|
+
font-size: 1.5rem;
|
|
42
|
+
}
|
|
43
|
+
&__icon + .ft-item__label {
|
|
44
|
+
display: block;
|
|
45
|
+
white-space: nowrap;
|
|
46
|
+
overflow: hidden;
|
|
47
|
+
text-overflow: ellipsis;
|
|
48
|
+
}
|
|
49
|
+
&__icon,
|
|
50
|
+
&__label {
|
|
51
|
+
transition: margin-left 0.3s;
|
|
52
|
+
}
|
|
53
|
+
&__toggle {
|
|
54
|
+
transition: transform 0.2s;
|
|
55
|
+
}
|
|
56
|
+
&__label {
|
|
57
|
+
flex-grow: 1;
|
|
58
|
+
}
|
|
28
59
|
}
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
60
|
+
}
|
|
61
|
+
&__collapsible {
|
|
62
|
+
overflow: hidden;
|
|
63
|
+
transition: max-height 0.2s;
|
|
64
|
+
max-height: 100vh;
|
|
65
|
+
&-header {
|
|
66
|
+
font-weight: 500;
|
|
67
|
+
> div {
|
|
68
|
+
display: flex;
|
|
69
|
+
align-items: center;
|
|
70
|
+
flex-grow: 1;
|
|
35
71
|
}
|
|
36
|
-
|
|
37
|
-
|
|
72
|
+
&--show {
|
|
73
|
+
.ft-item__toggle {
|
|
74
|
+
transform: rotate(90deg);
|
|
75
|
+
}
|
|
38
76
|
}
|
|
39
77
|
}
|
|
78
|
+
&:not(.ft-show) {
|
|
79
|
+
max-height: 0;
|
|
80
|
+
background-color: transparent;
|
|
81
|
+
}
|
|
40
82
|
}
|
|
41
83
|
}
|
package/scss/components.scss
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
@use 'components/avatar
|
|
2
|
-
@use 'components/button
|
|
3
|
-
@use 'components/list
|
|
4
|
-
@use 'components/rating
|
|
1
|
+
@use 'components/avatar';
|
|
2
|
+
@use 'components/button';
|
|
3
|
+
@use 'components/list';
|
|
4
|
+
@use 'components/rating';
|
|
5
|
+
@use 'components/icon';
|
package/scss/reboot.scss
CHANGED