@factor_ec/ui 2.0.2 → 2.1.0

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,41 @@
1
+ .ft-app {
2
+ &__drawer {
3
+ background-color: var(--ft-body-bg);
4
+ width: 280px;
5
+ position: fixed;
6
+ top: 0;
7
+ bottom: 0;
8
+ box-shadow: var(--ft-popup-box-shadow);
9
+ }
10
+ &__header {
11
+ --ft-button-bg-rgb: 255, 255, 255;
12
+ --ft-button-color: var(--ft-app-header-color);
13
+ align-items: center;
14
+ background-color: var(--ft-primary-color);
15
+ display: flex;
16
+ padding: 0.5rem;
17
+ gap: 0.5rem;
18
+ &-nav {
19
+ --ft-button-border-radius: 100vh;
20
+ }
21
+ &-logo {
22
+ width: 158px;
23
+ height: 40px;
24
+ background-image: url(../../assets/header-logo.svg);
25
+ }
26
+ &-actions {
27
+ --ft-button-border-radius: 100vh;
28
+ }
29
+ &-user-button {
30
+ margin-left: auto;
31
+ text-align: right;
32
+ padding-left: 1rem;
33
+ .ft-flex {
34
+ gap: 0.5rem;
35
+ }
36
+ small {
37
+ opacity: 0.5;
38
+ }
39
+ }
40
+ }
41
+ }
@@ -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
+ }