@odx/ui 4.10.0 → 4.10.1
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/CHANGELOG.md +7 -0
- package/ag-grid-theme.css +1 -261
- package/charts-theme.css +1 -45
- package/core-theme.css +1 -7478
- package/package.json +9 -3
- package/scss/_application.scss +59 -0
- package/scss/_base.scss +31 -0
- package/scss/_breakpoints.scss +86 -0
- package/scss/_color-palettes-dark.scss +53 -0
- package/scss/_color-palettes.scss +96 -0
- package/scss/_colors-dark.scss +53 -0
- package/scss/_colors.scss +98 -0
- package/scss/_content.scss +25 -0
- package/scss/_controls.scss +57 -0
- package/scss/_description-list.scss +30 -0
- package/scss/_dimensions.scss +81 -0
- package/scss/_helpers.scss +85 -0
- package/scss/_index.scss +8 -0
- package/scss/_layout.scss +162 -0
- package/scss/_motion.scss +14 -0
- package/scss/_skeleton.scss +49 -0
- package/scss/_text-list.scss +18 -0
- package/scss/_typography.scss +21 -0
- package/scss/_utils.scss +131 -0
- package/scss/_vertical-rythm.scss +3 -0
- package/scss/_visuals.scss +27 -0
- package/scss/accordion-item.component.scss +56 -0
- package/scss/accordion.component.scss +3 -0
- package/scss/action-group.component.scss +29 -0
- package/scss/active-indicator.scss +25 -0
- package/scss/ag-grid/theme.scss +303 -0
- package/scss/area-header.component.scss +163 -0
- package/scss/autocomplete.component.scss +14 -0
- package/scss/avatar.component.scss +68 -0
- package/scss/badge.component.scss +49 -0
- package/scss/bar.component.scss +93 -0
- package/scss/brand-logo.component.scss +17 -0
- package/scss/breadcrumbs.component.scss +45 -0
- package/scss/button-group.component.scss +101 -0
- package/scss/button.component.scss +143 -0
- package/scss/calendar.component.scss +243 -0
- package/scss/card.component.scss +232 -0
- package/scss/checkbox.component.scss +136 -0
- package/scss/chip-list.component.scss +23 -0
- package/scss/chip.component.scss +74 -0
- package/scss/circular-progress.component.scss +75 -0
- package/scss/components/card.component.scss +6 -6
- package/scss/components/table.component.scss +1 -0
- package/scss/connected-overlay.scss +63 -0
- package/scss/content-box.component.scss +46 -0
- package/scss/datepicker.component.scss +36 -0
- package/scss/daterangepicker.component.scss +45 -0
- package/scss/dropdown.component.scss +37 -0
- package/scss/error-page.component.scss +46 -0
- package/scss/expandable-list-item.component.scss +59 -0
- package/scss/footer.component.scss +86 -0
- package/scss/form-field.component.scss +264 -0
- package/scss/header-navigation.component.scss +35 -0
- package/scss/header.component.scss +73 -0
- package/scss/icon.component.scss +21 -0
- package/scss/inline-message.component.scss +34 -0
- package/scss/launch-tile.component.scss +119 -0
- package/scss/link.component.scss +28 -0
- package/scss/list-item.component.scss +119 -0
- package/scss/list.component.scss +27 -0
- package/scss/loading-spinner.component.scss +70 -0
- package/scss/logo.component.scss +33 -0
- package/scss/main-menu-button.component.scss +11 -0
- package/scss/main-menu-item.component.scss +55 -0
- package/scss/main-menu.component.scss +139 -0
- package/scss/mainfilter-group.component.scss +163 -0
- package/scss/menu.component.scss +51 -0
- package/scss/modal.component.scss +219 -0
- package/scss/navigation-back.component.scss +23 -0
- package/scss/notification-center.component.scss +74 -0
- package/scss/notification-item.component.scss +41 -0
- package/scss/option.component.scss +40 -0
- package/scss/paginator.component.scss +34 -0
- package/scss/progress.component.scss +41 -0
- package/scss/radio-button.component.scss +127 -0
- package/scss/radio-group.component.scss +14 -0
- package/scss/rail-navigation-item.component.scss +99 -0
- package/scss/rail-navigation.component.scss +53 -0
- package/scss/rich-list-item-header.component.scss +25 -0
- package/scss/rich-list-item.component.scss +59 -0
- package/scss/rich-list.component.scss +3 -0
- package/scss/search-bar.component.scss +47 -0
- package/scss/select.component.scss +75 -0
- package/scss/slider.component.scss +132 -0
- package/scss/spinbox.component.scss +128 -0
- package/scss/switch.component.scss +175 -0
- package/scss/tab-bar-item.component.scss +58 -0
- package/scss/tab-bar.component.scss +124 -0
- package/scss/table.component.scss +95 -0
- package/scss/theme.scss +303 -0
- package/scss/timepicker.component.scss +58 -0
- package/scss/toast-item.component.scss +79 -0
- package/scss/toast.component.scss +33 -0
- package/scss/toggle-button-group.component.scss +65 -0
- package/scss/toggle-button.component.scss +79 -0
- package/scss/tooltip.component.scss +37 -0
- package/scss/wizard-step.component.scss +256 -0
- package/scss/wizard.component.scss +18 -0
- package/24031beb1b96a58f519c.woff2 +0 -0
- package/323d385340fb9fee6450.svg +0 -6
- package/5eabf29514e9649c8c73.woff2 +0 -0
- package/eb2051d1f9da906e0b3e.woff2 +0 -0
|
@@ -0,0 +1,232 @@
|
|
|
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
|
+
@use '../layout/typography' as *;
|
|
8
|
+
|
|
9
|
+
:root {
|
|
10
|
+
--odx-card-avatar-size: 64px;
|
|
11
|
+
--odx-card-content-vertical-alignment: center;
|
|
12
|
+
|
|
13
|
+
@include breakpoints.up(phone) {
|
|
14
|
+
--odx-card-avatar-size: 128px;
|
|
15
|
+
--odx-card-content-vertical-alignment: top;
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
.odx-card {
|
|
20
|
+
$root: &;
|
|
21
|
+
|
|
22
|
+
--odx-card-main-padding: #{dimensions.get-size(math.div(12, 24))};
|
|
23
|
+
--odx-card-gap: #{dimensions.get-size(math.div(12, 24))};
|
|
24
|
+
|
|
25
|
+
$main-padding: var(--odx-card-main-padding);
|
|
26
|
+
|
|
27
|
+
@include motion.transition(box-shadow outline-color color);
|
|
28
|
+
@include utils.interactive(false);
|
|
29
|
+
@include utils.with-outline-bold();
|
|
30
|
+
|
|
31
|
+
background-color: var(--odx-c-background-content);
|
|
32
|
+
behavior: button;
|
|
33
|
+
border-radius: var(--odx-v-border-radius);
|
|
34
|
+
display: block;
|
|
35
|
+
padding: $main-padding;
|
|
36
|
+
position: relative;
|
|
37
|
+
|
|
38
|
+
&--image-card {
|
|
39
|
+
--odx-card-main-padding: #{dimensions.get-size(1)};
|
|
40
|
+
|
|
41
|
+
overflow: clip;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
&.is-disabled * {
|
|
45
|
+
color: var(--odx-c-text-disabled);
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
&__container {
|
|
49
|
+
display: flex;
|
|
50
|
+
gap: var(--odx-card-gap);
|
|
51
|
+
|
|
52
|
+
#{$root}--default &,
|
|
53
|
+
#{$root}--image-card & {
|
|
54
|
+
flex-direction: column;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
@include breakpoints.up(phone) {
|
|
58
|
+
#{$root}--launch-tile-centered & {
|
|
59
|
+
flex-direction: column;
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
#{$root}--launch-tile &,
|
|
64
|
+
#{$root}--launch-tile-centered & {
|
|
65
|
+
@include dimensions.padding-y(0.5);
|
|
66
|
+
@include dimensions.padding-x(math.div(8, 24));
|
|
67
|
+
|
|
68
|
+
gap: dimensions.get-size(math.div(16, 24));
|
|
69
|
+
|
|
70
|
+
@include breakpoints.up(phone) {
|
|
71
|
+
@include dimensions.padding(1, bottom);
|
|
72
|
+
|
|
73
|
+
gap: dimensions.get-size(1);
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
&-image {
|
|
79
|
+
$img-margin: calc(#{$main-padding} * -1);
|
|
80
|
+
|
|
81
|
+
display: block;
|
|
82
|
+
margin: $img-margin $img-margin 0 $img-margin;
|
|
83
|
+
max-height: var(--odx-card-image-max-height);
|
|
84
|
+
max-width: max-content;
|
|
85
|
+
overflow: clip;
|
|
86
|
+
|
|
87
|
+
img {
|
|
88
|
+
aspect-ratio: var(--odx-card-image-aspect-ratio);
|
|
89
|
+
display: block;
|
|
90
|
+
height: auto;
|
|
91
|
+
max-width: 100%;
|
|
92
|
+
object-fit: cover;
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
.odx-chip-list-row:has(.odx-chip) {
|
|
97
|
+
left: $main-padding;
|
|
98
|
+
padding: dimensions.get-size(math.div(6, 24)) 0;
|
|
99
|
+
position: absolute;
|
|
100
|
+
top: $main-padding;
|
|
101
|
+
width: calc(100% - dimensions.get-size(math.div(40, 24)) - #{$main-padding} - dimensions.get-size(math.div(30, 24)));
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
&__content {
|
|
105
|
+
#{$root}--default & {
|
|
106
|
+
padding-right: dimensions.get-size(math.div(40, 24));
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
#{$root}--launch-tile &,
|
|
110
|
+
#{$root}--launch-tile-centered & {
|
|
111
|
+
display: flex;
|
|
112
|
+
flex: 1;
|
|
113
|
+
flex-direction: column;
|
|
114
|
+
justify-content: var(--odx-card-content-vertical-alignment);
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
&__title {
|
|
119
|
+
#{$root}--default & {
|
|
120
|
+
padding-right: dimensions.get-size(math.div(36, 24));
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
#{$root}--launch-tile &,
|
|
124
|
+
#{$root}--launch-tile-centered & {
|
|
125
|
+
font-size: dimensions.get-size(math.div(20, 24));
|
|
126
|
+
line-height: dimensions.get-size(math.div(30, 24));
|
|
127
|
+
overflow-wrap: anywhere;
|
|
128
|
+
|
|
129
|
+
@include typography.font-weight(medium);
|
|
130
|
+
@include typography.line-clamp(3);
|
|
131
|
+
|
|
132
|
+
@include breakpoints.up(phone) {
|
|
133
|
+
@include dimensions.margin-y(math.div(9, 24));
|
|
134
|
+
|
|
135
|
+
font-size: dimensions.get-size(math.div(25, 24));
|
|
136
|
+
}
|
|
137
|
+
}
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
&:focus-visible,
|
|
141
|
+
&:hover,
|
|
142
|
+
&:focus-within:has(:focus-visible) {
|
|
143
|
+
box-shadow: var(--odx-v-box-shadow-layer-1);
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
&--launch-tile,
|
|
147
|
+
&--launch-tile-centered {
|
|
148
|
+
#{$root}__subtitle {
|
|
149
|
+
display: block;
|
|
150
|
+
}
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
@include breakpoints.up(phone) {
|
|
154
|
+
&__content {
|
|
155
|
+
padding-right: unset;
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
&__title,
|
|
159
|
+
&__subtitle {
|
|
160
|
+
#{$root}--launch-tile-centered & {
|
|
161
|
+
text-align: center;
|
|
162
|
+
}
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
&__container {
|
|
166
|
+
padding-right: unset;
|
|
167
|
+
|
|
168
|
+
#{$root}--launch-tile & {
|
|
169
|
+
@include dimensions.padding-y(1);
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
#{$root}--launch-tile-centered & {
|
|
173
|
+
gap: dimensions.get-size(math.div(16, 24));
|
|
174
|
+
}
|
|
175
|
+
}
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
.odx-avatar {
|
|
179
|
+
flex: 0 0 auto;
|
|
180
|
+
height: var(--odx-card-avatar-size);
|
|
181
|
+
width: var(--odx-card-avatar-size);
|
|
182
|
+
|
|
183
|
+
@include dimensions.margin-y(math.div(4, 24));
|
|
184
|
+
|
|
185
|
+
@include breakpoints.up(phone) {
|
|
186
|
+
margin: dimensions.get-size(math.div(4, 24)) auto 0;
|
|
187
|
+
}
|
|
188
|
+
}
|
|
189
|
+
|
|
190
|
+
&__footer {
|
|
191
|
+
@include dimensions.padding-x(0.5);
|
|
192
|
+
|
|
193
|
+
display: flex;
|
|
194
|
+
gap: dimensions.get-size(math.div(12, 24));
|
|
195
|
+
justify-content: flex-end;
|
|
196
|
+
|
|
197
|
+
#{$root}--default & {
|
|
198
|
+
display: block;
|
|
199
|
+
margin-top: $main-padding;
|
|
200
|
+
}
|
|
201
|
+
|
|
202
|
+
#{$root}--image-card & {
|
|
203
|
+
display: none;
|
|
204
|
+
}
|
|
205
|
+
|
|
206
|
+
@include breakpoints.up(phone) {
|
|
207
|
+
#{$root}--launch-tile-centered & {
|
|
208
|
+
justify-content: center;
|
|
209
|
+
}
|
|
210
|
+
|
|
211
|
+
padding-bottom: dimensions.get-size(math.div(12, 24));
|
|
212
|
+
}
|
|
213
|
+
|
|
214
|
+
.odx-button {
|
|
215
|
+
margin: 0;
|
|
216
|
+
}
|
|
217
|
+
}
|
|
218
|
+
|
|
219
|
+
> .odx-action-group {
|
|
220
|
+
margin: 0;
|
|
221
|
+
position: absolute;
|
|
222
|
+
right: $main-padding;
|
|
223
|
+
top: $main-padding;
|
|
224
|
+
}
|
|
225
|
+
|
|
226
|
+
&.is-disabled {
|
|
227
|
+
.odx-avatar {
|
|
228
|
+
color: var(--odx-c-text-disabled);
|
|
229
|
+
filter: saturate(0);
|
|
230
|
+
}
|
|
231
|
+
}
|
|
232
|
+
}
|
|
@@ -0,0 +1,136 @@
|
|
|
1
|
+
@use 'sass:math';
|
|
2
|
+
@use '../layout/helpers';
|
|
3
|
+
@use '../layout/typography' as *;
|
|
4
|
+
@use '../abstract/dimensions';
|
|
5
|
+
@use '../abstract/typography';
|
|
6
|
+
@use '../abstract/utils';
|
|
7
|
+
@use '../abstract/motion';
|
|
8
|
+
|
|
9
|
+
.odx-checkbox {
|
|
10
|
+
$root: &;
|
|
11
|
+
|
|
12
|
+
color: var(--odx-c-text);
|
|
13
|
+
display: inline-block;
|
|
14
|
+
|
|
15
|
+
&.is-disabled {
|
|
16
|
+
color: var(--odx-control-color-disabled);
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
&.is-readonly {
|
|
20
|
+
@include utils.non-interactive();
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
&__label {
|
|
24
|
+
@include dimensions.line-height(1);
|
|
25
|
+
@include motion.transition(background-color color outline-color);
|
|
26
|
+
@include typography.font-size(0);
|
|
27
|
+
@include utils.interactive($focus-within: true);
|
|
28
|
+
|
|
29
|
+
border-radius: var(--odx-v-border-radius-controls);
|
|
30
|
+
color: inherit;
|
|
31
|
+
display: inline-flex;
|
|
32
|
+
min-height: dimensions.get-size(1);
|
|
33
|
+
padding: 0 2px;
|
|
34
|
+
user-select: auto;
|
|
35
|
+
vertical-align: top;
|
|
36
|
+
|
|
37
|
+
#{$root}.is-disabled & {
|
|
38
|
+
cursor: default;
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
&__subtitle {
|
|
43
|
+
@extend .odx-text--small;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
&__input {
|
|
47
|
+
@include utils.visually-hidden();
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
&__indicator {
|
|
51
|
+
@include dimensions.container(1, math.div(20, 24));
|
|
52
|
+
@include motion.transition(background-color color outline-color);
|
|
53
|
+
@include utils.center-content(true);
|
|
54
|
+
@include utils.with-outline();
|
|
55
|
+
|
|
56
|
+
background-color: var(--odx-control-background-color);
|
|
57
|
+
border-radius: var(--odx-v-border-radius-controls);
|
|
58
|
+
color: var(--odx-control-color-selected);
|
|
59
|
+
flex: 0 0 auto;
|
|
60
|
+
outline-color: var(--odx-control-outline-color);
|
|
61
|
+
padding: 1px;
|
|
62
|
+
|
|
63
|
+
> .odx-icon {
|
|
64
|
+
$checkmark-size: math.div(18, 24);
|
|
65
|
+
|
|
66
|
+
@include dimensions.container($checkmark-size);
|
|
67
|
+
@include motion.transition(opacity);
|
|
68
|
+
|
|
69
|
+
font-size: dimensions.get-size($checkmark-size);
|
|
70
|
+
opacity: 0;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
#{$root}:hover & {
|
|
74
|
+
background-color: var(--odx-control-background-color-hover);
|
|
75
|
+
outline-color: var(--odx-control-outline-color-hover);
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
#{$root}.is-active &,
|
|
79
|
+
#{$root}__input:indeterminate ~ &,
|
|
80
|
+
#{$root}__input:checked ~ & {
|
|
81
|
+
background-color: var(--odx-control-background-color-selected);
|
|
82
|
+
outline-color: var(--odx-control-outline-color-selected);
|
|
83
|
+
|
|
84
|
+
> .odx-icon {
|
|
85
|
+
opacity: 1;
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
#{$root}.has-error & {
|
|
90
|
+
background-color: var(--odx-control-background-color-error);
|
|
91
|
+
color: var(--odx-control-color-error);
|
|
92
|
+
outline-color: var(--odx-control-outline-color-error);
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
#{$root}.has-error:hover & {
|
|
96
|
+
outline-color: var(--odx-control-outline-color-error-hover);
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
#{$root}.is-disabled & {
|
|
100
|
+
background-color: var(--odx-control-background-color-disabled);
|
|
101
|
+
color: var(--odx-control-color-disabled);
|
|
102
|
+
outline-color: var(--odx-control-outline-color-disabled);
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
#{$root}.is-readonly & {
|
|
106
|
+
background-color: var(--odx-control-background-color-readonly);
|
|
107
|
+
color: var(--odx-control-color-readonly);
|
|
108
|
+
outline-color: var(--odx-control-outline-color-readonly);
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
&__content {
|
|
113
|
+
@include dimensions.margin(0.5, left);
|
|
114
|
+
|
|
115
|
+
display: flex;
|
|
116
|
+
flex-direction: column;
|
|
117
|
+
padding-left: 2px;
|
|
118
|
+
|
|
119
|
+
&:empty {
|
|
120
|
+
margin: 0;
|
|
121
|
+
padding: 0;
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
&__required {
|
|
126
|
+
@include typography.font-size(0);
|
|
127
|
+
|
|
128
|
+
color: var(--odx-c-error-text);
|
|
129
|
+
margin-left: 2px;
|
|
130
|
+
vertical-align: top;
|
|
131
|
+
|
|
132
|
+
#{$root}.is-disabled & {
|
|
133
|
+
color: var(--odx-control-color-disabled);
|
|
134
|
+
}
|
|
135
|
+
}
|
|
136
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
@use 'sass:math';
|
|
2
|
+
@use '../abstract/dimensions';
|
|
3
|
+
|
|
4
|
+
$form-field-inner-padding: math.div(8, 24);
|
|
5
|
+
|
|
6
|
+
.odx-chip-list {
|
|
7
|
+
$root: &;
|
|
8
|
+
|
|
9
|
+
display: flex;
|
|
10
|
+
flex-direction: column;
|
|
11
|
+
width: 100%;
|
|
12
|
+
|
|
13
|
+
&-row {
|
|
14
|
+
&:has(.odx-chip) {
|
|
15
|
+
@include dimensions.padding($form-field-inner-padding, ('top', 'left', 'right'));
|
|
16
|
+
@include dimensions.padding(math.div(4, 24), ('bottom'));
|
|
17
|
+
|
|
18
|
+
display: flex;
|
|
19
|
+
flex-wrap: wrap;
|
|
20
|
+
gap: dimensions.get-size($form-field-inner-padding);
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
}
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
@use 'sass:math';
|
|
2
|
+
@use '../abstract/dimensions';
|
|
3
|
+
@use '../abstract/utils';
|
|
4
|
+
@use '../abstract/motion';
|
|
5
|
+
@use '../abstract/typography';
|
|
6
|
+
|
|
7
|
+
$sizes: (small 1 -1 math.div(16, 24), medium 1.5 0 1);
|
|
8
|
+
$variants: secondary, highlight, success, danger, warning, confirmation;
|
|
9
|
+
|
|
10
|
+
.odx-chip {
|
|
11
|
+
$root: &;
|
|
12
|
+
|
|
13
|
+
@include typography.font-weight(medium);
|
|
14
|
+
@include motion.transition(background-color color);
|
|
15
|
+
|
|
16
|
+
display: inline-flex;
|
|
17
|
+
gap: dimensions.get-size(math.div(4, 24));
|
|
18
|
+
user-select: none;
|
|
19
|
+
|
|
20
|
+
&__content {
|
|
21
|
+
@include typography.prevent-text-overflow();
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
&__action {
|
|
25
|
+
@include utils.center-content();
|
|
26
|
+
@include motion.transition(background-color color outline);
|
|
27
|
+
|
|
28
|
+
border-radius: 50%;
|
|
29
|
+
margin: 0;
|
|
30
|
+
|
|
31
|
+
#{$root}--warning & {
|
|
32
|
+
background-color: var(--odx-c-warning);
|
|
33
|
+
color: var(--odx-c-warning-text);
|
|
34
|
+
|
|
35
|
+
&:hover {
|
|
36
|
+
background-color: var(--odx-c-warning-hover);
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
&.is-active,
|
|
40
|
+
&:active {
|
|
41
|
+
background-color: var(--odx-c-warning-active);
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
@each $size, $size-factor, $font-size-factor, $icon-size in $sizes {
|
|
47
|
+
&--#{$size} {
|
|
48
|
+
@include dimensions.padding-x(math.div($size-factor, 3));
|
|
49
|
+
@include dimensions.line-height($size-factor);
|
|
50
|
+
@include typography.font-size($font-size-factor);
|
|
51
|
+
|
|
52
|
+
border-radius: dimensions.get-size(math.div($size-factor, 2));
|
|
53
|
+
|
|
54
|
+
#{$root}__action {
|
|
55
|
+
@include dimensions.margin(math.div($size-factor, -3), 'right');
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
> .odx-icon {
|
|
59
|
+
font-size: dimensions.get-size($icon-size);
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
@each $variant in $variants {
|
|
65
|
+
&--#{$variant} {
|
|
66
|
+
background-color: var(--odx-c-#{$variant});
|
|
67
|
+
color: var(--odx-c-#{$variant}-text);
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
> .odx-icon {
|
|
72
|
+
align-self: center;
|
|
73
|
+
}
|
|
74
|
+
}
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
@use '../abstract/motion';
|
|
2
|
+
@use '../abstract/dimensions';
|
|
3
|
+
|
|
4
|
+
@keyframes odx-circular-progress-indicator-animation {
|
|
5
|
+
0% {
|
|
6
|
+
stroke-dashoffset: 100;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
25% {
|
|
10
|
+
stroke-dashoffset: 250;
|
|
11
|
+
transform: rotate(180deg);
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
100% {
|
|
15
|
+
stroke-dashoffset: 100;
|
|
16
|
+
transform: rotate(270deg);
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
@keyframes odx-circular-progress-inner-animation {
|
|
21
|
+
0% {
|
|
22
|
+
transform: rotate(0deg);
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
100% {
|
|
26
|
+
transform: rotate(360deg);
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
.odx-circular-progress {
|
|
31
|
+
$root: &;
|
|
32
|
+
|
|
33
|
+
aspect-ratio: 1;
|
|
34
|
+
display: inline-block;
|
|
35
|
+
height: 100%;
|
|
36
|
+
|
|
37
|
+
&__track,
|
|
38
|
+
&__indicator {
|
|
39
|
+
fill: transparent;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
&__track {
|
|
43
|
+
stroke: var(--gray-100);
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
&__indicator {
|
|
47
|
+
@include motion.transition(stroke-dashoffset);
|
|
48
|
+
|
|
49
|
+
stroke: var(--odx-c-highlight);
|
|
50
|
+
transform: rotate(-90deg);
|
|
51
|
+
transform-origin: 50% 50%;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
&--indeterminate {
|
|
55
|
+
#{$root}__inner {
|
|
56
|
+
animation: 1.75s linear infinite odx-circular-progress-inner-animation;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
#{$root}__indicator {
|
|
60
|
+
animation: 1.75s ease infinite odx-circular-progress-indicator-animation both;
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
&--small {
|
|
65
|
+
@include dimensions.height(2, 1.5);
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
&--medium {
|
|
69
|
+
@include dimensions.height(3, 2.5);
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
&--large {
|
|
73
|
+
@include dimensions.height(4, 4);
|
|
74
|
+
}
|
|
75
|
+
}
|
|
@@ -28,12 +28,6 @@
|
|
|
28
28
|
@include utils.interactive(false);
|
|
29
29
|
@include utils.with-outline-bold();
|
|
30
30
|
|
|
31
|
-
&--image-card {
|
|
32
|
-
--odx-card-main-padding: #{dimensions.get-size(1)};
|
|
33
|
-
|
|
34
|
-
overflow: clip;
|
|
35
|
-
}
|
|
36
|
-
|
|
37
31
|
background-color: var(--odx-c-background-content);
|
|
38
32
|
behavior: button;
|
|
39
33
|
border-radius: var(--odx-v-border-radius);
|
|
@@ -41,6 +35,12 @@
|
|
|
41
35
|
padding: $main-padding;
|
|
42
36
|
position: relative;
|
|
43
37
|
|
|
38
|
+
&--image-card {
|
|
39
|
+
--odx-card-main-padding: #{dimensions.get-size(1)};
|
|
40
|
+
|
|
41
|
+
overflow: clip;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
44
|
&.is-disabled * {
|
|
45
45
|
color: var(--odx-c-text-disabled);
|
|
46
46
|
}
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
@use 'sass:math';
|
|
2
|
+
@use '../abstract/dimensions';
|
|
3
|
+
@use '../abstract/motion';
|
|
4
|
+
@use '../abstract/typography';
|
|
5
|
+
@use '../abstract/utils';
|
|
6
|
+
|
|
7
|
+
.odx-cdk-connected-overlay {
|
|
8
|
+
@include motion.transition(opacity visibility overlay);
|
|
9
|
+
|
|
10
|
+
background: transparent;
|
|
11
|
+
border: 0;
|
|
12
|
+
color: var(--odx-c-text);
|
|
13
|
+
margin: 0;
|
|
14
|
+
opacity: 0;
|
|
15
|
+
overflow: visible;
|
|
16
|
+
padding: 0;
|
|
17
|
+
position: fixed;
|
|
18
|
+
transform: translate(var(--odx-cdk-connected-overlay-position-x, 0), var(--odx-cdk-connected-overlay-position-y, 0));
|
|
19
|
+
transition-behavior: allow-discrete;
|
|
20
|
+
|
|
21
|
+
&.force-hidden {
|
|
22
|
+
display: none;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
&--non-interactive {
|
|
26
|
+
pointer-events: none;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
&__content {
|
|
30
|
+
left: 0 !important;
|
|
31
|
+
max-height: var(--odx-cdk-connected-overlay-max-height-modified, var(--odx-cdk-connected-overlay-max-height, unset));
|
|
32
|
+
max-width: var(--odx-cdk-connected-overlay-max-width-modified, var(--odx-cdk-connected-overlay-max-width, unset));
|
|
33
|
+
min-height: var(--odx-cdk-connected-overlay-min-height-modified, var(--odx-cdk-connected-overlay-min-height, unset));
|
|
34
|
+
min-width: var(--odx-cdk-connected-overlay-min-width-modified, var(--odx-cdk-connected-overlay-min-width, unset));
|
|
35
|
+
position: relative !important;
|
|
36
|
+
top: 0 !important;
|
|
37
|
+
|
|
38
|
+
> * {
|
|
39
|
+
max-height: var(--odx-cdk-connected-overlay-max-height-modified, var(--odx-cdk-connected-overlay-max-height, unset));
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
&:popover-open {
|
|
44
|
+
opacity: 1;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
&.is-hidden:popover-open {
|
|
48
|
+
opacity: 0;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
@starting-style {
|
|
52
|
+
&:popover-open {
|
|
53
|
+
opacity: 0;
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
.odx-cdk-connected-overlay-arrow {
|
|
59
|
+
height: dimensions.get-size(0.5);
|
|
60
|
+
position: fixed;
|
|
61
|
+
transform: rotate(45deg);
|
|
62
|
+
width: dimensions.get-size(0.5);
|
|
63
|
+
}
|
|
@@ -0,0 +1,46 @@
|
|
|
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(0.5, ('top', 'right', 'left'));
|
|
21
|
+
|
|
22
|
+
@include breakpoints.up(phone) {
|
|
23
|
+
@include dimensions.padding(1, ('top', 'right', 'left'));
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
&__footer {
|
|
28
|
+
@include dimensions.padding(0.5, ('right', 'bottom', 'left'));
|
|
29
|
+
|
|
30
|
+
@include breakpoints.up(phone) {
|
|
31
|
+
@include dimensions.padding(1, ('right', 'bottom', 'left'));
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
&__content {
|
|
36
|
+
@include dimensions.padding(0.5);
|
|
37
|
+
|
|
38
|
+
@include breakpoints.up(phone) {
|
|
39
|
+
@include dimensions.padding(1);
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
& > .odx-area-header ~ &__content {
|
|
44
|
+
padding-top: 0;
|
|
45
|
+
}
|
|
46
|
+
}
|