@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.
@@ -1,41 +1,83 @@
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
- }
1
+ .ft-list {
2
+ display: block;
3
+ overflow: auto;
10
4
  &__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);
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
- padding: 0.5rem;
17
- gap: 0.5rem;
18
- &-nav {
19
- --ft-button-border-radius: 100vh;
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
- &-logo {
22
- width: 158px;
23
- height: 40px;
24
- background-image: url(../../assets/header-logo.svg);
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
- &-actions {
27
- --ft-button-border-radius: 100vh;
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
- &-user-button {
30
- margin-left: auto;
31
- text-align: right;
32
- padding-left: 1rem;
33
- .ft-flex {
34
- gap: 0.5rem;
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
- small {
37
- opacity: 0.5;
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
  }
@@ -1,4 +1,5 @@
1
- @use 'components/avatar.scss';
2
- @use 'components/button.scss';
3
- @use 'components/list.scss';
4
- @use 'components/rating.scss';
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
@@ -1,4 +1,4 @@
1
- @use "variables.scss";
1
+ @use "variables";
2
2
 
3
3
  // stylelint-disable declaration-no-important, selector-no-qualifying-type, property-no-vendor-prefix
4
4