@odx/ui 4.10.0 → 4.10.2
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 +13 -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 +6 -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 +100 -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,85 @@
|
|
|
1
|
+
@use 'sass:math';
|
|
2
|
+
@use '../abstract/dimensions';
|
|
3
|
+
@use '../abstract/typography';
|
|
4
|
+
@use '../abstract/utils';
|
|
5
|
+
|
|
6
|
+
html body {
|
|
7
|
+
.odx-no-margin {
|
|
8
|
+
margin: 0;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
@each $size in (4, 8, 12, 16, 24, 36, 48) {
|
|
12
|
+
$factor: math.div($size, 24);
|
|
13
|
+
|
|
14
|
+
@each $direction in (top, right, bottom, left) {
|
|
15
|
+
.odx-margin-#{$direction}-#{$size} {
|
|
16
|
+
@include dimensions.margin($factor, $direction);
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
.odx-margin-x-#{$size} {
|
|
21
|
+
@include dimensions.margin-x($factor);
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
.odx-margin-y-#{$size} {
|
|
25
|
+
@include dimensions.margin-y($factor);
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
.odx-margin-#{$size} {
|
|
29
|
+
@include dimensions.margin($factor);
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
@each $size in (4, 8, 12, 16, 24, 36, 48) {
|
|
34
|
+
$factor: math.div($size, 24);
|
|
35
|
+
|
|
36
|
+
@each $direction in (top, right, bottom, left) {
|
|
37
|
+
.odx-padding-#{$direction}-#{$size} {
|
|
38
|
+
@include dimensions.padding($factor, $direction);
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
.odx-padding-x-#{$size} {
|
|
43
|
+
@include dimensions.padding-x($factor);
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
.odx-padding-y-#{$size} {
|
|
47
|
+
@include dimensions.padding-y($factor);
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
.odx-padding-#{$size} {
|
|
51
|
+
@include dimensions.padding($factor);
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
.odx-visually-hidden {
|
|
56
|
+
@include utils.visually-hidden();
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
hr,
|
|
60
|
+
.odx-separator {
|
|
61
|
+
@include dimensions.height(1, math.div(1, 24));
|
|
62
|
+
|
|
63
|
+
background-color: var(--odx-c-separator);
|
|
64
|
+
border: 0;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
.odx-fs-normal {
|
|
68
|
+
@include typography.font-weight(normal);
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
.odx-fs-medium {
|
|
72
|
+
@include typography.font-weight(medium);
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
b,
|
|
76
|
+
strong,
|
|
77
|
+
.odx-fs-bold {
|
|
78
|
+
@include typography.font-weight(semibold);
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
em,
|
|
82
|
+
.odx-fs-italic {
|
|
83
|
+
font-style: italic;
|
|
84
|
+
}
|
|
85
|
+
}
|
package/scss/_index.scss
ADDED
|
@@ -0,0 +1,162 @@
|
|
|
1
|
+
@use 'sass:math';
|
|
2
|
+
@use '../abstract/breakpoints';
|
|
3
|
+
@use '../abstract/dimensions';
|
|
4
|
+
|
|
5
|
+
$columns: 12 !default;
|
|
6
|
+
|
|
7
|
+
@function create-selector($value, $match: '~') {
|
|
8
|
+
@return "[odxLayout#{$match}='#{$value}']";
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
:root {
|
|
12
|
+
--odx-grid-gutter: #{dimensions.get-size(1)};
|
|
13
|
+
--odx-grid-gutter-small: #{dimensions.get-size(math.div(8, 24))};
|
|
14
|
+
|
|
15
|
+
@include breakpoints.down(phone) {
|
|
16
|
+
--odx-grid-gutter: var(--odx-grid-gutter-small);
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
#{create-selector(grid)},
|
|
21
|
+
#{create-selector(flex)} {
|
|
22
|
+
gap: var(--odx-grid-gutter);
|
|
23
|
+
|
|
24
|
+
&#{create-selector(gap-small)} {
|
|
25
|
+
gap: var(--odx-grid-gutter-small);
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
&#{create-selector(gap-none)} {
|
|
29
|
+
gap: 0;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
&#{create-selector(gap-row-none)} {
|
|
33
|
+
row-gap: 0;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
&#{create-selector(gap-column-none)} {
|
|
37
|
+
column-gap: 0;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
&#{create-selector(vertical-center)} {
|
|
41
|
+
align-items: center;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
&#{create-selector(vertical-start)} {
|
|
45
|
+
align-items: flex-start;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
&#{create-selector(vertical-end)} {
|
|
49
|
+
align-items: flex-end;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
&#{create-selector(horizontal-center)} {
|
|
53
|
+
justify-items: center;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
&#{create-selector(horizontal-start)} {
|
|
57
|
+
justify-items: flex-start;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
&#{create-selector(horizontal-end)} {
|
|
61
|
+
justify-items: flex-end;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
#{create-selector(first)} {
|
|
65
|
+
order: -1;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
#{create-selector(last)} {
|
|
69
|
+
order: $columns;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
#{create-selector(separator)} {
|
|
73
|
+
background-clip: content-box;
|
|
74
|
+
border-color: var(--odx-c-separator);
|
|
75
|
+
border-style: solid;
|
|
76
|
+
|
|
77
|
+
@each $side in (right, left) {
|
|
78
|
+
&#{create-selector($side)} {
|
|
79
|
+
border-#{$side}-width: 1px;
|
|
80
|
+
margin-#{$side}: calc(-0.5 * var(--odx-grid-gutter));
|
|
81
|
+
padding-#{$side}: calc(0.5 * var(--odx-grid-gutter));
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
#{create-selector(flex)} {
|
|
88
|
+
display: flex;
|
|
89
|
+
|
|
90
|
+
&#{create-selector(inline)} {
|
|
91
|
+
display: inline-flex;
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
&#{create-selector(wrap)} {
|
|
95
|
+
flex-wrap: wrap;
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
#{create-selector(auto)} {
|
|
99
|
+
flex: 1 1 auto;
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
#{create-selector(grid)} {
|
|
104
|
+
display: grid;
|
|
105
|
+
grid-template-columns: repeat(12, 1fr);
|
|
106
|
+
|
|
107
|
+
&#{create-selector(inline)} {
|
|
108
|
+
display: inline-grid;
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
@each $breakpoint in breakpoints.get-breakpoint-names() {
|
|
112
|
+
&#{create-selector(\@#{$breakpoint}, '*')} {
|
|
113
|
+
grid-template-columns: 12fr;
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
@for $index from 1 through $columns {
|
|
118
|
+
&#{create-selector($index)} {
|
|
119
|
+
grid-template-columns: repeat(calc($columns / $index), 1fr);
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
#{create-selector($index)} {
|
|
123
|
+
grid-column: span $index / span $index;
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
#{create-selector(offset-#{$index})} {
|
|
127
|
+
grid-column-start: $index !important;
|
|
128
|
+
}
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
@each $breakpoint in breakpoints.get-breakpoint-names() {
|
|
132
|
+
@include breakpoints.up($breakpoint) {
|
|
133
|
+
@for $index from 1 through $columns {
|
|
134
|
+
&#{create-selector(#{$index}\@#{$breakpoint})} {
|
|
135
|
+
grid-template-columns: repeat(calc($columns / $index), 1fr);
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
#{create-selector(#{$index}\@#{$breakpoint})} {
|
|
139
|
+
grid-column: span $index / span $index;
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
#{create-selector(offset-#{$index}\@#{$breakpoint})} {
|
|
143
|
+
grid-column-start: $index !important;
|
|
144
|
+
}
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
#{create-selector(first\@#{$breakpoint})} {
|
|
148
|
+
order: -1;
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
#{create-selector(last\@#{$breakpoint})} {
|
|
152
|
+
order: $columns;
|
|
153
|
+
}
|
|
154
|
+
}
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
&#{create-selector(auto)} {
|
|
158
|
+
grid-auto-columns: minmax(0, 1fr);
|
|
159
|
+
grid-auto-flow: column;
|
|
160
|
+
grid-template-columns: unset;
|
|
161
|
+
}
|
|
162
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
@use 'sass:list';
|
|
2
|
+
|
|
3
|
+
@mixin transition($properties, $duration: var(--odx-v-transition-duration), $delay: 0ms, $timing-function: var(--odx-v-transition-easing-fn)) {
|
|
4
|
+
$props: ();
|
|
5
|
+
|
|
6
|
+
@each $prop in $properties {
|
|
7
|
+
$props: list.append($props, $prop, comma);
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
transition-delay: $delay;
|
|
11
|
+
transition-duration: $duration;
|
|
12
|
+
transition-property: $props;
|
|
13
|
+
transition-timing-function: $timing-function;
|
|
14
|
+
}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
@keyframes skeleton-animation {
|
|
2
|
+
from {
|
|
3
|
+
opacity: 1;
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
to {
|
|
7
|
+
opacity: 0.5;
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
.odx-skeleton {
|
|
12
|
+
background-color: transparent;
|
|
13
|
+
color: transparent;
|
|
14
|
+
pointer-events: none;
|
|
15
|
+
position: relative;
|
|
16
|
+
user-select: none;
|
|
17
|
+
|
|
18
|
+
&::after {
|
|
19
|
+
animation: skeleton-animation ease-in-out 1s infinite alternate;
|
|
20
|
+
background-color: var(--gray-200);
|
|
21
|
+
border-radius: var(--odx-v-border-radius);
|
|
22
|
+
content: '';
|
|
23
|
+
height: 100%;
|
|
24
|
+
left: 0;
|
|
25
|
+
position: absolute;
|
|
26
|
+
top: 0;
|
|
27
|
+
width: 100%;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
&--text::before {
|
|
31
|
+
content: '\a0';
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
&--short::after {
|
|
35
|
+
width: 40%;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
&--center::after {
|
|
39
|
+
left: 50%;
|
|
40
|
+
position: absolute;
|
|
41
|
+
transform: translate(-50%, 0);
|
|
42
|
+
width: 40%;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
* {
|
|
46
|
+
opacity: 0;
|
|
47
|
+
visibility: hidden;
|
|
48
|
+
}
|
|
49
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
@use 'sass:math';
|
|
2
|
+
@use '../abstract/dimensions';
|
|
3
|
+
|
|
4
|
+
.odx-text-list,
|
|
5
|
+
.odx-text-list ol,
|
|
6
|
+
.odx-text-list ul {
|
|
7
|
+
@include dimensions.margin-y(0.5);
|
|
8
|
+
@include dimensions.padding(1, left);
|
|
9
|
+
|
|
10
|
+
ul,
|
|
11
|
+
ol {
|
|
12
|
+
@include dimensions.margin(0);
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
li {
|
|
16
|
+
@include dimensions.margin(math.div(-1, 24), left);
|
|
17
|
+
}
|
|
18
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
@use '../abstract/breakpoints';
|
|
2
|
+
|
|
3
|
+
:root {
|
|
4
|
+
--odx-typography-font-family: 'PangeaText', 'Arial', sans-serif;
|
|
5
|
+
--odx-typography-base-size: 1.6rem; // clamp(1.4rem, 0.667vw + 1rem, 1.6rem);
|
|
6
|
+
--odx-typography-base-line-height: 1.5;
|
|
7
|
+
--odx-typography-font-weight-normal: 400;
|
|
8
|
+
--odx-typography-font-weight-normal-letter-spacing: 0;
|
|
9
|
+
--odx-typography-font-weight-medium: 500;
|
|
10
|
+
--odx-typography-font-weight-medium-letter-spacing: -0.19px;
|
|
11
|
+
--odx-typography-font-weight-semibold: 600;
|
|
12
|
+
--odx-typography-font-weight-semibold-letter-spacing: 0;
|
|
13
|
+
--odx-typography-font-weight-bold: var(--odx-typography-font-weight-semibold);
|
|
14
|
+
--odx-typography-font-weight-bold-letter-spacing: var(--odx-typography-font-weight-semibold-letter-spacing);
|
|
15
|
+
--odx-typography-positive-font-scaling-factor: 1.125;
|
|
16
|
+
--odx-typography-negative-font-scaling-factor: 1.2;
|
|
17
|
+
|
|
18
|
+
@include breakpoints.up(phone) {
|
|
19
|
+
--odx-typography-positive-font-scaling-factor: 1.25;
|
|
20
|
+
}
|
|
21
|
+
}
|
package/scss/_utils.scss
ADDED
|
@@ -0,0 +1,131 @@
|
|
|
1
|
+
@use 'sass:math';
|
|
2
|
+
|
|
3
|
+
@function css-pow($value, $exponent) {
|
|
4
|
+
$css-value: 1;
|
|
5
|
+
|
|
6
|
+
@if $exponent < 0 {
|
|
7
|
+
@for $i from 1 through math.abs($exponent) {
|
|
8
|
+
$css-value: $css-value + '*1/#{$value}';
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
@if $exponent > 0 {
|
|
13
|
+
@for $i from 1 through $exponent {
|
|
14
|
+
$css-value: $css-value + '*#{$value}';
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
@return calc(#{$css-value});
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
@mixin center-content($inline: false) {
|
|
22
|
+
@if $inline {
|
|
23
|
+
display: inline-flex;
|
|
24
|
+
} @else {
|
|
25
|
+
display: flex;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
align-items: center;
|
|
29
|
+
justify-content: center;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
@mixin vertical-center-content($inline: false) {
|
|
33
|
+
@if $inline {
|
|
34
|
+
display: inline-flex;
|
|
35
|
+
} @else {
|
|
36
|
+
display: flex;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
align-items: center;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
@mixin horizontal-center-content($inline: false) {
|
|
43
|
+
@if $inline {
|
|
44
|
+
display: inline-flex;
|
|
45
|
+
} @else {
|
|
46
|
+
display: flex;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
justify-content: center;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
@mixin visually-hidden() {
|
|
53
|
+
appearance: none;
|
|
54
|
+
border: 0;
|
|
55
|
+
clip: rect(0 0 0 0);
|
|
56
|
+
height: 1px;
|
|
57
|
+
left: 0;
|
|
58
|
+
margin: -1px;
|
|
59
|
+
outline: 0;
|
|
60
|
+
overflow: hidden;
|
|
61
|
+
padding: 0;
|
|
62
|
+
position: absolute;
|
|
63
|
+
white-space: nowrap;
|
|
64
|
+
width: 1px;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
@mixin _focus-styles($with-background) {
|
|
68
|
+
outline-color: var(--odx-c-focus-outline);
|
|
69
|
+
|
|
70
|
+
@if $with-background {
|
|
71
|
+
&,
|
|
72
|
+
&:hover {
|
|
73
|
+
background-color: var(--odx-c-focus);
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
@mixin focus-state($with-background: true, $focus-within: false, $focus-within-selector: null) {
|
|
79
|
+
@if $focus-within {
|
|
80
|
+
@if $focus-within-selector {
|
|
81
|
+
$focus-within-selector: '#{$focus-within-selector}:focus-visible';
|
|
82
|
+
} @else {
|
|
83
|
+
$focus-within-selector: ':focus-visible';
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
&:focus-within:has(#{$focus-within-selector}) {
|
|
87
|
+
@include _focus-styles($with-background);
|
|
88
|
+
@content;
|
|
89
|
+
}
|
|
90
|
+
} @else {
|
|
91
|
+
&:focus-visible {
|
|
92
|
+
@include _focus-styles($with-background);
|
|
93
|
+
@content;
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
@mixin with-outline {
|
|
99
|
+
outline: var(--odx-v-outline-width) solid transparent;
|
|
100
|
+
outline-offset: calc(-1 * var(--odx-v-outline-width));
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
@mixin with-outline-bold {
|
|
104
|
+
outline-offset: calc(-1 * var(--odx-v-outline-width-bold));
|
|
105
|
+
outline-width: var(--odx-v-outline-width-bold);
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
@mixin interactive($with-background: true, $focus-within: false) {
|
|
109
|
+
@include with-outline();
|
|
110
|
+
@include focus-state($with-background, $focus-within);
|
|
111
|
+
|
|
112
|
+
cursor: pointer;
|
|
113
|
+
user-select: none;
|
|
114
|
+
|
|
115
|
+
&:disabled,
|
|
116
|
+
&.is-disabled {
|
|
117
|
+
@include non-interactive();
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
@mixin non-interactive() {
|
|
122
|
+
outline-color: transparent;
|
|
123
|
+
pointer-events: none;
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
@mixin theme-selector($theme: dark) {
|
|
127
|
+
:root:has([odxTheme='#{$theme}']),
|
|
128
|
+
:root:has(.odx-theme-#{$theme}) {
|
|
129
|
+
@content;
|
|
130
|
+
}
|
|
131
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
:root {
|
|
2
|
+
--odx-v-max-page-width: 1440px;
|
|
3
|
+
--odx-v-border-radius: calc(var(--odx-typography-base-size) * 0.375);
|
|
4
|
+
--odx-v-border-radius-controls: calc(var(--odx-typography-base-size) * 0.19);
|
|
5
|
+
|
|
6
|
+
--odx-v-backdrop-blur: 3px;
|
|
7
|
+
|
|
8
|
+
--odx-v-box-shadow-layer-1: 0 2px 6px 0 var(--odx-c-box-shadow);
|
|
9
|
+
--odx-v-box-shadow-layer-2: 0 4px 12px 0 var(--odx-c-box-shadow);
|
|
10
|
+
|
|
11
|
+
--odx-v-layer-1: 0;
|
|
12
|
+
--odx-v-layer-2: 10;
|
|
13
|
+
--odx-v-layer-3: 20;
|
|
14
|
+
--odx-v-layer-4: 9000;
|
|
15
|
+
--odx-v-layer-5: 9500;
|
|
16
|
+
--odx-v-layer-6: 9900;
|
|
17
|
+
|
|
18
|
+
--odx-v-transition-duration: 250ms;
|
|
19
|
+
--odx-v-transition-easing-fn: ease;
|
|
20
|
+
--odx-v-outline-width: 1px;
|
|
21
|
+
--odx-v-outline-width-bold: 2px;
|
|
22
|
+
|
|
23
|
+
--odx-v-scrollbar-track-color: transparent;
|
|
24
|
+
--odx-v-scrollbar-thumb-color: var(--gray-600);
|
|
25
|
+
--odx-v-scrollbar-thumb-color-hover: var(--gray-700);
|
|
26
|
+
--odx-v-scrollbar-width: 12px;
|
|
27
|
+
}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
@use 'sass:math';
|
|
2
|
+
@use '../abstract/dimensions';
|
|
3
|
+
@use '../abstract/motion';
|
|
4
|
+
@use '../abstract/typography';
|
|
5
|
+
@use '../abstract/utils';
|
|
6
|
+
|
|
7
|
+
.odx-accordion-item {
|
|
8
|
+
$root: &;
|
|
9
|
+
|
|
10
|
+
@include motion.transition(color);
|
|
11
|
+
@include dimensions.padding(math.div(6, 24), top);
|
|
12
|
+
@include dimensions.padding(math.div(5, 24), bottom);
|
|
13
|
+
|
|
14
|
+
border-bottom: 1px solid var(--odx-input-control-outline-color);
|
|
15
|
+
display: block;
|
|
16
|
+
|
|
17
|
+
&__panel {
|
|
18
|
+
@include dimensions.padding-x(math.div(8, 24));
|
|
19
|
+
@include dimensions.line-height(1.5, 1);
|
|
20
|
+
@include motion.transition(background-color outline-color);
|
|
21
|
+
@include utils.interactive(true);
|
|
22
|
+
|
|
23
|
+
border-radius: var(--odx-v-border-radius-controls);
|
|
24
|
+
display: grid;
|
|
25
|
+
grid-template-columns: 1fr auto;
|
|
26
|
+
|
|
27
|
+
&:hover {
|
|
28
|
+
background-color: var(--blue-700-5);
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
#{$root}--expanded > & {
|
|
32
|
+
@include typography.font-weight(medium);
|
|
33
|
+
|
|
34
|
+
#{$root}__icon {
|
|
35
|
+
transform: rotateX(180deg);
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
&__icon {
|
|
41
|
+
@include motion.transition(transform);
|
|
42
|
+
|
|
43
|
+
transform: rotate(0deg);
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
&__slot {
|
|
47
|
+
@include dimensions.padding(math.div(8, 24));
|
|
48
|
+
|
|
49
|
+
overflow: hidden;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
&.is-disabled {
|
|
53
|
+
color: var(--odx-c-text-disabled);
|
|
54
|
+
pointer-events: none;
|
|
55
|
+
}
|
|
56
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
@use '../abstract/dimensions';
|
|
2
|
+
@use '../abstract/utils';
|
|
3
|
+
@use 'button.component';
|
|
4
|
+
|
|
5
|
+
.odx-action-group {
|
|
6
|
+
@include dimensions.height(2, 1.5);
|
|
7
|
+
@include utils.vertical-center-content(true);
|
|
8
|
+
|
|
9
|
+
gap: dimensions.get-size(0.25);
|
|
10
|
+
|
|
11
|
+
&--reverse {
|
|
12
|
+
flex-direction: row-reverse;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
> .odx-button:not(.odx-button--primary, .odx-button--success, .odx-button--danger, .odx-button--confirmation, .odx-auth-sign-in) {
|
|
16
|
+
/* stylelint-disable-next-line scss/at-extend-no-missing-placeholder */
|
|
17
|
+
@extend .odx-button--ghost;
|
|
18
|
+
|
|
19
|
+
color: var(--odx-c-text);
|
|
20
|
+
|
|
21
|
+
&:hover {
|
|
22
|
+
color: var(--odx-c-text);
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
&:focus-visible {
|
|
26
|
+
outline-color: var(--odx-c-focus-outline);
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
@use '../abstract/motion';
|
|
2
|
+
|
|
3
|
+
.odx-cdk-active-indicator {
|
|
4
|
+
@include motion.transition(all);
|
|
5
|
+
|
|
6
|
+
opacity: 0;
|
|
7
|
+
pointer-events: none;
|
|
8
|
+
position: absolute;
|
|
9
|
+
transform-origin: 0 0;
|
|
10
|
+
z-index: var(--odx-v-layer-1);
|
|
11
|
+
|
|
12
|
+
&--horizontal {
|
|
13
|
+
left: 0;
|
|
14
|
+
width: 0;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
&--vertical {
|
|
18
|
+
height: 0;
|
|
19
|
+
top: 0;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
&--is-active {
|
|
23
|
+
opacity: 1;
|
|
24
|
+
}
|
|
25
|
+
}
|