@rt-tools/ui-kit 0.0.4

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/README.md +99 -0
  2. package/fesm2022/rt-tools-ui-kit.mjs +5143 -0
  3. package/fesm2022/rt-tools-ui-kit.mjs.map +1 -0
  4. package/package.json +43 -0
  5. package/rt-tools-ui-kit-0.0.4.tgz +0 -0
  6. package/src/lib/ui-kit/action-bar/components/bar/rtui-action-bar.component.scss +104 -0
  7. package/src/lib/ui-kit/action-bar/components/container/rtui-action-bar-container.component.scss +12 -0
  8. package/src/lib/ui-kit/aside/components/container/aside-container.component.scss +20 -0
  9. package/src/lib/ui-kit/aside/components/error-notification/aside-error-box.component.scss +37 -0
  10. package/src/lib/ui-kit/aside/components/panel/aside-panel.component.scss +243 -0
  11. package/src/lib/ui-kit/aside/stories/aside-component/test-aside.component.scss +4 -0
  12. package/src/lib/ui-kit/buttons/icon-round/rtui-round-icon-button.component.scss +44 -0
  13. package/src/lib/ui-kit/buttons/multi-button/rtui-multi-button.component.scss +92 -0
  14. package/src/lib/ui-kit/checkbox/rtui-checkbox.component.scss +68 -0
  15. package/src/lib/ui-kit/checkbox/stories/component/test-checkbox.component.scss +9 -0
  16. package/src/lib/ui-kit/dynamic-selectors/components/actions/rtui-dynamic-selector-list-actions.component.scss +63 -0
  17. package/src/lib/ui-kit/dynamic-selectors/components/dynamic-input/rtui-dynamic-input.component.scss +3 -0
  18. package/src/lib/ui-kit/dynamic-selectors/components/dynamic-selector/rtui-dynamic-selector.component.scss +7 -0
  19. package/src/lib/ui-kit/dynamic-selectors/components/multi-selector-popup/rtui-multi-selector-popup.component.scss +229 -0
  20. package/src/lib/ui-kit/dynamic-selectors/components/placeholder/rtui-dynamic-selector-placeholder.component.scss +59 -0
  21. package/src/lib/ui-kit/dynamic-selectors/components/selected-list/rtui-dynamic-selector-selected-list.component.scss +35 -0
  22. package/src/lib/ui-kit/dynamic-selectors/strories/component/input/test-dynamic-input.component.scss +16 -0
  23. package/src/lib/ui-kit/dynamic-selectors/strories/component/selector/test-selector.component.scss +22 -0
  24. package/src/lib/ui-kit/file-uploader/rtui-file-upload.component.scss +69 -0
  25. package/src/lib/ui-kit/file-uploader/stories/component/test-file-upload.component.scss +6 -0
  26. package/src/lib/ui-kit/header/header.component.scss +0 -0
  27. package/src/lib/ui-kit/header/stories/component/test-header.component.scss +14 -0
  28. package/src/lib/ui-kit/image-uploader/image-uploader/rtui-image-upload.component.scss +93 -0
  29. package/src/lib/ui-kit/image-uploader/stories/component/test-image-upload.component.scss +9 -0
  30. package/src/lib/ui-kit/info-badge/info-badge.component.scss +62 -0
  31. package/src/lib/ui-kit/info-badge/stories/component/test-info-badge/test-info-badge.component.scss +11 -0
  32. package/src/lib/ui-kit/modal/modal.component.scss +115 -0
  33. package/src/lib/ui-kit/modal/stories/test-modal.component.scss +4 -0
  34. package/src/lib/ui-kit/popover/rtui-popover-container.component.scss +13 -0
  35. package/src/lib/ui-kit/scrollable/scrollable-container.component.scss +64 -0
  36. package/src/lib/ui-kit/side-menu/menu/rtui-side-menu.component.scss +185 -0
  37. package/src/lib/ui-kit/side-menu/menu-sub-item/rtui-side-menu-sub-item.component.scss +97 -0
  38. package/src/lib/ui-kit/side-menu/stories/component/test-side-menu-wrapper.component.scss +48 -0
  39. package/src/lib/ui-kit/snack-bar/snack-bar.component.scss +100 -0
  40. package/src/lib/ui-kit/snack-bar/stories/component/test-snack-bar.component.scss +30 -0
  41. package/src/lib/ui-kit/spinner/spinner.component.scss +49 -0
  42. package/src/lib/ui-kit/table/components/clear-search-button/rtui-clear-button.component.scss +50 -0
  43. package/src/lib/ui-kit/table/components/pagination-view/rtui-pagination.component.scss +191 -0
  44. package/src/lib/ui-kit/table/components/table/rtui-table.component.scss +4 -0
  45. package/src/lib/ui-kit/table/components/table-base-cell/table-base-cell.component.scss +133 -0
  46. package/src/lib/ui-kit/table/components/table-config-aside/rt-table-config-aside.component.scss +4 -0
  47. package/src/lib/ui-kit/table/components/table-container/table-container.component.scss +212 -0
  48. package/src/lib/ui-kit/table/components/table-header-cell/table-header-cell.component.scss +115 -0
  49. package/src/lib/ui-kit/table/components/table-header-filter-cell/table-header-filter-cell.component.scss +11 -0
  50. package/src/lib/ui-kit/table/dynamic-list.component.scss +6 -0
  51. package/src/lib/ui-kit/table/stories/dynamic-list/test-dynamic-list.component.scss +15 -0
  52. package/src/lib/ui-kit/table/stories/pagination/test-pagination-component.scss +16 -0
  53. package/src/lib/ui-kit/table/stories/table/test-table-component.scss +7 -0
  54. package/src/lib/ui-kit/toggle/rtui-toggle.component.scss +174 -0
  55. package/src/lib/ui-kit/toggle/stories/component/test-toggle.component.scss +9 -0
  56. package/src/lib/ui-kit/toolbar/toolbar.component.scss +99 -0
  57. package/src/styles/base/_base.scss +71 -0
  58. package/src/styles/base/_mixin.scss +66 -0
  59. package/src/styles/base/_variables.scss +34 -0
  60. package/src/styles/components/_action-bar.scss +84 -0
  61. package/src/styles/components/_button.scss +364 -0
  62. package/src/styles/components/_checkbox.scss +40 -0
  63. package/src/styles/components/_dynamic-selectors.scss +134 -0
  64. package/src/styles/components/_form.scss +90 -0
  65. package/src/styles/components/_rtui_button.scss +452 -0
  66. package/src/styles/components/_snackbar.scss +103 -0
  67. package/src/styles/components/_table.scss +239 -0
  68. package/src/styles/main.scss +14 -0
  69. package/types/rt-tools-ui-kit.d.ts +1875 -0
@@ -0,0 +1,115 @@
1
+ @use '../../../../../styles/base/mixin' as mixins;
2
+
3
+ $header-cell: (
4
+ label: (
5
+ gap: 0.5rem,
6
+ ),
7
+ prefix: (
8
+ icon-size: 1.5rem,
9
+ ),
10
+ suffix: (
11
+ icon-size: 1.5rem,
12
+ ),
13
+ icon: (
14
+ margin: 0 0 0 1rem,
15
+ color: var(--clr-black-40),
16
+ ),
17
+ icon-active: (
18
+ color: var(--clr-black-100),
19
+ ),
20
+ );
21
+
22
+ :host {
23
+ display: flex;
24
+ justify-content: space-between;
25
+ align-items: center;
26
+ cursor: pointer;
27
+
28
+ @each $element, $elements in $header-cell {
29
+ @each $style-token, $value in $elements {
30
+ #{mixins.generateCssVar('table-header-cell', #{$element}, #{$style-token})}: #{$value};
31
+ }
32
+ }
33
+
34
+ &:hover {
35
+ .header-cell-icons {
36
+ visibility: visible;
37
+ }
38
+ }
39
+
40
+ .header-cell-label {
41
+ flex-grow: 1;
42
+ display: flex;
43
+ align-items: center;
44
+ gap: var(--rt-table-header-cell-label-gap);
45
+
46
+ &--align {
47
+ &--left {
48
+ justify-content: flex-start;
49
+ }
50
+
51
+ &--center {
52
+ justify-content: center;
53
+ }
54
+
55
+ &--right {
56
+ justify-content: flex-end;
57
+ }
58
+ }
59
+
60
+ &__prefix {
61
+ width: var(--rt-table-header-cell-prefix-icon-size);
62
+ height: var(--rt-table-header-cell-prefix-icon-size);
63
+ font-size: var(--rt-table-header-cell-prefix-icon-size);
64
+ }
65
+
66
+ &__text {
67
+ white-space: nowrap;
68
+ overflow: hidden;
69
+ text-overflow: ellipsis;
70
+ }
71
+
72
+ &__suffix {
73
+ width: var(--rt-table-header-cell-suffix-icon-size);
74
+ height: var(--rt-table-header-cell-suffix-icon-size);
75
+ font-size: var(--rt-table-header-cell-suffix-icon-size);
76
+ }
77
+
78
+ &__prefix,
79
+ &__suffix {
80
+ width: fit-content;
81
+ min-width: fit-content;
82
+ }
83
+ }
84
+
85
+ .header-cell-icons {
86
+ display: flex;
87
+ flex-direction: column;
88
+ justify-content: center;
89
+ align-items: center;
90
+ margin: var(--rt-table-header-cell-icon-margin);
91
+
92
+ visibility: hidden;
93
+
94
+ &--active {
95
+ visibility: visible;
96
+ }
97
+
98
+ &__icon {
99
+ width: 0;
100
+ height: 0;
101
+ border-left: 3px solid transparent;
102
+ border-right: 3px solid transparent;
103
+ border-bottom: 5.2px solid var(--rt-table-header-cell-icon-color);
104
+
105
+ &--second {
106
+ margin-top: 2px;
107
+ transform: scaleY(-1);
108
+ }
109
+
110
+ &--active {
111
+ border-bottom-color: var(--rt-table-header-cell-icon-active-color);
112
+ }
113
+ }
114
+ }
115
+ }
@@ -0,0 +1,11 @@
1
+ :host {
2
+ width: 100%;
3
+ display: flex;
4
+ justify-content: flex-start;
5
+ align-items: center;
6
+ gap: 0.5rem;
7
+
8
+ .table-header-cell-filter-input {
9
+ width: 100%;
10
+ }
11
+ }
@@ -0,0 +1,6 @@
1
+ :host {
2
+ width: 100%;
3
+ height: 100%;
4
+ display: flex;
5
+ overflow: hidden;
6
+ }
@@ -0,0 +1,15 @@
1
+ :host {
2
+ width: 100vw;
3
+ height: 100vh;
4
+ display: flex;
5
+ flex-direction: column;
6
+ margin: -1rem;
7
+
8
+ --rt-table-actions-container-background-color: var(--mat-sidenav-container-background-color);
9
+ --rt-table-row-height: 64px;
10
+
11
+ .image-cell {
12
+ width: 100px;
13
+ height: 40px;
14
+ }
15
+ }
@@ -0,0 +1,16 @@
1
+ :host {
2
+ width: 100vw;
3
+ height: 100vh;
4
+ display: flex;
5
+ flex-direction: column;
6
+ margin: -1rem;
7
+ position: relative;
8
+ overflow: hidden;
9
+
10
+ .pagination {
11
+ width: 100%;
12
+ position: absolute;
13
+ top: 0;
14
+ left: 0;
15
+ }
16
+ }
@@ -0,0 +1,7 @@
1
+ :host {
2
+ width: 100vw;
3
+ height: 100vh;
4
+ display: flex;
5
+ flex-direction: column;
6
+ margin: -1rem;
7
+ }
@@ -0,0 +1,174 @@
1
+ @use '../../../styles/base/mixin' as mixins;
2
+
3
+ $toggle: (
4
+ container: (
5
+ display: flex,
6
+ align-items: center,
7
+ justify-content: space-between,
8
+ gap: 1rem,
9
+ ),
10
+ container-disabled: (
11
+ opacity: 0.6,
12
+ ),
13
+ toggle: (
14
+ border-radius: 6.25rem,
15
+ background-color: var(--clr-gray-5),
16
+ box-shadow: inset 0 0 0.125rem 0.0625rem rgba(0, 0, 0, 0.05),
17
+ ),
18
+ toggle-check: (
19
+ box-shadow: inset 0 0 0 1.25rem var(--clr-black-80),
20
+ ),
21
+ toggle-switch: (
22
+ border-radius: 2.25rem,
23
+ background-color: var(--clr-white-100),
24
+ box-shadow: 0 0.0625rem 0.125rem rgba(0, 0, 0, 0.2),
25
+ ),
26
+ toggle-track: (
27
+ background-color: var(--clr-gray-10),
28
+ border-radius: 2.5rem,
29
+ border: 0.0625rem solid var(--clr-gray-15),
30
+ ),
31
+ label: (
32
+ color: var(--clr-black-60),
33
+ font-size: 0.875rem,
34
+ ),
35
+ label-active: (
36
+ color: var(--clr-black-100),
37
+ ),
38
+ label-hover: (
39
+ color: var(--clr-black-100),
40
+ cursor: pointer,
41
+ ),
42
+ );
43
+
44
+ :host {
45
+ @each $element, $elements in $toggle {
46
+ @each $style-token, $value in $elements {
47
+ #{mixins.generateCssVar('toggle', #{$element}, #{$style-token})}: #{$value};
48
+ }
49
+ }
50
+
51
+ .rtui-toggle-container {
52
+ display: var(--rt-toggle-container-display);
53
+ align-items: var(--rt-toggle-container-align-items);
54
+ justify-content: var(--rt-toggle-container-justify-content);
55
+ gap: var(--rt-toggle-container-gap);
56
+
57
+ &--disabled {
58
+ opacity: var(--rt-toggle-container-disabled-opacity);
59
+
60
+ .rtui-toggle,
61
+ .rtui-toggle-container__label {
62
+ pointer-events: none;
63
+ }
64
+ }
65
+
66
+ &__label {
67
+ color: var(--rt-toggle-label-color);
68
+ font-size: var(--rt-toggle-label-font-size);
69
+
70
+ &:hover {
71
+ color: var(--rt-toggle-label-hover-color);
72
+ cursor: pointer;
73
+ }
74
+
75
+ &--active {
76
+ color: var(--rt-toggle-label-active-color);
77
+ }
78
+ }
79
+
80
+ .rtui-toggle {
81
+ position: relative;
82
+ width: 3.125rem;
83
+ min-width: 3.125rem;
84
+ height: 1.875rem;
85
+ border-radius: var(--rt-toggle-toggle-border-radius);
86
+ background-color: var(--rt-toggle-toggle-background-color);
87
+ overflow: hidden;
88
+ box-shadow: var(--rt-toggle-toggle-box-shadow);
89
+ cursor: pointer;
90
+
91
+ b {
92
+ display: block;
93
+ }
94
+
95
+ &__check {
96
+ display: none;
97
+
98
+ &:checked ~ .rtui-toggle__track {
99
+ box-shadow: var(--rt-toggle-toggle-check-box-shadow);
100
+ }
101
+
102
+ &:checked ~ .rtui-toggle__switch {
103
+ right: 0.125rem;
104
+ left: 1.375rem;
105
+ transition: 0.35s cubic-bezier(0.785, 0.135, 0.15, 0.86);
106
+ transition-property: left, right;
107
+ transition-delay: 0.05s, 0s;
108
+ }
109
+ }
110
+
111
+ &__switch {
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
+ z-index: 1;
120
+ transition: 0.35s cubic-bezier(0.785, 0.135, 0.15, 0.86);
121
+ transition-property: left, right;
122
+ transition-delay: 0s, 0.05s;
123
+ box-shadow: var(--rt-toggle-toggle-switch-box-shadow);
124
+ }
125
+
126
+ &__track {
127
+ 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
+ border: var(--rt-toggle-toggle-track-border);
136
+ }
137
+
138
+ // modify
139
+ &--md {
140
+ width: 3rem;
141
+ min-width: 3rem;
142
+ height: 1.5rem;
143
+
144
+ .rtui-toggle {
145
+ &__switch {
146
+ right: 1.625rem;
147
+ }
148
+ }
149
+
150
+ .rtui-toggle__check:checked ~ .rtui-toggle__switch {
151
+ left: 1.625rem;
152
+ right: 0.125rem;
153
+ }
154
+ }
155
+
156
+ &--sm {
157
+ width: 1.5rem;
158
+ min-width: 1.5rem;
159
+ height: 0.875rem;
160
+
161
+ .rtui-toggle {
162
+ &__switch {
163
+ right: 0.75rem;
164
+ }
165
+ }
166
+
167
+ .rtui-toggle__check:checked ~ .rtui-toggle__switch {
168
+ left: 0.75rem;
169
+ right: 0.125rem;
170
+ }
171
+ }
172
+ }
173
+ }
174
+ }
@@ -0,0 +1,9 @@
1
+ :host {
2
+ width: 100vw;
3
+ height: 100vh;
4
+ display: flex;
5
+ flex-direction: column;
6
+ justify-content: center;
7
+ align-items: center;
8
+ margin: -1rem;
9
+ }
@@ -0,0 +1,99 @@
1
+ @use '../../../styles/base/variables' as vars;
2
+ @use '../../../styles/base/mixin' as mixins;
3
+
4
+ $toolbar: (
5
+ body: (
6
+ height: 3rem,
7
+ padding: 0 1rem,
8
+ background-color: transparent,
9
+ ),
10
+ body-mobile: (
11
+ height: 3rem,
12
+ ),
13
+ bars: (
14
+ border-bottom-style: solid,
15
+ border-bottom-width: 1px,
16
+ border-bottom-color: var(--clr-black-20),
17
+ ),
18
+ bars-left: (
19
+ width: fit-content,
20
+ ),
21
+ bars-center: (
22
+ width: 100%,
23
+ ),
24
+ bars-right: (
25
+ width: fit-content,
26
+ ),
27
+ );
28
+
29
+ :host {
30
+ @each $element, $elements in $toolbar {
31
+ @each $style-token, $value in $elements {
32
+ #{mixins.generateCssVar('toolbar', #{$element}, #{$style-token})}: #{$value};
33
+ }
34
+ }
35
+
36
+ // hide mat tab group border bottom styles
37
+ --mat-tab-header-divider-height: 0;
38
+
39
+ .toolbar {
40
+ --mat-toolbar-standard-height: var(--rt-toolbar-body-mobile-height);
41
+ --mdc-secondary-navigation-tab-container-height: var(--rt-toolbar-body-mobile-height);
42
+
43
+ min-height: var(--rt-toolbar-body-mobile-height);
44
+ height: var(--rt-toolbar-body-mobile-height);
45
+
46
+ padding: var(--rt-toolbar-body-padding);
47
+ background-color: transparent;
48
+
49
+ &--sticky {
50
+ position: sticky;
51
+ top: 0;
52
+ }
53
+
54
+ @include mixins.media-breakpoint-up(vars.$device-sm) {
55
+ --mat-toolbar-standard-height: var(--rt-toolbar-body-height);
56
+ --mdc-secondary-navigation-tab-container-height: var(--rt-toolbar-body-height);
57
+
58
+ height: var(--rt-toolbar-body-height);
59
+ min-height: var(--rt-toolbar-body-height);
60
+ }
61
+
62
+ .bars {
63
+ position: relative;
64
+
65
+ display: flex;
66
+ width: 100%;
67
+ height: 100%;
68
+
69
+ background-color: var(--rt-toolbar-body-background-color);
70
+
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
+ &__bar {
76
+ &--left {
77
+ width: var(--rt-toolbar-bars-left-width);
78
+ }
79
+
80
+ &--center {
81
+ width: var(--rt-toolbar-bars-center-width);
82
+ overflow: hidden;
83
+ }
84
+
85
+ &--right {
86
+ width: var(--rt-toolbar-bars-right-width);
87
+ }
88
+
89
+ &--left,
90
+ &--center,
91
+ &--right {
92
+ height: 100%;
93
+ display: flex;
94
+ align-items: center;
95
+ }
96
+ }
97
+ }
98
+ }
99
+ }
@@ -0,0 +1,71 @@
1
+ @use './mixin' as mixins;
2
+
3
+ $palette: (
4
+ white: (
5
+ 100: #ffffff,
6
+ ),
7
+ gray: (
8
+ 5: #f5f6f8,
9
+ 10: #e8e8e8,
10
+ 15: #d1d1d1,
11
+ 20: #ccc,
12
+ ),
13
+ black: (
14
+ 10: #f3f3f3,
15
+ 15: #eeeeee,
16
+ 20: #e0e0e0,
17
+ 30: #b2cbca,
18
+ 40: #a3a3a3,
19
+ 60: #747474,
20
+ 80: #323033,
21
+ 100: #181818,
22
+ ),
23
+ red: (
24
+ 10: #fdedee,
25
+ 20: #efc0c1,
26
+ 40: #f7b9bb,
27
+ 60: #e88487,
28
+ 80: #df6064,
29
+ 100: #eb5055,
30
+ ),
31
+ orange: (
32
+ 5: #f6e4d9,
33
+ 10: #e8cbbf,
34
+ 20: #e1ba9e,
35
+ 40: #e4a985,
36
+ 60: #f1a05d,
37
+ 70: #f2994a,
38
+ 80: #ee7a34,
39
+ 100: #ef7128,
40
+ ),
41
+ blue: (
42
+ 20: #eaedfcff,
43
+ 40: #b3ceef,
44
+ 60: #6d96e8,
45
+ 80: #4285f4,
46
+ 100: #4284d7,
47
+ ),
48
+ green: (
49
+ 10: #e5f8f4,
50
+ 20: #baf4e0,
51
+ 40: #5dbfbc,
52
+ 60: #46c4c0,
53
+ 80: #21b18e,
54
+ 100: #01af8d,
55
+ ),
56
+ );
57
+
58
+ :root {
59
+ @each $family, $set in $palette {
60
+ @each $saturate, $clr in $set {
61
+ #{mixins.generateCssClrVar($family, $saturate)}: #{$clr};
62
+ }
63
+ }
64
+
65
+ --clr-base-accent: #0d1c2b;
66
+ --clr-txt: rgba(0, 0, 0, 0.87);
67
+ --clr-white-rgb: 255, 255, 255;
68
+
69
+ // Buttons
70
+ --rt-button-box-shadow: 0 3px 5px -1px rgba(0, 0, 0, 0.2), 0 6px 10px 0 rgba(0, 0, 0, 0.12), 0 1px 18px 0 rgba(0, 0, 0, 0.14);
71
+ }
@@ -0,0 +1,66 @@
1
+ @use 'sass:math';
2
+ @use './variables' as vars;
3
+
4
+ // css clr var generator
5
+ // #{generateCssVar(red, 100)}: #eb5055;
6
+ @function generateCssClrVar($color, $saturate) {
7
+ @return --#{vars.$styles-clr-prefix}-#{$color}-#{$saturate};
8
+ }
9
+
10
+ // css var generator
11
+ // #{generateCssVar(table-base-cell, suffix-icon, size)}: 1rem;
12
+ @function generateCssVar($component-name, $element, $style-token) {
13
+ @return --#{vars.$styles-prefix}-#{$component-name}-#{$element}-#{$style-token};
14
+ }
15
+
16
+ // convert hex to rgb values
17
+ // #{convert-hex-to-rgb-values(#ab2727)}: 171, 39, 39;
18
+ @function convert-hex-to-rgb-values($hex) {
19
+ $r: red($hex);
20
+ $g: green($hex);
21
+ $b: blue($hex);
22
+
23
+ @return $r + ', ' + $g + ', ' + $b;
24
+ }
25
+
26
+ // px to rem
27
+ // font-size: rem(16);
28
+ $browser-context: 16;
29
+ @function rem($valueRem, $context: $browser-context) {
30
+ @return #{math.div($valueRem, $context)}rem;
31
+ }
32
+
33
+ // media query
34
+ // @include media-breakpoint-down($device-sm) { font-size: 1rem; }
35
+ @mixin media-breakpoint-up($size) {
36
+ @media screen and (min-width: $size) {
37
+ @content;
38
+ }
39
+ }
40
+
41
+ @mixin media-breakpoint-down($size) {
42
+ @media screen and (max-width: $size - 1) {
43
+ @content;
44
+ }
45
+ }
46
+
47
+ @mixin flex-column-center {
48
+ display: flex;
49
+ flex-direction: column;
50
+ justify-content: center;
51
+ align-items: center;
52
+ }
53
+
54
+ @mixin visually-hidden {
55
+ position: absolute;
56
+ width: 1px;
57
+ height: 1px;
58
+ margin: -1px;
59
+ border: 0;
60
+ padding: 0;
61
+ white-space: nowrap;
62
+ clip-path: inset(100%);
63
+ clip: rect(0 0 0 0);
64
+ overflow: hidden;
65
+ pointer-events: none;
66
+ }
@@ -0,0 +1,34 @@
1
+ /* Material Theme */
2
+ $main-theme: light;
3
+
4
+ $styles-clr-prefix: 'clr';
5
+ $styles-prefix: 'rt';
6
+
7
+ /* Base */
8
+ $avalon-color: var(--clr-avalon);
9
+ $base-accent: var(--clr-base-accent);
10
+
11
+ /* Device Definitions */
12
+ $device-xl: 1920px; // 120rem
13
+ $device-lg: 1280px; // 80rem
14
+ $device-md: 960px; // 60rem
15
+ $device-sm: 720px; // 45rem
16
+ $device-xs: 600px; // 37.5rem
17
+
18
+ /* Fonts */
19
+ $base-fonts: var(--font-default);
20
+ $base-font-weight: 400;
21
+ $base-font-size: 1rem;
22
+ $base-text-color: var(--clr-txt);
23
+
24
+ /* Colors */
25
+ $clr-red-100: #eb5055;
26
+ $clr-red-10: #fdedee;
27
+
28
+ $clr-green-80: #00b894;
29
+ $clr-green-10: #e5f8f4;
30
+
31
+ /* Components */
32
+ $side-panel-dynamic-clr: var(--clr-base-accent);
33
+ $pagination-dynamic-clr: var(--clr-base-accent);
34
+ $text-highlight-color: #0077bf;