@factor_ec/ui 2.0.2 → 2.1.1

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.
@@ -0,0 +1,40 @@
1
+ .ft-icon {
2
+ line-height: 0;
3
+ display: inline-block;
4
+ &--1 {
5
+ font-size: 1rem;
6
+ }
7
+ &--2 {
8
+ font-size: 1.5rem;
9
+ }
10
+ &--3 {
11
+ font-size: 2rem;
12
+ }
13
+ &--4 {
14
+ font-size: 3rem;
15
+ }
16
+ &--5 {
17
+ font-size: 4.5rem;
18
+ }
19
+ &--6 {
20
+ font-size: 8rem;
21
+ }
22
+ &--7 {
23
+ font-size: 16rem;
24
+ }
25
+ &--8 {
26
+ font-size: 32rem;
27
+ }
28
+ svg {
29
+ width: 1em;
30
+ height: 1em;
31
+ vertical-align: middle;
32
+ fill: currentColor;
33
+ display: inline-block;
34
+ }
35
+ img {
36
+ height: 1em;
37
+ vertical-align: middle;
38
+ display: inline-block;
39
+ }
40
+ }
@@ -0,0 +1,83 @@
1
+ .ft-list {
2
+ display: block;
3
+ overflow: auto;
4
+ &__header {
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;
17
+ display: flex;
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
+ }
29
+ }
30
+ &--active,
31
+ &:active {
32
+ --ft-background-color: var(--ft-background-color-active);
33
+ --ft-text-color: var(--ft-text-color-active);
34
+ }
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
+ }
59
+ }
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;
71
+ }
72
+ &--show {
73
+ .ft-item__toggle {
74
+ transform: rotate(90deg);
75
+ }
76
+ }
77
+ }
78
+ &:not(.ft-show) {
79
+ max-height: 0;
80
+ background-color: transparent;
81
+ }
82
+ }
83
+ }
@@ -0,0 +1,61 @@
1
+ .ft-rating {
2
+ line-height: 0;
3
+ display: inline-flex;
4
+ &:hover {
5
+ &__item {
6
+ color: var(--ft-primary-color);
7
+ & svg:not(.ft-rating__item-icon--hover) {
8
+ color: var(--gray);
9
+ }
10
+ }
11
+ }
12
+ &--1 {
13
+ font-size: 1rem;
14
+ }
15
+ &--2 {
16
+ font-size: 1.5rem;
17
+ }
18
+ &--3 {
19
+ font-size: 2rem;
20
+ }
21
+ &--4 {
22
+ font-size: 3rem;
23
+ }
24
+ &--5 {
25
+ font-size: 4.5rem;
26
+ }
27
+ &--6 {
28
+ font-size: 8rem;
29
+ }
30
+ &--7 {
31
+ font-size: 16rem;
32
+ }
33
+ &--8 {
34
+ font-size: 32rem;
35
+ }
36
+ svg {
37
+ width: 1em;
38
+ height: 1em;
39
+ display: block;
40
+ path {
41
+ fill: none;
42
+ stroke-width: 1;
43
+ stroke: currentColor;
44
+ }
45
+ &.ft-rating__item-icon--hover,
46
+ &.ft-rating__item-icon--active {
47
+ path {
48
+ fill: currentColor;
49
+ }
50
+ }
51
+ }
52
+ &__item {
53
+ border: 0;
54
+ background: transparent;
55
+ padding: 0;
56
+ &:focus,
57
+ &:active {
58
+ outline: none;
59
+ }
60
+ }
61
+ }
@@ -0,0 +1,4 @@
1
+ @use 'components/avatar.scss';
2
+ @use 'components/button.scss';
3
+ @use 'components/list.scss';
4
+ @use 'components/rating.scss';
@@ -0,0 +1,12 @@
1
+ .ft-flex {
2
+ display: flex;
3
+ }
4
+ .ft-align-start {
5
+ align-items: flex-start
6
+ }
7
+ .ft-align-center {
8
+ align-items: center;
9
+ }
10
+ .ft-align-end {
11
+ align-items: flex-end
12
+ }