@odx/ui 1.0.0-rc.1 → 1.0.0-rc.3

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 (64) hide show
  1. package/323d385340fb9fee6450.svg +6 -0
  2. package/LICENSE +1 -0
  3. package/README.md +32 -0
  4. package/core-icons.css +37 -9
  5. package/core-icons.woff2 +0 -0
  6. package/core-theme.css +1 -1
  7. package/package.json +7 -8
  8. package/scss/{modules → abstract}/_breakpoints.scss +11 -11
  9. package/scss/{modules/_vertical-rythm.scss → abstract/_dimensions.scss} +28 -26
  10. package/scss/abstract/_index.scss +5 -0
  11. package/scss/abstract/_motion.scss +10 -0
  12. package/scss/abstract/_typography.scss +25 -0
  13. package/scss/abstract/_utils.scss +114 -0
  14. package/scss/components/accordion-item.component.scss +59 -0
  15. package/scss/components/accordion.component.scss +3 -0
  16. package/scss/components/{action-group/action-group.component.scss → action-group.component.scss} +10 -6
  17. package/scss/components/{area-header/area-header.component.scss → area-header.component.scss} +28 -27
  18. package/scss/components/{avatar/avatar.component.scss → avatar.component.scss} +13 -13
  19. package/scss/components/{badge/badge.component.scss → badge.component.scss} +10 -10
  20. package/scss/components/button-group.component.scss +98 -0
  21. package/scss/components/button.component.scss +123 -0
  22. package/scss/components/checkbox.component.scss +116 -0
  23. package/scss/components/content-box.component.scss +50 -0
  24. package/scss/components/form-field.component.scss +204 -0
  25. package/scss/components/header.component.scss +40 -0
  26. package/scss/components/icon.component.scss +35 -0
  27. package/scss/components/{link/link.component.scss → link.component.scss} +6 -4
  28. package/scss/components/{logo/logo.component.scss → logo.component.scss} +5 -4
  29. package/scss/components/main-menu-button.component.scss +7 -0
  30. package/scss/components/{main-menu/components/main-menu-item.component.scss → main-menu-item.component.scss} +13 -12
  31. package/scss/components/{main-menu/main-menu.component.scss → main-menu.component.scss} +35 -28
  32. package/scss/components/modal.component.scss +85 -0
  33. package/scss/components/radio-button.component.scss +120 -0
  34. package/scss/components/radio-group.component.scss +14 -0
  35. package/scss/components/switch.component.scss +163 -0
  36. package/scss/components/toggle-button-group.component.scss +25 -0
  37. package/scss/components/toggle-button.component.scss +55 -0
  38. package/scss/core.scss +34 -30
  39. package/scss/layout/_base.scss +29 -0
  40. package/scss/layout/_helpers.scss +95 -0
  41. package/scss/{modules → layout}/_layout.scss +96 -46
  42. package/scss/layout/_typography.scss +117 -0
  43. package/scss/{base/_reset.scss → reset.scss} +25 -5
  44. package/scss/variables/_color-palettes.scss +57 -54
  45. package/scss/variables/_colors.scss +12 -15
  46. package/scss/variables/_controls.scss +48 -0
  47. package/scss/variables/_index.scss +6 -0
  48. package/scss/variables/_typography.scss +18 -0
  49. package/scss/variables/_vertical-rythm.scss +3 -0
  50. package/scss/variables/_visuals.scss +12 -7
  51. package/scss/_helpers.scss +0 -15
  52. package/scss/base/_mixins.scss +0 -3
  53. package/scss/base/_utils.scss +0 -19
  54. package/scss/base/mixins/_container.scss +0 -31
  55. package/scss/base/mixins/_control.scss +0 -50
  56. package/scss/base/mixins/_transition.scss +0 -10
  57. package/scss/components/button/button.component.scss +0 -94
  58. package/scss/components/checkbox/checkbox.component.scss +0 -130
  59. package/scss/components/content-box/content-box.component.scss +0 -50
  60. package/scss/components/header/header.component.scss +0 -39
  61. package/scss/components/icon/icon.component.scss +0 -38
  62. package/scss/components/main-menu/components/main-menu-button.component.scss +0 -7
  63. package/scss/components/radio-group/_radio-group.component.scss +0 -145
  64. package/scss/modules/_typography.scss +0 -161
@@ -0,0 +1,123 @@
1
+ @use 'sass:math';
2
+ @use '../abstract/dimensions';
3
+ @use '../abstract/motion';
4
+ @use '../abstract/typography';
5
+ @use '../abstract/utils';
6
+ @use 'avatar.component' as avatar;
7
+ @use 'icon.component';
8
+
9
+ .odx-button {
10
+ $variants: secondary, primary, highlight, success, danger, confirmation;
11
+ $icon-margin: 0.25;
12
+
13
+ @extend .odx-button--secondary;
14
+ @include dimensions.height(2, 1.5);
15
+ @include dimensions.padding-x(2 * $icon-margin);
16
+ @include motion.transition(background-color color outline);
17
+ @include typography.prevent-text-overflow();
18
+ @include typography.font-size(0);
19
+ @include typography.font-weight(medium);
20
+ @include utils.center-content(true);
21
+ @include utils.interactive($with-background: false);
22
+
23
+ border-radius: var(--odx-v-border-radius-controls);
24
+ min-width: dimensions.get-size(1.5);
25
+ vertical-align: middle;
26
+
27
+ &:not(:has(> .odx-icon, > .odx-avatar)) {
28
+ min-width: dimensions.get-size(3);
29
+ }
30
+
31
+ > .odx-icon {
32
+ @include dimensions.margin-x(-$icon-margin);
33
+ }
34
+
35
+ > .odx-icon[alignLeft] {
36
+ @include dimensions.margin($icon-margin, right);
37
+ }
38
+
39
+ > .odx-icon[alignRight] {
40
+ @include dimensions.margin($icon-margin, left);
41
+ }
42
+
43
+ > .odx-avatar {
44
+ @include avatar.avatar-size(1.5, math.div(32, 24), 0, 1);
45
+ @include dimensions.margin-x(-2 * $icon-margin);
46
+ }
47
+
48
+ &--highlight:focus-visible {
49
+ outline-color: var(--blue-400);
50
+ }
51
+
52
+ @each $variant in $variants {
53
+ &--#{$variant} {
54
+ background-color: var(--odx-c-#{$variant});
55
+ color: var(--odx-c-#{$variant}-text);
56
+
57
+ &:hover {
58
+ background-color: var(--odx-c-#{$variant}-hover);
59
+ }
60
+
61
+ &:active {
62
+ background-color: var(--odx-c-#{$variant}-active);
63
+ }
64
+
65
+ &:disabled,
66
+ &.is-disabled {
67
+ background-color: var(--odx-c-#{$variant}-disabled);
68
+ color: var(--odx-c-#{$variant}-text-disabled);
69
+ }
70
+ }
71
+ }
72
+
73
+ &--ghost {
74
+ background-color: transparent;
75
+ color: var(--odx-c-link);
76
+ outline-width: 1px;
77
+
78
+ &:hover {
79
+ background-color: var(--blue-700-5);
80
+ color: var(--odx-c-link-hover);
81
+ }
82
+
83
+ &:active {
84
+ color: var(--odx-c-link-active);
85
+ }
86
+
87
+ &:focus-visible,
88
+ &:active {
89
+ background-color: var(--odx-c-focus);
90
+ }
91
+
92
+ &:disabled,
93
+ &.is-disabled {
94
+ background-color: transparent;
95
+ color: var(--odx-c-link-disabled);
96
+ }
97
+ }
98
+
99
+ &--small {
100
+ $icon-margin: math.div(1, 8);
101
+ @include dimensions.height(1);
102
+ @include dimensions.padding-x(2 * $icon-margin);
103
+ @include typography.font-size(-1);
104
+
105
+ min-width: dimensions.get-size(1);
106
+
107
+ &:not(:has(> .odx-icon, > .odx-avatar)) {
108
+ min-width: dimensions.get-size(2);
109
+ }
110
+
111
+ > .odx-icon {
112
+ @include dimensions.margin-x(-2 * $icon-margin);
113
+ }
114
+
115
+ > .odx-icon[alignLeft] {
116
+ @include dimensions.margin($icon-margin, right);
117
+ }
118
+
119
+ > .odx-icon[alignRight] {
120
+ @include dimensions.margin($icon-margin, left);
121
+ }
122
+ }
123
+ }
@@ -0,0 +1,116 @@
1
+ @use 'sass:math';
2
+ @use '../layout/helpers';
3
+ @use '../abstract/dimensions';
4
+ @use '../abstract/typography';
5
+ @use '../abstract/utils';
6
+ @use '../abstract/motion';
7
+
8
+ .odx-checkbox {
9
+ $root: &;
10
+
11
+ color: var(--odx-c-text);
12
+ display: inline-block;
13
+
14
+ &.is-disabled {
15
+ color: var(--odx-input-control-color-disabled);
16
+ }
17
+
18
+ &.is-readonly {
19
+ @include utils.non-interactive();
20
+ }
21
+
22
+ &__label {
23
+ @include dimensions.line-height(1);
24
+ @include motion.transition(background-color color outline-color);
25
+ @include typography.font-size(0);
26
+ @include utils.interactive($focus-within: true);
27
+
28
+ border-radius: var(--odx-v-border-radius-controls);
29
+ color: inherit;
30
+ display: inline-flex;
31
+ min-height: dimensions.get-size(1);
32
+ padding: 0 2px;
33
+ user-select: auto;
34
+ vertical-align: top;
35
+
36
+ #{$root}.is-disabled & {
37
+ cursor: default;
38
+ }
39
+ }
40
+
41
+ &__input {
42
+ @include utils.visually-hidden();
43
+ }
44
+
45
+ &__indicator {
46
+ @include dimensions.container(1, math.div(20, 24));
47
+ @include motion.transition(background-color color outline-color);
48
+ @include utils.center-content(true);
49
+ @include utils.with-outline();
50
+
51
+ background-color: var(--odx-control-background-color);
52
+ border-radius: var(--odx-v-border-radius-controls);
53
+ color: var(--odx-control-color-selected);
54
+ flex: 0 0 auto;
55
+ outline-color: var(--odx-control-outline-color);
56
+ padding: 1px;
57
+
58
+ > .odx-icon {
59
+ $checkmark-size: math.div(18, 24);
60
+ @include dimensions.container($checkmark-size);
61
+ @include motion.transition(opacity);
62
+
63
+ font-size: dimensions.get-size($checkmark-size);
64
+ opacity: 0;
65
+ }
66
+
67
+ #{$root}:hover & {
68
+ background-color: var(--odx-control-background-color-hover);
69
+ outline-color: var(--odx-control-outline-color-hover);
70
+ }
71
+
72
+ #{$root}.is-active &,
73
+ #{$root}__input:indeterminate ~ &,
74
+ #{$root}__input:checked ~ & {
75
+ background-color: var(--odx-control-background-color-selected);
76
+ outline-color: var(--odx-control-outline-color-selected);
77
+
78
+ > .odx-icon {
79
+ opacity: 1;
80
+ }
81
+ }
82
+
83
+ #{$root}.has-error & {
84
+ background-color: var(--odx-control-background-color-error);
85
+ color: var(--odx-control-color-error);
86
+ outline-color: var(--odx-control-outline-color-error);
87
+ }
88
+
89
+ #{$root}.has-error:hover & {
90
+ outline-color: var(--odx-control-outline-color-error-hover);
91
+ }
92
+
93
+ #{$root}.is-disabled & {
94
+ background-color: var(--odx-control-background-color-disabled);
95
+ color: var(--odx-control-color-disabled);
96
+ outline-color: var(--odx-control-outline-color-disabled);
97
+ }
98
+
99
+ #{$root}.is-readonly & {
100
+ background-color: var(--odx-control-background-color-readonly);
101
+ color: var(--odx-control-color-readonly);
102
+ outline-color: var(--odx-control-outline-color-readonly);
103
+ }
104
+ }
105
+
106
+ &__content {
107
+ @include dimensions.margin(0.5, left);
108
+
109
+ padding-left: 2px;
110
+
111
+ &:empty {
112
+ margin: 0;
113
+ padding: 0;
114
+ }
115
+ }
116
+ }
@@ -0,0 +1,50 @@
1
+ @use '../abstract/breakpoints';
2
+ @use '../abstract/dimensions';
3
+
4
+ .odx-content-box {
5
+ background-color: var(--odx-c-background-content);
6
+ display: block;
7
+
8
+ &__header,
9
+ &__footer {
10
+ align-items: center;
11
+ display: flex;
12
+ flex-wrap: wrap;
13
+
14
+ > * {
15
+ flex: 1 1 auto;
16
+ }
17
+ }
18
+
19
+ &__header {
20
+ @include dimensions.padding(1, ('top', 'right', 'left'));
21
+ @include breakpoints.down(phone) {
22
+ @include dimensions.padding(0.5, ('top', 'right', 'left'));
23
+ }
24
+ }
25
+
26
+ &__footer {
27
+ @include dimensions.padding(1, ('right', 'bottom', 'left'));
28
+ @include breakpoints.down(phone) {
29
+ @include dimensions.padding(0.5, ('right', 'bottom', 'left'));
30
+ }
31
+ }
32
+
33
+ &__content {
34
+ @include dimensions.padding(1);
35
+ @include breakpoints.down(phone) {
36
+ @include dimensions.padding(0.5);
37
+ }
38
+ }
39
+
40
+ .odx-area-header ~ &__content {
41
+ padding-top: 0;
42
+ }
43
+
44
+ .odx-area-header {
45
+ @include dimensions.padding(1, ('top', 'bottom'));
46
+ @include breakpoints.down(phone) {
47
+ @include dimensions.padding(0.5, ('top', 'bottom'));
48
+ }
49
+ }
50
+ }
@@ -0,0 +1,204 @@
1
+ @use 'sass:math';
2
+ @use '../abstract/dimensions';
3
+ @use '../abstract/motion';
4
+ @use '../abstract/typography';
5
+ @use '../abstract/utils';
6
+
7
+ $form-field-label-height: math.div(20, 24);
8
+ $form-field-hint-height: math.div(16, 24);
9
+ $form-field-inner-padding: math.div(8, 24);
10
+
11
+ :root {
12
+ --odx-form-field-hint-color: var(--gray-500);
13
+ }
14
+
15
+ .odx-form,
16
+ .odx-form-group {
17
+ --odx-grid-gutter: #{dimensions.get-size(0.5)};
18
+
19
+ row-gap: 0;
20
+ }
21
+
22
+ .odx-form-field {
23
+ $root: &;
24
+ $control-selector: '> *:not(.odx-form-field__prefix, .odx-form-field__suffix)';
25
+
26
+ @include dimensions.padding($form-field-label-height, top);
27
+
28
+ color: var(--odx-input-control-color);
29
+ display: flex;
30
+ flex-direction: column;
31
+ vertical-align: top;
32
+
33
+ &__label,
34
+ &__info {
35
+ @include dimensions.padding-x($form-field-inner-padding);
36
+
37
+ display: block;
38
+ flex: 1 1 auto;
39
+ }
40
+
41
+ &__prefix,
42
+ &__suffix {
43
+ @include dimensions.height(1.5);
44
+ @include motion.transition(color);
45
+ @include utils.vertical-center-content(true);
46
+
47
+ flex: 0 0 auto;
48
+
49
+ #{$root}.is-disabled & {
50
+ color: var(--odx-input-control-color-disabled);
51
+ }
52
+ }
53
+
54
+ &__prefix:not(:empty) {
55
+ @include dimensions.padding($form-field-inner-padding, left);
56
+ }
57
+
58
+ &__suffix:not(:empty) {
59
+ @include dimensions.padding($form-field-inner-padding, right);
60
+ }
61
+
62
+ &-label {
63
+ @include typography.prevent-text-overflow();
64
+
65
+ display: block;
66
+ max-width: 100%;
67
+ }
68
+
69
+ &__label {
70
+ @include dimensions.line-height($form-field-label-height);
71
+ @include dimensions.margin(-$form-field-label-height, 'top');
72
+ @include typography.font-size(-1);
73
+
74
+ display: flex;
75
+ user-select: none;
76
+
77
+ #{$root}--required:not(.is-readonly, .is-disabled) &::after {
78
+ @include typography.font-size(0);
79
+
80
+ color: var(--odx-c-error-text);
81
+ content: '*';
82
+ margin-left: 2px;
83
+ vertical-align: top;
84
+ }
85
+ }
86
+
87
+ &__control {
88
+ @include dimensions.min-height(1.5);
89
+ @include motion.transition(background-color color outline-color);
90
+ @include utils.with-outline();
91
+ @include utils.focus-state(true, true, $focus-within-selector: $control-selector);
92
+
93
+ background-color: var(--odx-input-control-background-color);
94
+ border-radius: var(--odx-v-border-radius-controls);
95
+ display: flex;
96
+ outline-color: var(--odx-input-control-outline-color);
97
+ overflow: hidden;
98
+ position: relative;
99
+
100
+ &::after {
101
+ @include motion.transition(background-color);
102
+
103
+ background-color: transparent;
104
+ bottom: 0;
105
+ content: '';
106
+ display: block;
107
+ height: 1px;
108
+ left: 0;
109
+ position: absolute;
110
+ width: 100%;
111
+ z-index: 1;
112
+ }
113
+
114
+ #{$control-selector} {
115
+ @include dimensions.padding-x($form-field-inner-padding);
116
+ @include typography.font-weight(medium);
117
+
118
+ vertical-align: middle;
119
+ width: 100%;
120
+
121
+ &::placeholder {
122
+ @include typography.font-weight(normal);
123
+
124
+ color: var(--odx-input-control-placeholder-color);
125
+ opacity: 1;
126
+ }
127
+ }
128
+
129
+ > textarea {
130
+ @include dimensions.padding(0.25, top);
131
+
132
+ height: dimensions.get-size(3);
133
+ resize: vertical;
134
+ }
135
+
136
+ > select {
137
+ border-right: dimensions.get-size(0.25) solid transparent;
138
+ }
139
+
140
+ &:hover {
141
+ background-color: var(--odx-input-control-background-color-hover);
142
+ outline-color: var(--odx-input-control-outline-color-hover);
143
+ }
144
+
145
+ #{$root}.has-error & {
146
+ background-color: var(--odx-input-control-background-color-error);
147
+ outline-color: var(--odx-input-control-outline-color-error);
148
+
149
+ &:hover {
150
+ background-color: var(--odx-input-control-background-color);
151
+ }
152
+
153
+ &::after {
154
+ background-color: var(--odx-input-control-color-error);
155
+ }
156
+ }
157
+
158
+ #{$root}.is-disabled &,
159
+ #{$root}.is-readonly & {
160
+ &::after {
161
+ background-color: transparent;
162
+ }
163
+ }
164
+
165
+ #{$root}.is-disabled & {
166
+ background-color: var(--odx-input-control-background-color-disabled);
167
+ color: var(--odx-input-control-color-disabled);
168
+ outline-color: var(--odx-input-control-outline-color-disabled);
169
+
170
+ #{$control-selector} {
171
+ @include utils.non-interactive;
172
+ }
173
+ }
174
+
175
+ #{$root}.is-readonly & {
176
+ background-color: var(--odx-input-control-background-color-readonly);
177
+ color: var(--odx-input-control-color-readonly);
178
+ outline-color: var(--odx-input-control-outline-color-readonly);
179
+ }
180
+ }
181
+
182
+ &__info {
183
+ @include dimensions.min-height($form-field-hint-height);
184
+ @include dimensions.line-height($form-field-hint-height);
185
+ @include motion.transition(opacity);
186
+ @include typography.font-size(-2);
187
+
188
+ color: var(--odx-form-field-hint-color);
189
+ text-align: right;
190
+ }
191
+ }
192
+
193
+ .odx-form-group,
194
+ .odx-form-field {
195
+ &.is-readonly .odx-form-field__info {
196
+ @include utils.non-interactive();
197
+
198
+ opacity: 0;
199
+ }
200
+ }
201
+
202
+ .odx-form-field-error {
203
+ color: var(--odx-input-control-color-error);
204
+ }
@@ -0,0 +1,40 @@
1
+ @use 'sass:math';
2
+ @use '../abstract/dimensions';
3
+ @use '../abstract/utils';
4
+ @use '../abstract/typography';
5
+ @use '../layout/typography' as *;
6
+
7
+ .odx-header {
8
+ @include dimensions.padding(math.div(20, 24), 'left');
9
+ @include dimensions.padding(0.5, 'right');
10
+ @include dimensions.height(2);
11
+ @include utils.vertical-center-content();
12
+
13
+ background-color: var(--odx-c-background-content);
14
+
15
+ .odx-main-menu-button {
16
+ margin-left: dimensions.get-size(-1 * math.div(1, 3));
17
+ margin-right: dimensions.get-size(0.5);
18
+ }
19
+
20
+ &__title,
21
+ .odx-logo {
22
+ margin-right: auto;
23
+ }
24
+
25
+ &__title {
26
+ @extend .odx-title;
27
+ @extend .odx-title--6;
28
+ @include typography.prevent-text-overflow();
29
+ }
30
+
31
+ .odx-action-group:not(:last-child) {
32
+ border-right: 1px solid var(--odx-c-seperator);
33
+ margin-right: dimensions.get-size(0.5);
34
+ padding-right: dimensions.get-size(0.5);
35
+ }
36
+
37
+ &__title ~ .odx-logo {
38
+ display: none;
39
+ }
40
+ }
@@ -0,0 +1,35 @@
1
+ @use 'sass:math';
2
+ @use '../abstract/dimensions';
3
+ @use '../abstract/utils';
4
+
5
+ $icon-sizes: (small math.div(2, 3) 1, large math.div(4, 3) 2);
6
+
7
+ .odx-icon {
8
+ @include dimensions.container(1);
9
+ @include utils.center-content(true);
10
+
11
+ direction: ltr;
12
+ font-size: dimensions.get-size(1);
13
+ text-rendering: auto;
14
+ text-transform: none;
15
+ user-select: none;
16
+ white-space: nowrap;
17
+
18
+ @each $size, $size_factor, $factor in $icon-sizes {
19
+ &--#{$size} {
20
+ @include dimensions.container($factor, $size_factor);
21
+
22
+ font-size: dimensions.get-size($size_factor);
23
+ }
24
+ }
25
+
26
+ &--inline {
27
+ @include dimensions.margin-y(0);
28
+
29
+ font-size: inherit;
30
+ height: auto;
31
+ line-height: inherit;
32
+ vertical-align: -0.15em;
33
+ width: auto;
34
+ }
35
+ }
@@ -1,16 +1,18 @@
1
- @use '../../base/mixins' as mx;
1
+ @use '../abstract/motion';
2
+ @use '../abstract/utils';
2
3
 
3
4
  .odx-link {
4
- @include mx.interactive();
5
- @include mx.transition(color background-color outline);
5
+ @include motion.transition(color background-color outline);
6
+ @include utils.interactive();
6
7
 
7
8
  border-radius: var(--odx-v-border-radius-controls);
8
9
  color: var(--odx-c-link);
9
10
  padding: 0 2px;
10
11
  position: relative;
12
+ user-select: auto;
11
13
 
12
14
  &::before {
13
- @include mx.transition(width);
15
+ @include motion.transition(width);
14
16
 
15
17
  background-color: currentcolor;
16
18
  bottom: 1px;
@@ -1,4 +1,4 @@
1
- @use '../../modules/vertical-rythm' as vr;
1
+ @use '../abstract/dimensions';
2
2
 
3
3
  :root {
4
4
  --odx-logo-color: var(--odx-c-primary);
@@ -6,22 +6,23 @@
6
6
  }
7
7
 
8
8
  .odx-logo {
9
- @include vr.height(1);
9
+ @include dimensions.height(1);
10
10
 
11
11
  aspect-ratio: 2.5 / 1;
12
12
  background-color: var(--odx-logo-color);
13
13
  display: inline-block;
14
14
  mask-image: url('../assets/images/logo.svg');
15
+ mask-repeat: no-repeat;
15
16
 
16
17
  &--inverse {
17
18
  background-color: var(--odx-logo-color-inverse);
18
19
  }
19
20
 
20
21
  &--medium {
21
- @include vr.height(2, 1.5);
22
+ @include dimensions.height(2, 1.5);
22
23
  }
23
24
 
24
25
  &--large {
25
- @include vr.height(3, 2.5);
26
+ @include dimensions.height(3, 2.5);
26
27
  }
27
28
  }
@@ -0,0 +1,7 @@
1
+ @use 'button.component';
2
+
3
+ .odx-main-menu-button {
4
+ @extend .odx-button--ghost;
5
+
6
+ color: inherit;
7
+ }
@@ -1,7 +1,8 @@
1
1
  @use 'sass:math';
2
- @use '../../../modules/vertical-rythm' as vr;
3
- @use '../../../modules/typography' as t;
4
- @use '../../../base/mixins' as mx;
2
+ @use '../abstract/dimensions';
3
+ @use '../abstract/motion';
4
+ @use '../abstract/utils';
5
+ @use '../abstract/typography';
5
6
 
6
7
  :root {
7
8
  --odx-main-menu-item-background-color: transparent;
@@ -12,17 +13,17 @@
12
13
  }
13
14
 
14
15
  .odx-main-menu-item {
15
- @include mx.interactive();
16
- @include mx.transition(color background-color outline);
17
- @include mx.vertical-center-content();
18
- @include t.prevent-text-overflow();
19
- @include vr.height(3, math.div(7, 3));
20
- @include vr.padding-x(math.div(2, 3));
16
+ @include dimensions.height(3, math.div(7, 3));
17
+ @include dimensions.padding-x(math.div(2, 3));
18
+ @include motion.transition(color background-color outline);
19
+ @include utils.interactive();
20
+ @include utils.vertical-center-content();
21
+ @include typography.font-weight(medium);
22
+ @include typography.prevent-text-overflow();
21
23
 
22
24
  background-color: transparent;
23
25
  border-radius: var(--odx-v-border-radius);
24
26
  color: var(--odx-main-menu-item-text-color);
25
- font-weight: var(--odx-t-font-weight-medium);
26
27
 
27
28
  &:hover {
28
29
  background-color: var(--odx-main-menu-item-background-color-hover);
@@ -39,7 +40,7 @@
39
40
  }
40
41
 
41
42
  > .odx-icon {
42
- @include vr.margin(math.div(1, 3), right);
43
- @include vr.margin(math.div(-1, 3), left);
43
+ @include dimensions.margin(math.div(1, 3), right);
44
+ @include dimensions.margin(math.div(-1, 3), left);
44
45
  }
45
46
  }