@odx/ui 1.0.0-rc.9 → 1.0.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.
- package/README.md +2 -1
- package/ag-grid-theme.css +1 -0
- package/core-theme.css +1 -1
- package/package.json +4 -1
- package/scss/3rdparty/ag-grid/theme.scss +220 -0
- package/scss/abstract/_breakpoints.scss +12 -6
- package/scss/abstract/_typography.scss +9 -5
- package/scss/abstract/_utils.scss +7 -0
- package/scss/assets/fonts/PangeaText-MediumWeb.woff2 +0 -0
- package/scss/assets/fonts/PangeaText-RegularWeb.woff2 +0 -0
- package/scss/assets/fonts/PangeaText-SemiBoldWeb.woff2 +0 -0
- package/scss/assets/icons.css.hbs +23 -0
- package/scss/assets/images/logo.svg +6 -0
- package/scss/cdk/active-indicator.scss +1 -1
- package/scss/cdk/connected-overlay.scss +2 -2
- package/scss/components/action-group.component.scss +1 -1
- package/scss/components/area-header.component.scss +15 -11
- package/scss/components/avatar.component.scss +5 -1
- package/scss/components/badge.component.scss +7 -16
- package/scss/components/bar.component.scss +8 -1
- package/scss/components/breadcrumbs.component.scss +4 -0
- package/scss/components/button-group.component.scss +13 -10
- package/scss/components/button.component.scss +20 -2
- package/scss/components/card.component.scss +174 -0
- package/scss/components/expandable-list-item.component.scss +66 -0
- package/scss/components/form-field.component.scss +30 -2
- package/scss/components/header.component.scss +9 -3
- package/scss/components/icon.component.scss +4 -9
- package/scss/components/launch-tile.component.scss +4 -3
- package/scss/components/link.component.scss +8 -0
- package/scss/components/loading-spinner.component.scss +14 -3
- package/scss/components/logo.component.scss +6 -1
- package/scss/components/main-menu-button.component.scss +4 -0
- package/scss/components/main-menu-item.component.scss +10 -1
- package/scss/components/main-menu.component.scss +14 -7
- package/scss/components/mainfilter-group.component.scss +141 -0
- package/scss/components/menu.component.scss +36 -0
- package/scss/components/modal.component.scss +25 -9
- package/scss/components/navigation-back.component.scss +23 -0
- package/scss/components/select.component.scss +9 -3
- package/scss/components/spinbox.component.scss +4 -0
- package/scss/components/tab-bar.component.scss +1 -1
- package/scss/components/toast-item.component.scss +0 -2
- package/scss/components/toast.component.scss +2 -2
- package/scss/components/toggle-button-group.component.scss +2 -1
- package/scss/components/toggle-button.component.scss +21 -13
- package/scss/components/tooltip.component.scss +3 -2
- package/scss/core.scss +9 -11
- package/scss/layout/_layout.scss +4 -0
- package/scss/reset.scss +1 -0
- package/scss/skeleton/_skeleton.scss +49 -0
- package/scss/variables/_color-palettes-dark.scss +53 -0
- package/scss/variables/_color-palettes.scss +1 -1
- package/scss/variables/_colors-dark.scss +43 -0
- package/scss/variables/_colors.scss +8 -2
- package/scss/variables/_controls.scss +11 -1
- package/scss/variables/_index.scss +2 -0
- package/scss/variables/_typography.scss +1 -1
- package/scss/variables/_visuals.scss +7 -1
- package/core-icons.css +0 -43
- package/core-icons.woff2 +0 -0
- package/scss/components/menu-item.component.scss +0 -8
|
@@ -0,0 +1,174 @@
|
|
|
1
|
+
@use 'sass:math';
|
|
2
|
+
@use '../abstract/breakpoints';
|
|
3
|
+
@use '../abstract/dimensions';
|
|
4
|
+
@use '../abstract/motion';
|
|
5
|
+
@use '../abstract/typography';
|
|
6
|
+
@use '../abstract/utils';
|
|
7
|
+
|
|
8
|
+
.odx-card {
|
|
9
|
+
$root: &;
|
|
10
|
+
$main-padding: dimensions.get-size(math.div(12, 24));
|
|
11
|
+
|
|
12
|
+
@include motion.transition(box-shadow outline-color, color);
|
|
13
|
+
@include utils.interactive(false);
|
|
14
|
+
@include utils.with-outline-bold();
|
|
15
|
+
|
|
16
|
+
background-color: var(--odx-c-background-content);
|
|
17
|
+
behavior: button;
|
|
18
|
+
border-radius: var(--odx-v-border-radius);
|
|
19
|
+
display: block;
|
|
20
|
+
padding: $main-padding;
|
|
21
|
+
position: relative;
|
|
22
|
+
|
|
23
|
+
&.is-disabled * {
|
|
24
|
+
color: var(--odx-c-text-disabled);
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
&__container {
|
|
28
|
+
display: flex;
|
|
29
|
+
gap: $main-padding;
|
|
30
|
+
|
|
31
|
+
#{$root}--default & {
|
|
32
|
+
flex-direction: column;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
@include breakpoints.up(phone) {
|
|
36
|
+
#{$root}--launch-tile-centered & {
|
|
37
|
+
flex-direction: column;
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
&__content {
|
|
43
|
+
padding-right: dimensions.get-size(math.div(40, 24));
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
&--default {
|
|
47
|
+
#{$root}__title {
|
|
48
|
+
line-height: dimensions.get-size(math.div(36, 24));
|
|
49
|
+
padding-right: dimensions.get-size(math.div(36, 24));
|
|
50
|
+
|
|
51
|
+
@include typography.font-weight(medium);
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
&:focus-visible,
|
|
56
|
+
&:hover,
|
|
57
|
+
&:focus-within:has(:focus-visible) {
|
|
58
|
+
box-shadow: var(--odx-v-box-shadow-layer-1);
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
&--launch-tile,
|
|
62
|
+
&--launch-tile-centered {
|
|
63
|
+
#{$root}__container {
|
|
64
|
+
@include dimensions.padding-y(0.5);
|
|
65
|
+
@include dimensions.padding-x(math.div(8, 24));
|
|
66
|
+
|
|
67
|
+
gap: dimensions.get-size(math.div(16, 24));
|
|
68
|
+
|
|
69
|
+
@include breakpoints.up(phone) {
|
|
70
|
+
@include dimensions.padding(1, bottom);
|
|
71
|
+
|
|
72
|
+
gap: dimensions.get-size(1);
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
.odx-avatar {
|
|
77
|
+
@include dimensions.container(math.div(64, 24));
|
|
78
|
+
@include dimensions.margin-y(math.div(4, 24));
|
|
79
|
+
|
|
80
|
+
flex: 0 0 auto;
|
|
81
|
+
|
|
82
|
+
@include breakpoints.up(phone) {
|
|
83
|
+
@include dimensions.container(math.div(128, 24));
|
|
84
|
+
|
|
85
|
+
margin: dimensions.get-size(math.div(4, 24)) auto 0;
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
#{$root}__title {
|
|
90
|
+
@include typography.font-weight(medium);
|
|
91
|
+
|
|
92
|
+
display: block;
|
|
93
|
+
font-size: dimensions.get-size(math.div(20, 24));
|
|
94
|
+
line-height: dimensions.get-size(math.div(30, 24));
|
|
95
|
+
|
|
96
|
+
@include breakpoints.up(phone) {
|
|
97
|
+
@include dimensions.margin-y(math.div(9, 24));
|
|
98
|
+
|
|
99
|
+
font-size: dimensions.get-size(math.div(25, 24));
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
#{$root}__subtitle {
|
|
104
|
+
display: block;
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
#{$root}__content {
|
|
108
|
+
flex: 1;
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
@include breakpoints.up(phone) {
|
|
113
|
+
&__content {
|
|
114
|
+
padding-right: unset;
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
&__title,
|
|
118
|
+
&__subtitle {
|
|
119
|
+
#{$root}--launch-tile-centered & {
|
|
120
|
+
text-align: center;
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
&__container {
|
|
125
|
+
padding-right: unset;
|
|
126
|
+
|
|
127
|
+
#{$root}--launch-tile & {
|
|
128
|
+
@include dimensions.padding-y(1);
|
|
129
|
+
}
|
|
130
|
+
#{$root}--launch-tile-centered & {
|
|
131
|
+
gap: dimensions.get-size(math.div(16, 24));
|
|
132
|
+
}
|
|
133
|
+
}
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
&__footer {
|
|
137
|
+
@include dimensions.padding-x(0.5);
|
|
138
|
+
|
|
139
|
+
display: flex;
|
|
140
|
+
gap: dimensions.get-size(math.div(12, 24));
|
|
141
|
+
justify-content: flex-end;
|
|
142
|
+
|
|
143
|
+
#{$root}--default & {
|
|
144
|
+
display: block;
|
|
145
|
+
margin-top: $main-padding;
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
@include breakpoints.up(phone) {
|
|
149
|
+
#{$root}--launch-tile-centered & {
|
|
150
|
+
justify-content: center;
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
padding-bottom: dimensions.get-size(math.div(12, 24));
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
.odx-button {
|
|
157
|
+
margin: 0;
|
|
158
|
+
}
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
.odx-card-menu {
|
|
162
|
+
margin: 0;
|
|
163
|
+
position: absolute;
|
|
164
|
+
right: $main-padding;
|
|
165
|
+
top: $main-padding;
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
&.is-disabled {
|
|
169
|
+
.odx-avatar {
|
|
170
|
+
color: var(--odx-c-text-disabled);
|
|
171
|
+
filter: saturate(0);
|
|
172
|
+
}
|
|
173
|
+
}
|
|
174
|
+
}
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
@use 'sass:math';
|
|
2
|
+
@use '../abstract/motion';
|
|
3
|
+
@use '../abstract/dimensions';
|
|
4
|
+
|
|
5
|
+
.odx-expandable-list-item {
|
|
6
|
+
$root: &;
|
|
7
|
+
|
|
8
|
+
position: relative;
|
|
9
|
+
|
|
10
|
+
&::before {
|
|
11
|
+
@include motion.transition(border-color);
|
|
12
|
+
|
|
13
|
+
border-bottom: 1px solid var(--gray-200);
|
|
14
|
+
content: '';
|
|
15
|
+
display: block;
|
|
16
|
+
position: absolute;
|
|
17
|
+
top: 0;
|
|
18
|
+
width: calc(100% - #{dimensions.get-size(math.div(14, 24))});
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
&:hover,
|
|
22
|
+
&:focus-visible,
|
|
23
|
+
&:first-child {
|
|
24
|
+
&::before {
|
|
25
|
+
border-bottom-color: transparent;
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
&--danger + &::before,
|
|
30
|
+
&--expanded + &::before,
|
|
31
|
+
&:hover + &::before {
|
|
32
|
+
border-color: transparent;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
&--danger {
|
|
36
|
+
&::before {
|
|
37
|
+
border-bottom-color: transparent;
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
&--expanded {
|
|
42
|
+
&::before {
|
|
43
|
+
border-bottom-color: transparent;
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
&__content {
|
|
48
|
+
flex: 1;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
&__expand-icon {
|
|
52
|
+
@include motion.transition(transform);
|
|
53
|
+
|
|
54
|
+
position: relative;
|
|
55
|
+
|
|
56
|
+
#{$root}--expanded & {
|
|
57
|
+
transform: scaleY(-1);
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
&__slot {
|
|
62
|
+
.odx-list-item__content {
|
|
63
|
+
@include dimensions.padding(math.div(36, 24), left);
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
}
|
|
@@ -8,7 +8,7 @@ $form-field-label-height: math.div(20, 24);
|
|
|
8
8
|
$form-field-hint-height: math.div(16, 24);
|
|
9
9
|
$form-field-inner-padding: math.div(8, 24);
|
|
10
10
|
|
|
11
|
-
|
|
11
|
+
body {
|
|
12
12
|
--odx-form-field-hint-color: var(--gray-500);
|
|
13
13
|
}
|
|
14
14
|
|
|
@@ -108,7 +108,7 @@ $form-field-inner-padding: math.div(8, 24);
|
|
|
108
108
|
left: 0;
|
|
109
109
|
position: absolute;
|
|
110
110
|
width: 100%;
|
|
111
|
-
z-index: 1;
|
|
111
|
+
z-index: var(--odx-v-layer-1);
|
|
112
112
|
}
|
|
113
113
|
|
|
114
114
|
#{$control-selector} {
|
|
@@ -155,6 +155,19 @@ $form-field-inner-padding: math.div(8, 24);
|
|
|
155
155
|
}
|
|
156
156
|
}
|
|
157
157
|
|
|
158
|
+
#{$root}.has-warning & {
|
|
159
|
+
background-color: var(--odx-input-control-background-color-warning);
|
|
160
|
+
outline-color: var(--odx-input-control-outline-color-warning);
|
|
161
|
+
|
|
162
|
+
&:hover {
|
|
163
|
+
background-color: var(--odx-input-control-background-color-warning);
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
&::after {
|
|
167
|
+
background-color: var(--odx-input-control-color-warning);
|
|
168
|
+
}
|
|
169
|
+
}
|
|
170
|
+
|
|
158
171
|
#{$root}.is-disabled &,
|
|
159
172
|
#{$root}.is-readonly & {
|
|
160
173
|
&::after {
|
|
@@ -192,6 +205,17 @@ $form-field-inner-padding: math.div(8, 24);
|
|
|
192
205
|
color: var(--odx-form-field-hint-color);
|
|
193
206
|
text-align: right;
|
|
194
207
|
}
|
|
208
|
+
|
|
209
|
+
&--simple {
|
|
210
|
+
padding: 0;
|
|
211
|
+
|
|
212
|
+
@include dimensions.margin-y(0.25);
|
|
213
|
+
|
|
214
|
+
#{$root}__label,
|
|
215
|
+
#{$root}__info {
|
|
216
|
+
display: none;
|
|
217
|
+
}
|
|
218
|
+
}
|
|
195
219
|
}
|
|
196
220
|
|
|
197
221
|
.odx-form-field.is-readonly,
|
|
@@ -206,3 +230,7 @@ $form-field-inner-padding: math.div(8, 24);
|
|
|
206
230
|
.odx-form-field-error {
|
|
207
231
|
color: var(--odx-input-control-color-error);
|
|
208
232
|
}
|
|
233
|
+
|
|
234
|
+
.odx-form-field.has-warning .odx-form-field-error {
|
|
235
|
+
color: var(--odx-input-control-color-warning);
|
|
236
|
+
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
@use 'sass:math';
|
|
2
|
+
@use '../abstract/breakpoints';
|
|
2
3
|
@use '../abstract/dimensions';
|
|
3
4
|
@use '../abstract/utils';
|
|
4
5
|
@use '../abstract/typography';
|
|
@@ -17,8 +18,8 @@
|
|
|
17
18
|
margin-right: dimensions.get-size(0.5);
|
|
18
19
|
}
|
|
19
20
|
|
|
20
|
-
|
|
21
|
-
|
|
21
|
+
> .odx-logo,
|
|
22
|
+
&__title {
|
|
22
23
|
margin-right: auto;
|
|
23
24
|
}
|
|
24
25
|
|
|
@@ -34,7 +35,12 @@
|
|
|
34
35
|
padding-right: dimensions.get-size(0.5);
|
|
35
36
|
}
|
|
36
37
|
|
|
37
|
-
|
|
38
|
+
&:has(.odx-title) > .odx-logo {
|
|
38
39
|
display: none;
|
|
40
|
+
margin-right: dimensions.get-size(0.5);
|
|
41
|
+
|
|
42
|
+
@include breakpoints.up(tablet) {
|
|
43
|
+
display: block;
|
|
44
|
+
}
|
|
39
45
|
}
|
|
40
46
|
}
|
|
@@ -8,12 +8,8 @@ $icon-sizes: (small math.div(16, 24) 1, large math.div(32, 24) 2, xlarge math.di
|
|
|
8
8
|
@include dimensions.container(1);
|
|
9
9
|
@include utils.center-content(true);
|
|
10
10
|
|
|
11
|
-
|
|
11
|
+
flex: 0 0 auto;
|
|
12
12
|
font-size: dimensions.get-size(1);
|
|
13
|
-
text-rendering: auto;
|
|
14
|
-
text-transform: none;
|
|
15
|
-
user-select: none;
|
|
16
|
-
white-space: nowrap;
|
|
17
13
|
|
|
18
14
|
@each $size, $size_factor, $factor in $icon-sizes {
|
|
19
15
|
&--#{$size} {
|
|
@@ -27,9 +23,8 @@ $icon-sizes: (small math.div(16, 24) 1, large math.div(32, 24) 2, xlarge math.di
|
|
|
27
23
|
@include dimensions.margin-y(0);
|
|
28
24
|
|
|
29
25
|
font-size: inherit;
|
|
30
|
-
height:
|
|
31
|
-
line-height:
|
|
32
|
-
|
|
33
|
-
width: auto;
|
|
26
|
+
height: 0.8em;
|
|
27
|
+
line-height: 0.8em;
|
|
28
|
+
width: 0.8em;
|
|
34
29
|
}
|
|
35
30
|
}
|
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
@use '../abstract/motion';
|
|
5
5
|
@use '../abstract/typography';
|
|
6
6
|
@use '../abstract/utils';
|
|
7
|
+
@use './avatar.component' as avatar;
|
|
7
8
|
|
|
8
9
|
.odx-launch-tile {
|
|
9
10
|
$root: &;
|
|
@@ -89,7 +90,7 @@
|
|
|
89
90
|
}
|
|
90
91
|
}
|
|
91
92
|
|
|
92
|
-
.odx-
|
|
93
|
+
.odx-launch-tile-menu {
|
|
93
94
|
margin: 0;
|
|
94
95
|
position: absolute;
|
|
95
96
|
right: $main-padding;
|
|
@@ -97,13 +98,13 @@
|
|
|
97
98
|
}
|
|
98
99
|
|
|
99
100
|
.odx-avatar {
|
|
100
|
-
@include
|
|
101
|
+
@include avatar.avatar-size(math.div(64, 24), math.div(64, 24), 2, math.div(48, 24));
|
|
101
102
|
@include dimensions.margin-y(math.div(4, 24));
|
|
102
103
|
|
|
103
104
|
flex: 0 0 auto;
|
|
104
105
|
|
|
105
106
|
@include breakpoints.up(phone) {
|
|
106
|
-
@include
|
|
107
|
+
@include avatar.avatar-size(math.div(128, 24), math.div(128, 24), 4, math.div(76, 24));
|
|
107
108
|
|
|
108
109
|
margin: dimensions.get-size(math.div(4, 24)) auto 0;
|
|
109
110
|
}
|
|
@@ -1,6 +1,14 @@
|
|
|
1
1
|
@use '../abstract/motion';
|
|
2
2
|
@use '../abstract/utils';
|
|
3
3
|
|
|
4
|
+
body {
|
|
5
|
+
@include utils.dark-theme-selector() {
|
|
6
|
+
--odx-c-link: var(--cyan-700);
|
|
7
|
+
--odx-c-link-hover: var(--cyan-800);
|
|
8
|
+
--odx-c-link-active: var(--cyan-900);
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
|
|
4
12
|
.odx-link {
|
|
5
13
|
@include motion.transition(color background-color outline);
|
|
6
14
|
@include utils.interactive();
|
|
@@ -2,6 +2,17 @@
|
|
|
2
2
|
@use '../abstract/motion';
|
|
3
3
|
@use '../abstract/utils';
|
|
4
4
|
|
|
5
|
+
body {
|
|
6
|
+
--odx-loading-spinner-track-stroke-color: var(--blue-700-15);
|
|
7
|
+
|
|
8
|
+
@include utils.dark-theme-selector() {
|
|
9
|
+
.odx-button {
|
|
10
|
+
--odx-loading-spinner-track-stroke-color: var(--blue-700-15);
|
|
11
|
+
}
|
|
12
|
+
--odx-loading-spinner-track-stroke-color: var(--gray-200);
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
|
|
5
16
|
.odx-loading-spinner {
|
|
6
17
|
$root: &;
|
|
7
18
|
|
|
@@ -15,7 +26,7 @@
|
|
|
15
26
|
scroll-behavior: contain;
|
|
16
27
|
top: 0;
|
|
17
28
|
width: 100%;
|
|
18
|
-
z-index:
|
|
29
|
+
z-index: var(--odx-v-layer-2);
|
|
19
30
|
}
|
|
20
31
|
|
|
21
32
|
&__backdrop {
|
|
@@ -32,10 +43,10 @@
|
|
|
32
43
|
position: absolute;
|
|
33
44
|
top: 50%;
|
|
34
45
|
transform: translate(-50%, -50%);
|
|
35
|
-
z-index:
|
|
46
|
+
z-index: var(--odx-v-layer-3);
|
|
36
47
|
|
|
37
48
|
&__track {
|
|
38
|
-
stroke: var(--
|
|
49
|
+
stroke: var(--odx-loading-spinner-track-stroke-color);
|
|
39
50
|
}
|
|
40
51
|
}
|
|
41
52
|
|
|
@@ -1,8 +1,13 @@
|
|
|
1
1
|
@use '../abstract/dimensions';
|
|
2
|
+
@use '../abstract/utils';
|
|
2
3
|
|
|
3
|
-
|
|
4
|
+
body {
|
|
4
5
|
--odx-logo-color: var(--odx-c-primary);
|
|
5
6
|
--odx-logo-color-inverse: var(--odx-c-text-inverse);
|
|
7
|
+
|
|
8
|
+
@include utils.dark-theme-selector() {
|
|
9
|
+
--odx-logo-color: var(--odx-c-text-inverse);
|
|
10
|
+
}
|
|
6
11
|
}
|
|
7
12
|
|
|
8
13
|
.odx-logo {
|
|
@@ -4,12 +4,17 @@
|
|
|
4
4
|
@use '../abstract/utils';
|
|
5
5
|
@use '../abstract/typography';
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
body {
|
|
8
8
|
--odx-main-menu-item-background-color: transparent;
|
|
9
9
|
--odx-main-menu-item-background-color-hover: var(--white-5);
|
|
10
10
|
--odx-main-menu-item-background-color-active: var(--odx-c-focus);
|
|
11
11
|
--odx-main-menu-item-text-color: inherit;
|
|
12
12
|
--odx-main-menu-item-text-color-disabled: var(--odx-c-primary-text-disabled);
|
|
13
|
+
|
|
14
|
+
@include utils.dark-theme-selector() {
|
|
15
|
+
--odx-main-menu-item-background-color-active: var(--cyan-500-15);
|
|
16
|
+
--odx-main-menu-item-text-color-disabled: var(--blue-500);
|
|
17
|
+
}
|
|
13
18
|
}
|
|
14
19
|
|
|
15
20
|
.odx-main-menu-item {
|
|
@@ -44,4 +49,8 @@
|
|
|
44
49
|
@include dimensions.margin(math.div(1, 3), right);
|
|
45
50
|
@include dimensions.margin(math.div(-1, 3), left);
|
|
46
51
|
}
|
|
52
|
+
|
|
53
|
+
&:focus-visible {
|
|
54
|
+
background-color: var(--odx-main-menu-item-background-color-active);
|
|
55
|
+
}
|
|
47
56
|
}
|
|
@@ -7,14 +7,20 @@
|
|
|
7
7
|
@use 'main-menu-button.component';
|
|
8
8
|
@use 'main-menu-item.component';
|
|
9
9
|
|
|
10
|
-
|
|
11
|
-
--odx-main-menu-max-width:
|
|
10
|
+
body {
|
|
11
|
+
--odx-main-menu-max-width: 100dvw;
|
|
12
12
|
--odx-main-menu-background-color: var(--odx-c-primary);
|
|
13
13
|
--odx-main-menu-text-color: var(--odx-c-primary-text);
|
|
14
14
|
--odx-main-menu-highlight-color: var(--odx-c-highlight);
|
|
15
15
|
|
|
16
|
+
@include utils.dark-theme-selector() {
|
|
17
|
+
--odx-main-menu-background-color: var(--blue-800);
|
|
18
|
+
--odx-main-menu-text-color: var(--black);
|
|
19
|
+
--odx-main-menu-highlight-color: var(--cyan-500);
|
|
20
|
+
}
|
|
21
|
+
|
|
16
22
|
@include breakpoints.up(phone) {
|
|
17
|
-
--odx-main-menu-max-width: min(
|
|
23
|
+
--odx-main-menu-max-width: min(100dvw, 384px);
|
|
18
24
|
}
|
|
19
25
|
}
|
|
20
26
|
|
|
@@ -29,12 +35,12 @@
|
|
|
29
35
|
grid-template-rows: auto auto 1fr auto auto;
|
|
30
36
|
height: 100%;
|
|
31
37
|
left: 0;
|
|
32
|
-
max-height:
|
|
38
|
+
max-height: 100dvh;
|
|
33
39
|
max-width: var(--odx-main-menu-max-width);
|
|
34
40
|
position: fixed;
|
|
35
41
|
top: 0;
|
|
36
42
|
width: 100%;
|
|
37
|
-
z-index:
|
|
43
|
+
z-index: var(--odx-v-layer-4);
|
|
38
44
|
}
|
|
39
45
|
|
|
40
46
|
&__overlay {
|
|
@@ -45,7 +51,7 @@
|
|
|
45
51
|
position: fixed;
|
|
46
52
|
top: 0;
|
|
47
53
|
width: 100%;
|
|
48
|
-
z-index:
|
|
54
|
+
z-index: calc(var(--odx-v-layer-4) - 1);
|
|
49
55
|
}
|
|
50
56
|
|
|
51
57
|
&__actions {
|
|
@@ -70,6 +76,7 @@
|
|
|
70
76
|
--odx-v-scrollbar-thumb-color-hover: var(--blue-500);
|
|
71
77
|
|
|
72
78
|
@include dimensions.padding-x(0.5);
|
|
79
|
+
@include dimensions.margin(1, top);
|
|
73
80
|
|
|
74
81
|
display: flex;
|
|
75
82
|
flex-direction: column;
|
|
@@ -97,7 +104,7 @@
|
|
|
97
104
|
}
|
|
98
105
|
|
|
99
106
|
&__footer {
|
|
100
|
-
@include dimensions.height(1);
|
|
107
|
+
@include dimensions.line-height(1);
|
|
101
108
|
@include dimensions.padding-x(1);
|
|
102
109
|
@include dimensions.padding(math.div(16, 24), top);
|
|
103
110
|
@include dimensions.padding(math.div(32, 24), bottom);
|
|
@@ -0,0 +1,141 @@
|
|
|
1
|
+
@use 'sass:math';
|
|
2
|
+
@use '../abstract/dimensions';
|
|
3
|
+
@use '../abstract/typography';
|
|
4
|
+
@use '../abstract/utils';
|
|
5
|
+
|
|
6
|
+
body {
|
|
7
|
+
@include utils.dark-theme-selector() {
|
|
8
|
+
.odx-mainfilter-group {
|
|
9
|
+
--odx-input-control-outline-color: var(--blue-900);
|
|
10
|
+
--odx-input-control-outline-color-hover: var(--blue-900);
|
|
11
|
+
--odx-c-highlight: var(--blue-900);
|
|
12
|
+
--odx-c-highlight-text: var(--white);
|
|
13
|
+
--odx-c-focus-outline: var(--cyan-800);
|
|
14
|
+
--odx-c-focus: var(--focus-bg);
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
.odx-mainfilter-group {
|
|
20
|
+
--odx-input-control-background-color: var(--gray-50);
|
|
21
|
+
--odx-input-control-outline-color: var(--blue-700);
|
|
22
|
+
--odx-c-highlight: var(--blue-700);
|
|
23
|
+
--odx-input-control-outline-color-hover: var(--blue-700);
|
|
24
|
+
--odx-input-control-background-color-hover: var(--gray-100);
|
|
25
|
+
--odx-c-secondary: var(--gray-50);
|
|
26
|
+
--odx-c-secondary-hover: var(--odx-input-control-background-color-hover);
|
|
27
|
+
--odx-c-secondary-active: var(--gray-200);
|
|
28
|
+
--odx-c-focus-outline: var(--cyan-700);
|
|
29
|
+
--odx-c-focus: var(--cyan-50);
|
|
30
|
+
--odx-c-highlight-active: var(--odx-c-focus-outline);
|
|
31
|
+
|
|
32
|
+
.odx-form-field {
|
|
33
|
+
flex: 0;
|
|
34
|
+
position: relative;
|
|
35
|
+
|
|
36
|
+
&__control {
|
|
37
|
+
.odx-form-field-control {
|
|
38
|
+
min-width: dimensions.get-size(math.div(150, 24));
|
|
39
|
+
|
|
40
|
+
&.odx-spinbox {
|
|
41
|
+
min-width: dimensions.get-size(math.div(172, 24));
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
&__label {
|
|
47
|
+
margin-top: 0;
|
|
48
|
+
position: absolute;
|
|
49
|
+
right: 0;
|
|
50
|
+
top: dimensions.get-size(math.div(12, 24));
|
|
51
|
+
z-index: 1;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
&:has(.odx-spinbox) {
|
|
55
|
+
.odx-form-field__label {
|
|
56
|
+
right: dimensions.get-size(math.div(36, 24));
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
&-label {
|
|
61
|
+
@include dimensions.padding-x(math.div(3, 24));
|
|
62
|
+
@include dimensions.padding-y(math.div(2, 24));
|
|
63
|
+
|
|
64
|
+
background-color: var(--odx-input-control-background-color);
|
|
65
|
+
border-radius: var(--odx-v-border-radius-controls);
|
|
66
|
+
display: inline-block;
|
|
67
|
+
font-size: dimensions.get-size(math.div(10, 24));
|
|
68
|
+
line-height: 1;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
&__hint {
|
|
72
|
+
display: none;
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
.odx-button {
|
|
77
|
+
margin-top: calc(var(--odx-vertical-rythm-base-size) * 0.8334);
|
|
78
|
+
outline-offset: -1px;
|
|
79
|
+
outline-width: var(--odx-v-outline-width);
|
|
80
|
+
overflow: visible;
|
|
81
|
+
position: relative;
|
|
82
|
+
|
|
83
|
+
&:not(:focus-visible) {
|
|
84
|
+
outline-color: var(--odx-input-control-outline-color);
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
&:focus-visible {
|
|
88
|
+
background-color: var(--odx-c-focus);
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
&::before {
|
|
92
|
+
@include dimensions.padding-x(math.div(3, 24));
|
|
93
|
+
@include dimensions.padding-y(math.div(2, 24));
|
|
94
|
+
@include typography.prevent-text-overflow();
|
|
95
|
+
|
|
96
|
+
background-color: var(--odx-input-control-background-color);
|
|
97
|
+
border-radius: var(--odx-v-border-radius-controls);
|
|
98
|
+
content: attr(label);
|
|
99
|
+
display: inline-block;
|
|
100
|
+
font-size: dimensions.get-size(math.div(10, 24));
|
|
101
|
+
font-weight: var(--odx-typography-font-weight-normal);
|
|
102
|
+
line-height: 1;
|
|
103
|
+
margin-top: 0;
|
|
104
|
+
position: absolute;
|
|
105
|
+
right: dimensions.get-size(math.div(8, 24));
|
|
106
|
+
top: dimensions.get-size(math.div(-7, 24));
|
|
107
|
+
z-index: 1;
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
.odx-spinbox {
|
|
112
|
+
.odx-spinbox__action {
|
|
113
|
+
&:hover {
|
|
114
|
+
border-color: var(--odx-input-control-outline-color);
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
&:active {
|
|
118
|
+
background-color: var(--odx-c-secondary-active);
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
.odx-toggle-button-group {
|
|
124
|
+
margin: 0;
|
|
125
|
+
|
|
126
|
+
&.is-active {
|
|
127
|
+
&:not(.is-disabled, .is-readonly):hover {
|
|
128
|
+
background-color: unset;
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
&:focus-within:has(:focus-visible) {
|
|
132
|
+
background-color: transparent;
|
|
133
|
+
outline-color: transparent;
|
|
134
|
+
|
|
135
|
+
&:hover {
|
|
136
|
+
background-color: transparent;
|
|
137
|
+
}
|
|
138
|
+
}
|
|
139
|
+
}
|
|
140
|
+
}
|
|
141
|
+
}
|