@rt-tools/ui-kit 0.0.19 → 0.0.20

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.
Files changed (69) hide show
  1. package/fesm2022/rt-tools-ui-kit.mjs +205 -80
  2. package/fesm2022/rt-tools-ui-kit.mjs.map +1 -1
  3. package/package.json +1 -1
  4. package/rt-tools-ui-kit-0.0.20.tgz +0 -0
  5. package/src/lib/ui-kit/action-bar/components/bar/rtui-action-bar.component.scss +18 -18
  6. package/src/lib/ui-kit/action-bar/components/container/rtui-action-bar-container.component.scss +5 -7
  7. package/src/lib/ui-kit/aside/components/container/aside-container.component.scss +1 -0
  8. package/src/lib/ui-kit/aside/components/error-notification/aside-error-box.component.scss +6 -6
  9. package/src/lib/ui-kit/aside/components/panel/aside-panel.component.scss +25 -32
  10. package/src/lib/ui-kit/aside/stories/aside-component/test-aside.component.scss +1 -1
  11. package/src/lib/ui-kit/buttons/icon-round/rtui-round-icon-button.component.scss +4 -4
  12. package/src/lib/ui-kit/buttons/multi-button/rtui-multi-button.component.scss +7 -7
  13. package/src/lib/ui-kit/checkbox/rtui-checkbox.component.scss +10 -10
  14. package/src/lib/ui-kit/checkbox/stories/component/test-checkbox.component.scss +2 -2
  15. package/src/lib/ui-kit/dynamic-selectors/components/actions/rtui-dynamic-selector-list-actions.component.scss +2 -2
  16. package/src/lib/ui-kit/dynamic-selectors/components/dynamic-selector/rtui-dynamic-selector.component.scss +3 -3
  17. package/src/lib/ui-kit/dynamic-selectors/components/multi-selector-popup/rtui-multi-selector-popup.component.scss +17 -17
  18. package/src/lib/ui-kit/dynamic-selectors/components/placeholder/rtui-dynamic-selector-placeholder.component.scss +3 -4
  19. package/src/lib/ui-kit/dynamic-selectors/components/selected-list/rtui-dynamic-selector-selected-list.component.scss +2 -2
  20. package/src/lib/ui-kit/dynamic-selectors/strories/component/input/test-dynamic-input.component.scss +2 -3
  21. package/src/lib/ui-kit/dynamic-selectors/strories/component/selector/test-selector.component.scss +4 -5
  22. package/src/lib/ui-kit/file-uploader/rtui-file-upload.component.scss +5 -5
  23. package/src/lib/ui-kit/file-uploader/stories/component/test-file-upload.component.scss +1 -1
  24. package/src/lib/ui-kit/header/header.component.scss +1 -0
  25. package/src/lib/ui-kit/header/stories/component/test-header.component.scss +3 -3
  26. package/src/lib/ui-kit/image-uploader/image-uploader/rtui-image-upload.component.scss +5 -5
  27. package/src/lib/ui-kit/image-uploader/stories/component/test-image-upload.component.scss +2 -2
  28. package/src/lib/ui-kit/info-badge/info-badge.component.scss +20 -19
  29. package/src/lib/ui-kit/info-badge/stories/component/test-info-badge/test-info-badge.component.scss +1 -1
  30. package/src/lib/ui-kit/modal/modal.component.scss +5 -5
  31. package/src/lib/ui-kit/popover/rtui-popover-container.component.scss +2 -3
  32. package/src/lib/ui-kit/scrollable/scrollable-container.component.scss +3 -5
  33. package/src/lib/ui-kit/side-menu/menu/rtui-side-menu.component.scss +25 -25
  34. package/src/lib/ui-kit/side-menu/menu-sub-item/rtui-side-menu-sub-item.component.scss +14 -14
  35. package/src/lib/ui-kit/side-menu/stories/component/test-side-menu-wrapper.component.scss +10 -10
  36. package/src/lib/ui-kit/snack-bar/snack-bar.component.scss +9 -9
  37. package/src/lib/ui-kit/snack-bar/stories/component/test-snack-bar.component.scss +3 -3
  38. package/src/lib/ui-kit/spinner/spinner.component.scss +10 -13
  39. package/src/lib/ui-kit/table/components/clear-search-button/rtui-clear-button.component.scss +5 -5
  40. package/src/lib/ui-kit/table/components/pagination-view/rtui-pagination.component.scss +14 -22
  41. package/src/lib/ui-kit/table/components/table-base-cell/table-base-cell.component.scss +8 -9
  42. package/src/lib/ui-kit/table/components/table-config-aside/rt-table-config-aside.component.scss +1 -1
  43. package/src/lib/ui-kit/table/components/table-container/table-container.component.scss +16 -14
  44. package/src/lib/ui-kit/table/components/table-header-cell/table-header-cell.component.scss +6 -7
  45. package/src/lib/ui-kit/table/components/table-header-filter-cell/table-header-filter-cell.component.scss +3 -3
  46. package/src/lib/ui-kit/table/dynamic-list.component.scss +2 -2
  47. package/src/lib/ui-kit/table/stories/dynamic-list/test-dynamic-list.component.scss +1 -1
  48. package/src/lib/ui-kit/table/stories/pagination/test-pagination-component.scss +4 -4
  49. package/src/lib/ui-kit/table/stories/table/test-table-component.scss +1 -1
  50. package/src/lib/ui-kit/toggle/rtui-toggle.component.scss +15 -21
  51. package/src/lib/ui-kit/toggle/stories/component/test-toggle.component.scss +2 -2
  52. package/src/lib/ui-kit/toolbar/toolbar.component.scss +5 -10
  53. package/src/styles/TOKENS.md +95 -2
  54. package/src/styles/base/_base.scss +4 -5
  55. package/src/styles/base/_color-scheme.scss +86 -0
  56. package/src/styles/base/_mixin.scss +12 -15
  57. package/src/styles/base/_tokens.scss +139 -99
  58. package/src/styles/base/_variables.scss +5 -11
  59. package/src/styles/color-scheme.spec.ts +236 -0
  60. package/src/styles/components/_button.scss +32 -24
  61. package/src/styles/components/_dynamic-selectors.scss +9 -10
  62. package/src/styles/components/_form.scss +8 -13
  63. package/src/styles/components/_material-bridge.scss +30 -0
  64. package/src/styles/components/_rtui_button.scss +5 -5
  65. package/src/styles/components/_table.scss +23 -39
  66. package/src/styles/main.scss +4 -0
  67. package/styles/tokens.css +79 -101
  68. package/types/rt-tools-ui-kit.d.ts +55 -7
  69. package/rt-tools-ui-kit-0.0.19.tgz +0 -0
@@ -1,7 +1,7 @@
1
1
  :host {
2
+ display: flex;
2
3
  width: 100vw;
3
4
  height: 100vh;
4
- display: flex;
5
5
  flex-direction: column;
6
6
  margin: -1rem;
7
7
 
@@ -10,10 +10,10 @@
10
10
  }
11
11
 
12
12
  .content {
13
- flex-grow: 1;
14
13
  display: flex;
15
- justify-content: center;
14
+ flex-grow: 1;
16
15
  align-items: flex-start;
16
+ justify-content: center;
17
17
  }
18
18
 
19
19
  .action {
@@ -1,25 +1,22 @@
1
1
  :host {
2
- z-index: 10000;
3
2
  position: absolute;
4
-
3
+ z-index: 10000;
4
+ display: flex;
5
5
  width: 100%;
6
6
  height: 100%;
7
-
8
- display: flex;
9
- justify-content: center;
10
7
  align-items: center;
8
+ justify-content: center;
11
9
 
12
10
  .c-spinner {
13
11
  &__container {
12
+ display: flex;
14
13
  width: 100%;
15
14
  height: 100%;
16
-
17
- display: flex;
18
15
  align-items: center;
19
16
  justify-content: center;
20
17
 
21
18
  &--bgr-color {
22
- background-color: rgba(#f5f6f8, 0.85);
19
+ background-color: color-mix(in srgb, var(--rt-bg-base-subtle) 85%, transparent);
23
20
  }
24
21
  }
25
22
 
@@ -35,14 +32,14 @@
35
32
  }
36
33
 
37
34
  &--bgr-color {
35
+ // Component-local elevation token for the spinner's circular backdrop.
36
+ --rt-spinner-backdrop-shadow: 0 1px 3px rgb(0 0 0 / 12%), 0 1px 2px rgb(0 0 0 / 24%);
37
+
38
38
  width: 3rem;
39
39
  height: 3rem;
40
-
40
+ border-radius: var(--rt-radius-full);
41
41
  background: var(--rt-bg-base-base);
42
- border-radius: 50%;
43
- box-shadow:
44
- 0 1px 3px rgba(0, 0, 0, 0.12),
45
- 0 1px 2px rgba(0, 0, 0, 0.24);
42
+ box-shadow: var(--rt-spinner-backdrop-shadow);
46
43
  }
47
44
  }
48
45
  }
@@ -24,23 +24,23 @@ $clear-button: (
24
24
 
25
25
  .rtui-clear-button {
26
26
  display: flex;
27
- justify-content: center;
28
27
  align-items: center;
28
+ justify-content: center;
29
+ padding: var(--rt-clear-button-host-padding);
29
30
  border: none;
30
- border-radius: 50%;
31
+ border-radius: var(--rt-radius-full);
31
32
  margin: var(--rt-clear-button-host-margin);
32
- padding: var(--rt-clear-button-host-padding);
33
33
  background-color: var(--rt-clear-button-host-background-color);
34
34
 
35
35
  &--invisible {
36
- @include mixins.visually-hidden();
36
+ @include mixins.visually-hidden;
37
37
  }
38
38
 
39
39
  &__icon {
40
40
  width: var(--rt-clear-button-icon-size);
41
41
  height: var(--rt-clear-button-icon-size);
42
- font-size: var(--rt-clear-button-icon-size);
43
42
  color: var(--rt-clear-button-icon-color);
43
+ font-size: var(--rt-clear-button-icon-size);
44
44
 
45
45
  &:hover {
46
46
  color: var(--rt-clear-button-icon-hover-color);
@@ -48,9 +48,9 @@ $pagination: (
48
48
  );
49
49
 
50
50
  :host {
51
+ display: flex;
51
52
  width: fit-content;
52
53
  height: 100%;
53
- display: flex;
54
54
 
55
55
  @each $element, $elements in $pagination {
56
56
  @each $style-token, $value in $elements {
@@ -60,21 +60,19 @@ $pagination: (
60
60
 
61
61
  .pagination-container {
62
62
  position: relative;
63
-
64
63
  display: flex;
65
- justify-content: flex-start;
66
64
  align-items: center;
67
- gap: var(--rt-table-pagination-container-gap);
68
-
65
+ justify-content: flex-start;
69
66
  color: var(--rt-table-pagination-container-color);
70
67
  font-size: var(--rt-table-pagination-container-font-size);
71
68
  font-weight: var(--rt-table-pagination-container-font-weight);
69
+ gap: var(--rt-table-pagination-container-gap);
72
70
  line-height: var(--rt-table-pagination-container-line-height);
73
71
 
74
72
  &--clipped {
75
73
  flex-direction: column;
76
- justify-content: center;
77
74
  align-items: flex-start;
75
+ justify-content: center;
78
76
  gap: var(--rt-table-pagination-container-mobile-gap);
79
77
  }
80
78
 
@@ -85,26 +83,23 @@ $pagination: (
85
83
 
86
84
  .paging {
87
85
  display: flex;
88
- justify-content: center;
89
86
  align-items: center;
90
- gap: var(--rt-table-pagination-paging-gap);
87
+ justify-content: center;
91
88
  margin: var(--rt-table-pagination-container-margin);
89
+ gap: var(--rt-table-pagination-paging-gap);
92
90
 
93
91
  &--clipped {
94
92
  margin: var(--rt-table-pagination-paging-mobile-margin);
95
93
  }
96
94
 
97
95
  &__item {
96
+ position: relative;
98
97
  display: flex;
99
- justify-content: center;
100
98
  align-items: center;
101
-
102
- position: relative;
103
-
99
+ justify-content: center;
104
100
  padding: var(--rt-table-pagination-paging-item-padding);
105
101
  border: var(--rt-table-pagination-paging-item-border);
106
102
  border-radius: var(--rt-table-pagination-paging-item-border-radius);
107
-
108
103
  background-color: transparent;
109
104
  cursor: default;
110
105
  pointer-events: none;
@@ -119,13 +114,13 @@ $pagination: (
119
114
  }
120
115
 
121
116
  &:hover:not(.divider) {
122
- color: var(--rt-table-pagination-paging-item-hover-color);
123
117
  background-color: var(--rt-table-pagination-paging-item-hover-background-color);
118
+ color: var(--rt-table-pagination-paging-item-hover-color);
124
119
  }
125
120
 
126
121
  &--active {
127
- color: var(--rt-table-pagination-paging-item-active-color);
128
122
  background-color: var(--rt-table-pagination-paging-item-active-background-color);
123
+ color: var(--rt-table-pagination-paging-item-active-color);
129
124
  }
130
125
 
131
126
  &--enabled {
@@ -138,9 +133,9 @@ $pagination: (
138
133
  }
139
134
 
140
135
  &--divider {
136
+ border: none;
141
137
  cursor: default;
142
138
  pointer-events: none;
143
- border: none;
144
139
  }
145
140
  }
146
141
  }
@@ -148,10 +143,10 @@ $pagination: (
148
143
  .page-size-toggle {
149
144
  display: flex;
150
145
  flex-direction: row;
151
- justify-content: center;
152
146
  align-items: center;
153
- gap: var(--rt-table-pagination-size-toggle-gap);
147
+ justify-content: center;
154
148
  margin: var(--rt-table-pagination-container-margin);
149
+ gap: var(--rt-table-pagination-size-toggle-gap);
155
150
 
156
151
  &--clipped {
157
152
  margin: var(--rt-table-pagination-size-toggle-selector-mobile-margin);
@@ -165,14 +160,11 @@ $pagination: (
165
160
  width: auto;
166
161
  min-width: var(--rt-table-pagination-size-toggle-selector-min-width);
167
162
  height: var(--rt-table-pagination-size-toggle-selector-height);
168
-
169
163
  border: var(--rt-table-pagination-paging-item-border);
170
164
  border-radius: var(--rt-table-pagination-paging-item-border-radius);
171
-
172
165
  background-color: transparent;
173
- cursor: pointer;
174
-
175
166
  color: var(--rt-table-pagination-container-color);
167
+ cursor: pointer;
176
168
  font-size: var(--rt-table-pagination-container-font-size);
177
169
  font-weight: var(--rt-table-pagination-container-font-weight);
178
170
  line-height: var(--rt-table-pagination-container-line-height);
@@ -26,15 +26,13 @@ $base-cell: (
26
26
  );
27
27
 
28
28
  :host {
29
- height: 100%;
30
- width: 100%;
31
-
29
+ position: relative;
32
30
  display: flex;
31
+ width: 100%;
32
+ height: 100%;
33
33
  align-items: center;
34
34
  gap: var(--rt-table-base-cell-host-gap);
35
35
 
36
- position: relative;
37
-
38
36
  @each $element, $elements in $base-cell {
39
37
  @each $style-token, $value in $elements {
40
38
  #{mixins.generateCssVar('table-base-cell', #{$element}, #{$style-token})}: #{$value};
@@ -49,16 +47,16 @@ $base-cell: (
49
47
  }
50
48
 
51
49
  &__title {
52
- width: 100%;
53
50
  display: table;
51
+ width: 100%;
54
52
  table-layout: fixed;
55
53
 
56
54
  &-text {
55
+ overflow: hidden;
57
56
  width: 100%;
58
57
  padding: var(--rt-table-base-cell-title-padding);
59
- white-space: nowrap;
60
- overflow: hidden;
61
58
  text-overflow: ellipsis;
59
+ white-space: nowrap;
62
60
  }
63
61
 
64
62
  &--align {
@@ -90,14 +88,15 @@ $base-cell: (
90
88
 
91
89
  &__copy-button {
92
90
  position: absolute;
93
- visibility: hidden;
94
91
  padding: var(--rt-table-base-cell-copy-button-padding);
95
92
  background-color: var(--rt-table-base-cell-copy-button-background-color);
93
+ visibility: hidden;
96
94
 
97
95
  &--position {
98
96
  &--left {
99
97
  left: var(--rt-table-base-cell-copy-button-position-left);
100
98
  }
99
+
101
100
  &--right {
102
101
  right: var(--rt-table-base-cell-copy-button-position-right);
103
102
  }
@@ -1,4 +1,4 @@
1
1
  :host {
2
- height: 100%;
3
2
  width: 100%;
3
+ height: 100%;
4
4
  }
@@ -44,24 +44,26 @@ $table-container: (
44
44
  );
45
45
 
46
46
  :host {
47
- width: 100%;
48
47
  position: relative;
49
48
  display: flex;
50
49
  overflow: hidden;
50
+ width: 100%;
51
51
 
52
52
  // initial table container scrollbar styles
53
53
  ::-webkit-scrollbar-track:hover {
54
54
  border: 1px solid var(--rt-border-neutral-subtle);
55
55
  }
56
+
56
57
  ::-webkit-scrollbar-thumb {
57
- background: var(--rt-scrollbar-thumb);
58
58
  border: 3px solid transparent;
59
- border-radius: 6px;
59
+ border-radius: var(--rt-radius-sm);
60
+ background: var(--rt-scrollbar-thumb);
60
61
  background-clip: content-box;
61
62
  }
63
+
62
64
  ::-webkit-scrollbar-thumb:hover {
63
- background: var(--rt-scrollbar-thumb-hover);
64
65
  border: 2px solid transparent;
66
+ background: var(--rt-scrollbar-thumb-hover);
65
67
  background-clip: content-box;
66
68
  }
67
69
 
@@ -94,10 +96,10 @@ $table-container: (
94
96
  .table-container {
95
97
  &__selectors {
96
98
  display: flex;
97
- justify-content: flex-start;
98
- align-items: center;
99
- flex-grow: 1;
100
99
  width: 100%;
100
+ flex-grow: 1;
101
+ align-items: center;
102
+ justify-content: flex-start;
101
103
  margin: var(--rt-table-container-selectors-margin);
102
104
  gap: var(--rt-table-container-toolbar-actions-gap);
103
105
 
@@ -110,16 +112,16 @@ $table-container: (
110
112
  }
111
113
 
112
114
  &-counter {
113
- font-size: var(--rt-table-container-selector-counter-font-size);
114
115
  color: var(--rt-table-container-selector-counter-color);
116
+ font-size: var(--rt-table-container-selector-counter-font-size);
115
117
  }
116
118
  }
117
119
 
118
120
  &__toolbar {
119
- width: 100%;
120
121
  display: flex;
121
- justify-content: flex-end;
122
+ width: 100%;
122
123
  align-items: center;
124
+ justify-content: flex-end;
123
125
 
124
126
  &-actions {
125
127
  display: flex;
@@ -143,9 +145,9 @@ $table-container: (
143
145
  }
144
146
 
145
147
  &__content {
148
+ overflow: auto;
146
149
  width: 100%;
147
150
  flex-grow: 1;
148
- overflow: auto;
149
151
  padding: var(--rt-table-container-content-padding);
150
152
 
151
153
  &::-webkit-scrollbar {
@@ -155,12 +157,12 @@ $table-container: (
155
157
  }
156
158
 
157
159
  &__placeholder {
160
+ display: flex;
158
161
  width: var(--rt-table-container-placeholder-width);
159
162
  height: var(--rt-table-container-placeholder-height);
160
- display: flex;
161
163
  flex-direction: column;
162
- justify-content: center;
163
164
  align-items: center;
165
+ justify-content: center;
164
166
  gap: var(--rt-table-container-placeholder-gap);
165
167
 
166
168
  &-icon {
@@ -203,8 +205,8 @@ $table-container: (
203
205
 
204
206
  &-search {
205
207
  width: 100%;
206
- grid-row: 1;
207
208
  justify-content: center;
209
+ grid-row: 1;
208
210
  }
209
211
  }
210
212
  }
@@ -21,8 +21,8 @@ $header-cell: (
21
21
 
22
22
  :host {
23
23
  display: flex;
24
- justify-content: space-between;
25
24
  align-items: center;
25
+ justify-content: space-between;
26
26
  cursor: pointer;
27
27
 
28
28
  @each $element, $elements in $header-cell {
@@ -38,8 +38,8 @@ $header-cell: (
38
38
  }
39
39
 
40
40
  .header-cell-label {
41
- flex-grow: 1;
42
41
  display: flex;
42
+ flex-grow: 1;
43
43
  align-items: center;
44
44
  gap: var(--rt-table-header-cell-label-gap);
45
45
 
@@ -64,9 +64,9 @@ $header-cell: (
64
64
  }
65
65
 
66
66
  &__text {
67
- white-space: nowrap;
68
67
  overflow: hidden;
69
68
  text-overflow: ellipsis;
69
+ white-space: nowrap;
70
70
  }
71
71
 
72
72
  &__suffix {
@@ -85,10 +85,9 @@ $header-cell: (
85
85
  .header-cell-icons {
86
86
  display: flex;
87
87
  flex-direction: column;
88
- justify-content: center;
89
88
  align-items: center;
89
+ justify-content: center;
90
90
  margin: var(--rt-table-header-cell-icon-margin);
91
-
92
91
  visibility: hidden;
93
92
 
94
93
  &--active {
@@ -98,12 +97,12 @@ $header-cell: (
98
97
  &__icon {
99
98
  width: 0;
100
99
  height: 0;
101
- border-left: 3px solid transparent;
102
100
  border-right: 3px solid transparent;
103
101
  border-bottom: 5.2px solid var(--rt-table-header-cell-icon-color);
102
+ border-left: 3px solid transparent;
104
103
 
105
104
  &--second {
106
- margin-top: 2px;
105
+ margin-top: var(--rt-spacing-2);
107
106
  transform: scaleY(-1);
108
107
  }
109
108
 
@@ -1,9 +1,9 @@
1
1
  :host {
2
- width: 100%;
3
2
  display: flex;
4
- justify-content: flex-start;
3
+ width: 100%;
5
4
  align-items: center;
6
- gap: 0.5rem;
5
+ justify-content: flex-start;
6
+ gap: var(--rt-spacing-8);
7
7
 
8
8
  .table-header-cell-filter-input {
9
9
  width: 100%;
@@ -1,6 +1,6 @@
1
1
  :host {
2
- width: 100%;
3
- height: 100%;
4
2
  display: flex;
5
3
  overflow: hidden;
4
+ width: 100%;
5
+ height: 100%;
6
6
  }
@@ -1,7 +1,7 @@
1
1
  :host {
2
+ display: flex;
2
3
  width: 100vw;
3
4
  height: 100vh;
4
- display: flex;
5
5
  flex-direction: column;
6
6
  margin: -1rem;
7
7
 
@@ -1,16 +1,16 @@
1
1
  :host {
2
+ position: relative;
3
+ display: flex;
4
+ overflow: hidden;
2
5
  width: 100vw;
3
6
  height: 100vh;
4
- display: flex;
5
7
  flex-direction: column;
6
8
  margin: -1rem;
7
- position: relative;
8
- overflow: hidden;
9
9
 
10
10
  .pagination {
11
- width: 100%;
12
11
  position: absolute;
13
12
  top: 0;
14
13
  left: 0;
14
+ width: 100%;
15
15
  }
16
16
  }
@@ -1,7 +1,7 @@
1
1
  :host {
2
+ display: flex;
2
3
  width: 100vw;
3
4
  height: 100vh;
4
- display: flex;
5
5
  flex-direction: column;
6
6
  margin: -1rem;
7
7
  }
@@ -13,7 +13,7 @@ $toggle: (
13
13
  toggle: (
14
14
  border-radius: 6.25rem,
15
15
  background-color: var(--rt-bg-base-subtle),
16
- box-shadow: inset 0 0 0.125rem 0.0625rem rgba(0, 0, 0, 0.05),
16
+ box-shadow: inset 0 0 0.125rem 0.0625rem rgb(0 0 0 / 5%),
17
17
  ),
18
18
  toggle-check: (
19
19
  box-shadow: inset 0 0 0 1.25rem var(--rt-control-checked),
@@ -21,7 +21,7 @@ $toggle: (
21
21
  toggle-switch: (
22
22
  border-radius: 2.25rem,
23
23
  background-color: var(--rt-control-thumb),
24
- box-shadow: 0 0.0625rem 0.125rem rgba(0, 0, 0, 0.2),
24
+ box-shadow: 0 0.0625rem 0.125rem rgb(0 0 0 / 20%),
25
25
  ),
26
26
  toggle-track: (
27
27
  background-color: var(--rt-control-track),
@@ -79,12 +79,12 @@ $toggle: (
79
79
 
80
80
  .rtui-toggle {
81
81
  position: relative;
82
+ overflow: hidden;
82
83
  width: 3.125rem;
83
84
  min-width: 3.125rem;
84
85
  height: 1.875rem;
85
86
  border-radius: var(--rt-toggle-toggle-border-radius);
86
87
  background-color: var(--rt-toggle-toggle-background-color);
87
- overflow: hidden;
88
88
  box-shadow: var(--rt-toggle-toggle-box-shadow);
89
89
  cursor: pointer;
90
90
 
@@ -103,36 +103,30 @@ $toggle: (
103
103
  right: 0.125rem;
104
104
  left: 1.375rem;
105
105
  transition: 0.35s cubic-bezier(0.785, 0.135, 0.15, 0.86);
106
- transition-property: left, right;
107
106
  transition-delay: 0.05s, 0s;
107
+ transition-property: left, right;
108
108
  }
109
109
  }
110
110
 
111
111
  &__switch {
112
112
  position: absolute;
113
- left: 0.125rem;
114
- top: 0.125rem;
115
- bottom: 0.125rem;
116
- right: 1.375rem;
117
- background-color: var(--rt-toggle-toggle-switch-background-color);
118
- border-radius: var(--rt-toggle-toggle-switch-border-radius);
119
113
  z-index: 1;
114
+ border-radius: var(--rt-toggle-toggle-switch-border-radius);
115
+ background-color: var(--rt-toggle-toggle-switch-background-color);
116
+ box-shadow: var(--rt-toggle-toggle-switch-box-shadow);
117
+ inset: 0.125rem 1.375rem 0.125rem 0.125rem;
120
118
  transition: 0.35s cubic-bezier(0.785, 0.135, 0.15, 0.86);
121
- transition-property: left, right;
122
119
  transition-delay: 0s, 0.05s;
123
- box-shadow: var(--rt-toggle-toggle-switch-box-shadow);
120
+ transition-property: left, right;
124
121
  }
125
122
 
126
123
  &__track {
127
124
  position: absolute;
128
- left: 0;
129
- top: 0;
130
- right: 0;
131
- bottom: 0;
132
- transition: 0.35s cubic-bezier(0.785, 0.135, 0.15, 0.86);
133
- background-color: var(--rt-toggle-toggle-track-background-color);
134
- border-radius: var(--rt-toggle-toggle-track-border-radius);
135
125
  border: var(--rt-toggle-toggle-track-border);
126
+ border-radius: var(--rt-toggle-toggle-track-border-radius);
127
+ background-color: var(--rt-toggle-toggle-track-background-color);
128
+ inset: 0;
129
+ transition: 0.35s cubic-bezier(0.785, 0.135, 0.15, 0.86);
136
130
  }
137
131
 
138
132
  // modify
@@ -148,8 +142,8 @@ $toggle: (
148
142
  }
149
143
 
150
144
  .rtui-toggle__check:checked ~ .rtui-toggle__switch {
151
- left: 1.625rem;
152
145
  right: 0.125rem;
146
+ left: 1.625rem;
153
147
  }
154
148
  }
155
149
 
@@ -165,8 +159,8 @@ $toggle: (
165
159
  }
166
160
 
167
161
  .rtui-toggle__check:checked ~ .rtui-toggle__switch {
168
- left: 0.75rem;
169
162
  right: 0.125rem;
163
+ left: 0.75rem;
170
164
  }
171
165
  }
172
166
  }
@@ -1,9 +1,9 @@
1
1
  :host {
2
+ display: flex;
2
3
  width: 100vw;
3
4
  height: 100vh;
4
- display: flex;
5
5
  flex-direction: column;
6
- justify-content: center;
7
6
  align-items: center;
7
+ justify-content: center;
8
8
  margin: -1rem;
9
9
  }
@@ -40,9 +40,8 @@ $toolbar: (
40
40
  --mat-toolbar-standard-height: var(--rt-toolbar-body-mobile-height);
41
41
  --mdc-secondary-navigation-tab-container-height: var(--rt-toolbar-body-mobile-height);
42
42
 
43
- min-height: var(--rt-toolbar-body-mobile-height);
44
43
  height: var(--rt-toolbar-body-mobile-height);
45
-
44
+ min-height: var(--rt-toolbar-body-mobile-height);
46
45
  padding: var(--rt-toolbar-body-padding);
47
46
  background-color: transparent;
48
47
 
@@ -61,25 +60,21 @@ $toolbar: (
61
60
 
62
61
  .bars {
63
62
  position: relative;
64
-
65
63
  display: flex;
66
64
  width: 100%;
67
65
  height: 100%;
68
-
66
+ border-bottom: var(--rt-toolbar-bars-border-bottom-width) var(--rt-toolbar-bars-border-bottom-style)
67
+ var(--rt-toolbar-bars-border-bottom-color);
69
68
  background-color: var(--rt-toolbar-body-background-color);
70
69
 
71
- border-bottom-style: var(--rt-toolbar-bars-border-bottom-style);
72
- border-bottom-width: var(--rt-toolbar-bars-border-bottom-width);
73
- border-bottom-color: var(--rt-toolbar-bars-border-bottom-color);
74
-
75
70
  &__bar {
76
71
  &--left {
77
72
  width: var(--rt-toolbar-bars-left-width);
78
73
  }
79
74
 
80
75
  &--center {
81
- width: var(--rt-toolbar-bars-center-width);
82
76
  overflow: hidden;
77
+ width: var(--rt-toolbar-bars-center-width);
83
78
  }
84
79
 
85
80
  &--right {
@@ -89,8 +84,8 @@ $toolbar: (
89
84
  &--left,
90
85
  &--center,
91
86
  &--right {
92
- height: 100%;
93
87
  display: flex;
88
+ height: 100%;
94
89
  align-items: center;
95
90
  }
96
91
  }