@odx/ui 1.0.0-rc.8 → 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 +3 -2
- 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/_dimensions.scss +2 -1
- package/scss/abstract/_motion.scss +3 -1
- package/scss/abstract/_typography.scss +9 -5
- package/scss/abstract/_utils.scss +9 -1
- 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 +3 -3
- package/scss/components/area-header.component.scss +15 -11
- package/scss/components/avatar.component.scss +6 -1
- package/scss/components/badge.component.scss +7 -16
- package/scss/components/bar.component.scss +93 -0
- package/scss/components/breadcrumbs.component.scss +30 -0
- package/scss/components/button-group.component.scss +14 -10
- package/scss/components/button.component.scss +26 -4
- package/scss/components/card.component.scss +174 -0
- package/scss/components/checkbox.component.scss +1 -0
- package/scss/components/chip.component.scss +1 -0
- package/scss/components/content-box.component.scss +20 -16
- package/scss/components/dropdown.component.scss +3 -1
- package/scss/components/expandable-list-item.component.scss +66 -0
- package/scss/components/form-field.component.scss +31 -3
- package/scss/components/header.component.scss +9 -3
- package/scss/components/icon.component.scss +5 -10
- package/scss/components/launch-tile.component.scss +9 -8
- package/scss/components/link.component.scss +8 -0
- package/scss/components/list-item.component.scss +1 -1
- 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 +15 -8
- package/scss/components/mainfilter-group.component.scss +141 -0
- package/scss/components/menu.component.scss +52 -0
- package/scss/components/modal.component.scss +72 -13
- package/scss/components/navigation-back.component.scss +23 -0
- package/scss/components/select.component.scss +9 -7
- package/scss/components/slider.component.scss +1 -0
- package/scss/components/spinbox.component.scss +4 -0
- package/scss/components/switch.component.scss +2 -1
- package/scss/components/tab-bar-item.component.scss +1 -1
- package/scss/components/tab-bar.component.scss +1 -1
- package/scss/components/toast-item.component.scss +77 -0
- package/scss/components/toast.component.scss +33 -0
- package/scss/components/toggle-button-group.component.scss +5 -3
- package/scss/components/toggle-button.component.scss +21 -13
- package/scss/components/tooltip.component.scss +3 -2
- package/scss/core.scss +14 -11
- package/scss/layout/_description-list.scss +2 -1
- package/scss/layout/_helpers.scss +2 -0
- package/scss/layout/_layout.scss +4 -0
- package/scss/layout/_typography.scss +6 -4
- 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 +9 -3
- package/scss/variables/_controls.scss +11 -1
- package/scss/variables/_index.scss +2 -0
- package/scss/variables/_typography.scss +2 -2
- package/scss/variables/_visuals.scss +10 -3
- package/core-icons.css +0 -43
- package/core-icons.woff2 +0 -0
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
@use 'sass:math';
|
|
2
|
+
@use '../abstract/dimensions';
|
|
3
|
+
@use '../abstract/typography';
|
|
4
|
+
@use '../abstract/utils';
|
|
5
|
+
|
|
6
|
+
.odx-toast-item {
|
|
7
|
+
--odx-c-default: var(--blue-50);
|
|
8
|
+
--odx-c-warning: var(--yellow-50);
|
|
9
|
+
--odx-c-danger: var(--red-00);
|
|
10
|
+
--odx-c-success: var(--green-00);
|
|
11
|
+
|
|
12
|
+
$root: &;
|
|
13
|
+
$variants: default, warning, danger, success;
|
|
14
|
+
$gap: dimensions.get-size(math.div(12, 24));
|
|
15
|
+
|
|
16
|
+
box-shadow: var(--odx-v-box-shadow-layer-1);
|
|
17
|
+
display: block;
|
|
18
|
+
|
|
19
|
+
&__content {
|
|
20
|
+
display: flex;
|
|
21
|
+
gap: $gap;
|
|
22
|
+
padding: $gap;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
&__text-content {
|
|
26
|
+
@include typography.font-size(-1);
|
|
27
|
+
|
|
28
|
+
flex: 1;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
&__title {
|
|
32
|
+
font-weight: var(--odx-typography-font-weight-bold);
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
&__description {
|
|
36
|
+
max-height: dimensions.get-size(5);
|
|
37
|
+
overflow: auto;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
&__close {
|
|
41
|
+
@include utils.interactive(true);
|
|
42
|
+
|
|
43
|
+
background-color: transparent;
|
|
44
|
+
margin: 0;
|
|
45
|
+
margin-right: calc(#{$gap} / -2);
|
|
46
|
+
margin-top: calc(#{$gap} / -2);
|
|
47
|
+
|
|
48
|
+
&:hover {
|
|
49
|
+
background-color: var(--blue-700-5);
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
&__buttons {
|
|
54
|
+
display: flex;
|
|
55
|
+
justify-content: flex-end;
|
|
56
|
+
margin-top: calc(#{$gap} / -2);
|
|
57
|
+
padding: 0 calc(#{$gap} / 2);
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
@each $variant in $variants {
|
|
61
|
+
&--#{$variant} {
|
|
62
|
+
background-color: var(--odx-c-#{$variant});
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
&--danger {
|
|
67
|
+
--odx-c-text: var(--red-700);
|
|
68
|
+
--odx-v-scrollbar-thumb-color: var(--odx-c-text);
|
|
69
|
+
--odx-v-scrollbar-thumb-color-hover: var(--red-800);
|
|
70
|
+
|
|
71
|
+
color: var(--odx-c-text);
|
|
72
|
+
|
|
73
|
+
#{$root}__close {
|
|
74
|
+
color: inherit;
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
@use 'sass:math';
|
|
2
|
+
@use '../abstract/breakpoints';
|
|
3
|
+
@use '../abstract/dimensions';
|
|
4
|
+
@use '../abstract/typography';
|
|
5
|
+
|
|
6
|
+
.odx-toast-container {
|
|
7
|
+
--odx-toast-outer-offset: #{dimensions.get-size(math.div(8, 24))};
|
|
8
|
+
|
|
9
|
+
display: flex;
|
|
10
|
+
flex-direction: column;
|
|
11
|
+
margin-top: dimensions.get-size(math.div(4, 24));
|
|
12
|
+
max-width: min(calc(100dvw - 2 * var(--odx-toast-outer-offset)), dimensions.get-size(20));
|
|
13
|
+
padding-top: var(--odx-toast-outer-offset);
|
|
14
|
+
position: fixed;
|
|
15
|
+
right: var(--odx-toast-outer-offset);
|
|
16
|
+
top: 0;
|
|
17
|
+
width: 100%;
|
|
18
|
+
z-index: var(--odx-v-layer-5);
|
|
19
|
+
|
|
20
|
+
&__counter {
|
|
21
|
+
align-self: center;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
.odx-toast-item {
|
|
25
|
+
margin-bottom: var(--odx-toast-outer-offset);
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
@include breakpoints.up(phone) {
|
|
29
|
+
--odx-toast-outer-offset: #{dimensions.get-size(math.div(20, 24))};
|
|
30
|
+
|
|
31
|
+
margin-top: 0;
|
|
32
|
+
}
|
|
33
|
+
}
|
|
@@ -7,11 +7,12 @@
|
|
|
7
7
|
--odx-toggle-button-border-radius: 2px;
|
|
8
8
|
|
|
9
9
|
$root: &;
|
|
10
|
+
|
|
10
11
|
@include dimensions.height(2, 1.5);
|
|
11
12
|
@include dimensions.padding-x(math.div(6, 24));
|
|
12
13
|
@include motion.transition(background-color outline-color);
|
|
13
14
|
@include utils.center-content(true);
|
|
14
|
-
@include utils.with-outline;
|
|
15
|
+
@include utils.with-outline();
|
|
15
16
|
|
|
16
17
|
border-radius: var(--odx-v-border-radius-controls);
|
|
17
18
|
column-gap: dimensions.get-size(math.div(6, 24));
|
|
@@ -19,7 +20,7 @@
|
|
|
19
20
|
|
|
20
21
|
&__indicator {
|
|
21
22
|
@include dimensions.height(2, 1);
|
|
22
|
-
@include utils.with-outline;
|
|
23
|
+
@include utils.with-outline();
|
|
23
24
|
|
|
24
25
|
background-color: var(--odx-c-highlight);
|
|
25
26
|
border-radius: var(--odx-toggle-button-border-radius);
|
|
@@ -44,7 +45,8 @@
|
|
|
44
45
|
}
|
|
45
46
|
|
|
46
47
|
.odx-toggle-button {
|
|
47
|
-
|
|
48
|
+
flex: 1 1 auto;
|
|
49
|
+
z-index: var(--odx-v-layer-2);
|
|
48
50
|
}
|
|
49
51
|
|
|
50
52
|
&.has-error:not(.is-disabled, .is-readonly) {
|
|
@@ -14,7 +14,6 @@
|
|
|
14
14
|
@include utils.vertical-center-content();
|
|
15
15
|
|
|
16
16
|
color: currentcolor;
|
|
17
|
-
overflow: hidden;
|
|
18
17
|
user-select: none;
|
|
19
18
|
|
|
20
19
|
&.is-active {
|
|
@@ -38,32 +37,41 @@
|
|
|
38
37
|
pointer-events: none;
|
|
39
38
|
}
|
|
40
39
|
|
|
41
|
-
&
|
|
40
|
+
&__indicator {
|
|
41
|
+
border-radius: var(--odx-toggle-button-border-radius);
|
|
42
|
+
|
|
42
43
|
@include motion.transition(background-color outline-color);
|
|
43
44
|
@include dimensions.padding-x(math.div(1, 3));
|
|
44
45
|
|
|
45
|
-
|
|
46
|
-
|
|
46
|
+
#{$root}.is-readonly &,
|
|
47
|
+
#{$root}.is-disabled &,
|
|
48
|
+
#{$root}-group.is-active &,
|
|
49
|
+
#{$root}-group.has-error & {
|
|
50
|
+
background-color: transparent;
|
|
51
|
+
}
|
|
47
52
|
|
|
48
53
|
#{$root}-group:not(.is-active) & {
|
|
49
54
|
@include utils.interactive($focus-within: true);
|
|
50
55
|
|
|
51
56
|
background-color: var(--blue-700-5);
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
&__label {
|
|
61
|
+
@include dimensions.padding-y(0.25);
|
|
52
62
|
|
|
53
|
-
|
|
63
|
+
cursor: pointer;
|
|
64
|
+
text-align: center;
|
|
65
|
+
width: 100%;
|
|
66
|
+
|
|
67
|
+
#{$root}-group:not(.is-active) &:hover {
|
|
68
|
+
#{$root}__indicator {
|
|
54
69
|
background-color: var(--blue-700-10);
|
|
55
70
|
}
|
|
56
71
|
}
|
|
57
72
|
|
|
58
|
-
#{$root}-group.is-active &:hover {
|
|
73
|
+
#{$root}-group.is-active &:hover #{$root}__indicator {
|
|
59
74
|
background-color: var(--blue-700-5);
|
|
60
75
|
}
|
|
61
|
-
|
|
62
|
-
#{$root}.is-readonly &,
|
|
63
|
-
#{$root}.is-disabled &,
|
|
64
|
-
#{$root}-group.is-active &,
|
|
65
|
-
#{$root}-group.has-error & {
|
|
66
|
-
background-color: transparent;
|
|
67
|
-
}
|
|
68
76
|
}
|
|
69
77
|
}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
@use '../abstract/dimensions';
|
|
2
|
+
@use '../abstract/utils';
|
|
2
3
|
|
|
3
|
-
|
|
4
|
+
body {
|
|
4
5
|
--odx-tooltip-background-color: var(--blue-800);
|
|
5
6
|
--odx-tooltip-color: var(--odx-c-text-inverse);
|
|
6
7
|
--odx-tooltip-size-small: #{dimensions.get-size(5)};
|
|
@@ -28,7 +29,7 @@
|
|
|
28
29
|
&-overlay {
|
|
29
30
|
.odx-cdk-connected-overlay-arrow {
|
|
30
31
|
background-color: var(--odx-tooltip-background-color);
|
|
31
|
-
z-index: -1;
|
|
32
|
+
z-index: var(--odx-v-layer-1);
|
|
32
33
|
}
|
|
33
34
|
}
|
|
34
35
|
}
|
package/scss/core.scss
CHANGED
|
@@ -1,12 +1,3 @@
|
|
|
1
|
-
@use 'abstract/breakpoints' with (
|
|
2
|
-
$breakpoints: (
|
|
3
|
-
'phone-s': 360px,
|
|
4
|
-
'phone': 420px,
|
|
5
|
-
'tablet': 768px,
|
|
6
|
-
'desktop-s': 960px,
|
|
7
|
-
'desktop': 1200px,
|
|
8
|
-
)
|
|
9
|
-
);
|
|
10
1
|
@use 'variables';
|
|
11
2
|
@use 'reset';
|
|
12
3
|
|
|
@@ -28,6 +19,11 @@ Layout
|
|
|
28
19
|
@use 'cdk/active-indicator';
|
|
29
20
|
@use 'cdk/connected-overlay';
|
|
30
21
|
|
|
22
|
+
/*
|
|
23
|
+
Skeleton
|
|
24
|
+
*/
|
|
25
|
+
@use 'skeleton/skeleton';
|
|
26
|
+
|
|
31
27
|
/*
|
|
32
28
|
Components
|
|
33
29
|
*/
|
|
@@ -38,29 +34,34 @@ Layout
|
|
|
38
34
|
@use 'components/area-header.component';
|
|
39
35
|
@use 'components/avatar.component';
|
|
40
36
|
@use 'components/badge.component';
|
|
37
|
+
@use 'components/bar.component';
|
|
38
|
+
@use 'components/breadcrumbs.component';
|
|
41
39
|
@use 'components/button-group.component';
|
|
42
40
|
@use 'components/button.component';
|
|
41
|
+
@use 'components/card.component';
|
|
43
42
|
@use 'components/checkbox.component';
|
|
44
43
|
@use 'components/chip.component';
|
|
45
44
|
@use 'components/circular-progress.component';
|
|
46
45
|
@use 'components/content-box.component';
|
|
47
46
|
@use 'components/dropdown.component';
|
|
47
|
+
@use 'components/expandable-list-item.component';
|
|
48
48
|
@use 'components/form-field.component';
|
|
49
49
|
@use 'components/header.component';
|
|
50
50
|
@use 'components/icon.component';
|
|
51
51
|
@use 'components/inline-message.component';
|
|
52
|
-
@use 'components/launch-tile.component';
|
|
53
52
|
@use 'components/link.component';
|
|
54
53
|
@use 'components/list.component';
|
|
55
54
|
@use 'components/list-item.component';
|
|
56
55
|
@use 'components/loading-spinner.component';
|
|
57
56
|
@use 'components/logo.component';
|
|
57
|
+
@use 'components/mainfilter-group.component';
|
|
58
58
|
@use 'components/main-menu.component';
|
|
59
|
+
@use 'components/menu.component';
|
|
59
60
|
@use 'components/modal.component';
|
|
61
|
+
@use 'components/navigation-back.component';
|
|
60
62
|
@use 'components/progress.component';
|
|
61
63
|
@use 'components/radio-button.component';
|
|
62
64
|
@use 'components/radio-group.component';
|
|
63
|
-
|
|
64
65
|
@use 'components/rail-navigation.component';
|
|
65
66
|
@use 'components/rail-navigation-item.component';
|
|
66
67
|
@use 'components/select.component';
|
|
@@ -69,6 +70,8 @@ Layout
|
|
|
69
70
|
@use 'components/switch.component';
|
|
70
71
|
@use 'components/tab-bar-item.component';
|
|
71
72
|
@use 'components/tab-bar.component';
|
|
73
|
+
@use 'components/toast.component';
|
|
74
|
+
@use 'components/toast-item.component';
|
|
72
75
|
@use 'components/toggle-button.component';
|
|
73
76
|
@use 'components/toggle-button-group.component';
|
|
74
77
|
@use 'components/tooltip.component';
|
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
.odx-description-list {
|
|
6
6
|
$gap: dimensions.get-size(math.div(8, 24));
|
|
7
|
+
|
|
7
8
|
@include dimensions.margin-y(0.5);
|
|
8
9
|
|
|
9
10
|
column-gap: $gap;
|
|
@@ -24,6 +25,6 @@
|
|
|
24
25
|
}
|
|
25
26
|
|
|
26
27
|
dd {
|
|
27
|
-
|
|
28
|
+
@include typography.font-weight(medium);
|
|
28
29
|
}
|
|
29
30
|
}
|
|
@@ -10,6 +10,7 @@ html body {
|
|
|
10
10
|
|
|
11
11
|
@each $size in (4, 8, 12, 16, 24, 36, 48) {
|
|
12
12
|
$factor: math.div($size, 24);
|
|
13
|
+
|
|
13
14
|
@each $direction in (top, right, bottom, left) {
|
|
14
15
|
.odx-margin-#{$direction}-#{$size} {
|
|
15
16
|
@include dimensions.margin($factor, $direction);
|
|
@@ -31,6 +32,7 @@ html body {
|
|
|
31
32
|
|
|
32
33
|
@each $size in (4, 8, 12, 16, 24, 36, 48) {
|
|
33
34
|
$factor: math.div($size, 24);
|
|
35
|
+
|
|
34
36
|
@each $direction in (top, right, bottom, left) {
|
|
35
37
|
.odx-padding-#{$direction}-#{$size} {
|
|
36
38
|
@include dimensions.padding($factor, $direction);
|
package/scss/layout/_layout.scss
CHANGED
|
@@ -11,6 +11,10 @@ $columns: 12 !default;
|
|
|
11
11
|
:root {
|
|
12
12
|
--odx-grid-gutter: #{dimensions.get-size(1)};
|
|
13
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
|
+
}
|
|
14
18
|
}
|
|
15
19
|
|
|
16
20
|
#{create-selector(grid)},
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/* stylelint-disable block-closing-brace-newline-after */
|
|
2
1
|
@use 'sass:math';
|
|
3
2
|
@use '../abstract/breakpoints';
|
|
4
3
|
@use '../abstract/dimensions';
|
|
@@ -25,13 +24,17 @@
|
|
|
25
24
|
src: url('../assets/fonts/PangeaText-SemiBoldWeb.woff2') format('woff2');
|
|
26
25
|
}
|
|
27
26
|
|
|
27
|
+
html {
|
|
28
|
+
font-size: 62.5%;
|
|
29
|
+
}
|
|
30
|
+
|
|
28
31
|
html body {
|
|
29
32
|
@include dimensions.line-height(1);
|
|
30
33
|
@include typography.font-size(0);
|
|
34
|
+
@include typography.font-weight(normal);
|
|
31
35
|
|
|
32
36
|
color: var(--odx-c-text);
|
|
33
37
|
font-family: Pangea, sans-serif;
|
|
34
|
-
font-weight: var(--odx-typography-font-weight-normal);
|
|
35
38
|
}
|
|
36
39
|
|
|
37
40
|
.odx-title,
|
|
@@ -97,8 +100,7 @@ html body {
|
|
|
97
100
|
|
|
98
101
|
.odx-text {
|
|
99
102
|
@include dimensions.line-height(1);
|
|
100
|
-
|
|
101
|
-
font-weight: var(--odx-typography-font-weight-normal);
|
|
103
|
+
@include typography.font-weight(normal);
|
|
102
104
|
|
|
103
105
|
&--small {
|
|
104
106
|
@include dimensions.line-height(1, math.div(20, 24));
|
package/scss/reset.scss
CHANGED
|
@@ -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,53 @@
|
|
|
1
|
+
@use '../abstract/utils';
|
|
2
|
+
|
|
3
|
+
body {
|
|
4
|
+
@include utils.dark-theme-selector() {
|
|
5
|
+
--white: #293642;
|
|
6
|
+
--white-dark: #060a12;
|
|
7
|
+
--black: #ffffff;
|
|
8
|
+
|
|
9
|
+
--focus-bg: #284e68;
|
|
10
|
+
|
|
11
|
+
--white-60: #{rgba(var(--white), 0.6)};
|
|
12
|
+
|
|
13
|
+
--gray-50: #2e3d49;
|
|
14
|
+
--gray-100: #344351;
|
|
15
|
+
--gray-200: #3e5160;
|
|
16
|
+
--gray-300: #495e6e;
|
|
17
|
+
--gray-400: #556c7c;
|
|
18
|
+
--gray-500: #607a8a;
|
|
19
|
+
--gray-600: #6d8797;
|
|
20
|
+
--gray-700: #7d94a1;
|
|
21
|
+
--gray-800: #e9eef4;
|
|
22
|
+
--gray-900: #9cacb4;
|
|
23
|
+
|
|
24
|
+
--blue-50: #455e85;
|
|
25
|
+
--blue-100: #043c95;
|
|
26
|
+
--blue-600: #a8c4f0;
|
|
27
|
+
--blue-700: #cbe9ff;
|
|
28
|
+
--blue-700-5: #{rgba(#cbe9ff, 0.1)};
|
|
29
|
+
--blue-700-10: #{rgba(#cbe9ff, 0.2)};
|
|
30
|
+
--blue-900: #d5e2f6;
|
|
31
|
+
|
|
32
|
+
--cyan-50: #002766;
|
|
33
|
+
--cyan-100: #003c66;
|
|
34
|
+
--cyan-200: #00508a;
|
|
35
|
+
--cyan-300: #0065ad;
|
|
36
|
+
--cyan-400: #007ad1;
|
|
37
|
+
--cyan-600: #1fa2ff;
|
|
38
|
+
--cyan-700: #47b3ff;
|
|
39
|
+
--cyan-800: #70c4ff;
|
|
40
|
+
--cyan-900: #9dd7ff;
|
|
41
|
+
|
|
42
|
+
--red-00: #4b3138;
|
|
43
|
+
--red-50: #724956;
|
|
44
|
+
--red-100: #bc0000;
|
|
45
|
+
--red-700: #ff9898;
|
|
46
|
+
--red-800: #ffb4b4;
|
|
47
|
+
--red-900: #ffe0e3;
|
|
48
|
+
|
|
49
|
+
--yellow-50: #5f5439;
|
|
50
|
+
|
|
51
|
+
--green-00: #355e54;
|
|
52
|
+
}
|
|
53
|
+
}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
@use '../abstract/utils';
|
|
2
|
+
|
|
3
|
+
body {
|
|
4
|
+
@include utils.dark-theme-selector() {
|
|
5
|
+
--odx-c-headline: var(--blue-900);
|
|
6
|
+
|
|
7
|
+
--odx-c-text: var(--blue-900);
|
|
8
|
+
--odx-c-text-inverse: var(--black);
|
|
9
|
+
|
|
10
|
+
--odx-c-link-disabled: var(--gray-400);
|
|
11
|
+
|
|
12
|
+
--odx-c-error: var(--red-00);
|
|
13
|
+
--odx-c-error-outline: var(--red-50);
|
|
14
|
+
--odx-c-error-outline-hover: var(--red-100);
|
|
15
|
+
--odx-c-error-text: var(--red-700);
|
|
16
|
+
|
|
17
|
+
--odx-c-focus: var(--focus-bg);
|
|
18
|
+
--odx-c-focus-outline: var(--cyan-200);
|
|
19
|
+
--odx-c-focus-outline-dark: var(--odx-c-focus-outline);
|
|
20
|
+
|
|
21
|
+
--odx-c-highlight-text: var(--black);
|
|
22
|
+
|
|
23
|
+
--odx-c-primary: var(--blue-900);
|
|
24
|
+
--odx-c-primary-hover: var(--blue-600);
|
|
25
|
+
--odx-c-primary-active: var(--blue-200);
|
|
26
|
+
--odx-c-primary-disabled: var(--odx-c-primary);
|
|
27
|
+
--odx-c-primary-text: var(--white);
|
|
28
|
+
--odx-c-primary-text-disabled: var(--blue-300);
|
|
29
|
+
|
|
30
|
+
--odx-c-secondary-text-disabled: var(--gray-100);
|
|
31
|
+
|
|
32
|
+
--odx-c-highlight-hover: var(--cyan-400);
|
|
33
|
+
--odx-c-highlight-active: var(--cyan-300);
|
|
34
|
+
--odx-c-highlight-text-disabled: var(--cyan-200);
|
|
35
|
+
|
|
36
|
+
--odx-c-danger-active: var(--red-100);
|
|
37
|
+
--odx-c-danger-text-disabled: var(--red-50);
|
|
38
|
+
|
|
39
|
+
--odx-c-success-text: var(--cyan-50);
|
|
40
|
+
|
|
41
|
+
--odx-c-confirmation-text: var(--cyan-50);
|
|
42
|
+
}
|
|
43
|
+
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
body {
|
|
2
2
|
--odx-c-headline: var(--blue-700);
|
|
3
3
|
|
|
4
4
|
--odx-c-text: var(--blue-700);
|
|
@@ -16,8 +16,14 @@
|
|
|
16
16
|
--odx-c-error-outline-hover: var(--red-100);
|
|
17
17
|
--odx-c-error-text: var(--red-600);
|
|
18
18
|
|
|
19
|
+
--odx-c-error-warning: var(--orange-100);
|
|
20
|
+
--odx-c-error-warning-outline: var(--orange-200);
|
|
21
|
+
--odx-c-error-warning-outline-hover: var(--orange-300);
|
|
22
|
+
--odx-c-error-warning-text: var(--orange-500);
|
|
23
|
+
|
|
19
24
|
--odx-c-focus: var(--cyan-500-15);
|
|
20
|
-
--odx-c-focus-outline: var(--cyan-
|
|
25
|
+
--odx-c-focus-outline: var(--cyan-200);
|
|
26
|
+
--odx-c-focus-outline-dark: var(--cyan-400);
|
|
21
27
|
|
|
22
28
|
--odx-c-selected: var(--cyan-500-15);
|
|
23
29
|
--odx-c-selected-hover: var(--cyan-500-20);
|
|
@@ -27,7 +33,7 @@
|
|
|
27
33
|
--odx-c-backdrop: var(--white-60);
|
|
28
34
|
--odx-c-backdrop-dark: var(--blue-800-30);
|
|
29
35
|
|
|
30
|
-
--odx-c-
|
|
36
|
+
--odx-c-box-shadow: var(--blue-800-30);
|
|
31
37
|
|
|
32
38
|
--odx-c-seperator: var(--gray-200);
|
|
33
39
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
body {
|
|
2
2
|
--odx-control-color: var(--odx-c-text);
|
|
3
3
|
--odx-control-background-color: var(--gray-200);
|
|
4
4
|
--odx-control-outline-color: var(--gray-300);
|
|
@@ -24,6 +24,11 @@
|
|
|
24
24
|
--odx-control-outline-color-error: var(--odx-c-error-outline);
|
|
25
25
|
--odx-control-outline-color-error-hover: var(--odx-c-error-outline-hover);
|
|
26
26
|
|
|
27
|
+
--odx-control-color-warning: var(--odx-c-error-warning-text);
|
|
28
|
+
--odx-control-background-color-warning: var(--odx-c-error-warning);
|
|
29
|
+
--odx-control-outline-color-warning: var(--odx-c-error-warning-outline);
|
|
30
|
+
--odx-control-outline-color-warning-hover: var(--odx-c-error-warning-outline-hover);
|
|
31
|
+
|
|
27
32
|
--odx-input-control-color: var(--odx-c-text);
|
|
28
33
|
--odx-input-control-background-color: var(--gray-100);
|
|
29
34
|
--odx-input-control-outline-color: var(--gray-200);
|
|
@@ -44,4 +49,9 @@
|
|
|
44
49
|
--odx-input-control-background-color-error: var(--odx-c-error);
|
|
45
50
|
--odx-input-control-outline-color-error: var(--odx-c-error-outline);
|
|
46
51
|
--odx-input-control-outline-color-error-hover: var(--odx-c-error-outline-hover);
|
|
52
|
+
|
|
53
|
+
--odx-input-control-color-warning: var(--odx-c-error-warning-text);
|
|
54
|
+
--odx-input-control-background-color-warning: var(--odx-c-error-warning);
|
|
55
|
+
--odx-input-control-outline-color-warning: var(--odx-c-error-warning-outline);
|
|
56
|
+
--odx-input-control-outline-color-warning-hover: var(--odx-c-error-warning-outline-hover);
|
|
47
57
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
@use '../abstract/breakpoints';
|
|
2
2
|
|
|
3
3
|
:root {
|
|
4
|
-
--odx-typography-base-size:
|
|
4
|
+
--odx-typography-base-size: 1.6rem; // clamp(1.4rem, 0.667vw + 1rem, 1.6rem);
|
|
5
5
|
--odx-typography-base-line-height: 1.5;
|
|
6
6
|
--odx-typography-font-weight-normal: normal;
|
|
7
7
|
--odx-typography-font-weight-normal-letter-spacing: 0;
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
--odx-typography-positive-font-scaling-factor: 1.125;
|
|
13
13
|
--odx-typography-negative-font-scaling-factor: 1.2;
|
|
14
14
|
|
|
15
|
-
@include breakpoints.up(
|
|
15
|
+
@include breakpoints.up(phone) {
|
|
16
16
|
--odx-typography-positive-font-scaling-factor: 1.25;
|
|
17
17
|
}
|
|
18
18
|
}
|
|
@@ -1,10 +1,17 @@
|
|
|
1
|
-
|
|
1
|
+
body {
|
|
2
2
|
--odx-v-border-radius: calc(var(--odx-typography-base-size) * 0.375);
|
|
3
3
|
--odx-v-border-radius-controls: calc(var(--odx-typography-base-size) * 0.19);
|
|
4
4
|
|
|
5
5
|
--odx-v-backdrop-blur: 3px;
|
|
6
|
-
|
|
7
|
-
--odx-v-
|
|
6
|
+
|
|
7
|
+
--odx-v-box-shadow-layer-1: 0 2px 6px 0 var(--odx-c-box-shadow);
|
|
8
|
+
--odx-v-box-shadow-layer-2: 0 4px 12px 0 var(--odx-c-box-shadow);
|
|
9
|
+
|
|
10
|
+
--odx-v-layer-1: 0;
|
|
11
|
+
--odx-v-layer-2: 10;
|
|
12
|
+
--odx-v-layer-3: 20;
|
|
13
|
+
--odx-v-layer-4: 9000;
|
|
14
|
+
--odx-v-layer-5: 9500;
|
|
8
15
|
|
|
9
16
|
--odx-v-transition-duration: 250ms;
|
|
10
17
|
--odx-v-transition-easing-fn: ease;
|