@odx/ui 1.0.0-rc.8 → 1.0.0-rc.9
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 +1 -1
- package/core-theme.css +1 -1
- package/package.json +1 -1
- package/scss/abstract/_dimensions.scss +2 -1
- package/scss/abstract/_motion.scss +3 -1
- package/scss/abstract/_utils.scss +2 -1
- package/scss/components/action-group.component.scss +2 -2
- package/scss/components/avatar.component.scss +1 -0
- package/scss/components/bar.component.scss +86 -0
- package/scss/components/breadcrumbs.component.scss +26 -0
- package/scss/components/button-group.component.scss +1 -0
- package/scss/components/button.component.scss +6 -2
- 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/form-field.component.scss +1 -1
- package/scss/components/icon.component.scss +1 -1
- package/scss/components/launch-tile.component.scss +5 -5
- package/scss/components/list-item.component.scss +1 -1
- package/scss/components/main-menu.component.scss +1 -1
- package/scss/components/menu-item.component.scss +8 -0
- package/scss/components/menu.component.scss +16 -0
- package/scss/components/modal.component.scss +47 -4
- package/scss/components/select.component.scss +0 -4
- package/scss/components/slider.component.scss +1 -0
- package/scss/components/switch.component.scss +2 -1
- package/scss/components/tab-bar-item.component.scss +1 -1
- package/scss/components/toast-item.component.scss +79 -0
- package/scss/components/toast.component.scss +33 -0
- package/scss/components/toggle-button-group.component.scss +3 -2
- package/scss/core.scss +6 -1
- package/scss/layout/_description-list.scss +2 -1
- package/scss/layout/_helpers.scss +2 -0
- package/scss/layout/_typography.scss +6 -4
- package/scss/variables/_colors.scss +1 -1
- package/scss/variables/_typography.scss +1 -1
- package/scss/variables/_visuals.scss +3 -2
package/package.json
CHANGED
|
@@ -1,8 +1,10 @@
|
|
|
1
|
+
@use 'sass:list';
|
|
2
|
+
|
|
1
3
|
@mixin transition($properties, $duration: var(--odx-v-transition-duration), $delay: 0ms) {
|
|
2
4
|
$props: ();
|
|
3
5
|
|
|
4
6
|
@each $prop in $properties {
|
|
5
|
-
$props: append($props, $prop, comma);
|
|
7
|
+
$props: list.append($props, $prop, comma);
|
|
6
8
|
}
|
|
7
9
|
|
|
8
10
|
transition: all $duration $delay var(--odx-v-transition-easing-fn);
|
|
@@ -66,6 +66,7 @@
|
|
|
66
66
|
|
|
67
67
|
@mixin _focus-styles($with-background) {
|
|
68
68
|
outline-color: var(--odx-c-focus-outline);
|
|
69
|
+
|
|
69
70
|
@if $with-background {
|
|
70
71
|
&,
|
|
71
72
|
&:hover {
|
|
@@ -105,7 +106,7 @@
|
|
|
105
106
|
}
|
|
106
107
|
|
|
107
108
|
@mixin interactive($with-background: true, $focus-within: false) {
|
|
108
|
-
@include with-outline;
|
|
109
|
+
@include with-outline();
|
|
109
110
|
@include focus-state($with-background, $focus-within);
|
|
110
111
|
|
|
111
112
|
cursor: pointer;
|
|
@@ -16,10 +16,10 @@
|
|
|
16
16
|
/* stylelint-disable-next-line scss/at-extend-no-missing-placeholder */
|
|
17
17
|
@extend .odx-button--ghost;
|
|
18
18
|
|
|
19
|
-
color: var(--odx-c-
|
|
19
|
+
color: var(--odx-c-text);
|
|
20
20
|
|
|
21
21
|
&:hover {
|
|
22
|
-
color: var(--odx-c-
|
|
22
|
+
color: var(--odx-c-text);
|
|
23
23
|
}
|
|
24
24
|
|
|
25
25
|
&:focus-visible {
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
@use 'sass:math';
|
|
2
|
+
@use '../abstract/dimensions';
|
|
3
|
+
@use '../abstract/utils';
|
|
4
|
+
@use '../abstract/typography';
|
|
5
|
+
@use '../abstract/motion';
|
|
6
|
+
@use './dropdown.component' as dropdown;
|
|
7
|
+
|
|
8
|
+
:root {
|
|
9
|
+
--odx-bar-background-color: var(--cyan-500);
|
|
10
|
+
--odx-bar-background-color-hover: var(--cyan-600);
|
|
11
|
+
--odx-bar-background-color-active: var(--cyan-700);
|
|
12
|
+
--odx-bar-text-color: var(--white);
|
|
13
|
+
--odx-bar-text-color-disabled: var(--cyan-700);
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
.odx-bar {
|
|
17
|
+
@include dimensions.padding-x(math.div(12, 24));
|
|
18
|
+
@include dimensions.padding-y(math.div(6, 24));
|
|
19
|
+
|
|
20
|
+
align-items: center;
|
|
21
|
+
background-color: var(--odx-bar-background-color);
|
|
22
|
+
border-radius: dimensions.get-size(math.div(6, 24));
|
|
23
|
+
box-shadow: 0 2px 6px rgb(0 25 66 / 50%);
|
|
24
|
+
color: var(--odx-bar-text-color);
|
|
25
|
+
display: inline-flex;
|
|
26
|
+
gap: dimensions.get-size(math.div(12, 24));
|
|
27
|
+
width: max-content;
|
|
28
|
+
|
|
29
|
+
&-button {
|
|
30
|
+
$button: &;
|
|
31
|
+
|
|
32
|
+
@include motion.transition(background-color color outline);
|
|
33
|
+
@include utils.with-outline-bold();
|
|
34
|
+
|
|
35
|
+
align-items: center;
|
|
36
|
+
background-color: var(--odx-bar-background-color);
|
|
37
|
+
border-radius: var(--odx-v-border-radius-controls);
|
|
38
|
+
display: inline-flex;
|
|
39
|
+
font-size: dimensions.get-size(math.div(4, 3));
|
|
40
|
+
height: dimensions.get-size(math.div(36, 24));
|
|
41
|
+
outline-color: transparent;
|
|
42
|
+
outline-style: solid;
|
|
43
|
+
|
|
44
|
+
&:hover {
|
|
45
|
+
background-color: var(--odx-bar-background-color-hover);
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
&#{dropdown.$dropdown-open-selector},
|
|
49
|
+
&:active {
|
|
50
|
+
background-color: var(--odx-bar-background-color-active);
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
&:focus-visible {
|
|
54
|
+
outline-color: var(--odx-bar-background-color-active);
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
&--default {
|
|
58
|
+
@include dimensions.padding-x(math.div(28, 24));
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
&--small {
|
|
62
|
+
@include dimensions.padding-x(math.div(2, 24));
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
&.is-disabled {
|
|
66
|
+
@include utils.non-interactive();
|
|
67
|
+
|
|
68
|
+
color: var(--odx-bar-text-color-disabled);
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
&-label {
|
|
73
|
+
display: inline;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
.odx-bar-parent & {
|
|
77
|
+
bottom: dimensions.get-size(math.div(16, 24));
|
|
78
|
+
left: 50%;
|
|
79
|
+
position: absolute;
|
|
80
|
+
transform: translateX(-50%);
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
.odx-bar-parent {
|
|
85
|
+
position: relative;
|
|
86
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
@use 'sass:math';
|
|
2
|
+
@use '../abstract/dimensions';
|
|
3
|
+
@use '../abstract/utils';
|
|
4
|
+
@use '../abstract/typography';
|
|
5
|
+
|
|
6
|
+
.odx-breadcrumbs {
|
|
7
|
+
@include dimensions.padding-x(1);
|
|
8
|
+
@include dimensions.padding-y(math.div(12, 24));
|
|
9
|
+
@include utils.vertical-center-content();
|
|
10
|
+
|
|
11
|
+
flex-wrap: wrap;
|
|
12
|
+
gap: dimensions.get-size(math.div(8, 24));
|
|
13
|
+
|
|
14
|
+
.odx-link {
|
|
15
|
+
&:last-child {
|
|
16
|
+
@include typography.font-weight(bold);
|
|
17
|
+
|
|
18
|
+
color: var(--odx-c-text);
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
.odx-icon {
|
|
23
|
+
color: var(--gray-500);
|
|
24
|
+
font-size: dimensions.get-size(math.div(12, 24));
|
|
25
|
+
}
|
|
26
|
+
}
|
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
@use '../abstract/typography';
|
|
5
5
|
@use '../abstract/utils';
|
|
6
6
|
@use 'avatar.component' as avatar;
|
|
7
|
+
@use 'dropdown.component' as dropdown;
|
|
7
8
|
@use 'icon.component';
|
|
8
9
|
|
|
9
10
|
.odx-button {
|
|
@@ -19,7 +20,7 @@
|
|
|
19
20
|
@include typography.font-weight(medium);
|
|
20
21
|
@include utils.center-content(true);
|
|
21
22
|
@include utils.interactive($with-background: false);
|
|
22
|
-
@include utils.with-outline-bold;
|
|
23
|
+
@include utils.with-outline-bold();
|
|
23
24
|
|
|
24
25
|
border-radius: var(--odx-v-border-radius-controls);
|
|
25
26
|
min-width: dimensions.get-size(1.5);
|
|
@@ -59,6 +60,7 @@
|
|
|
59
60
|
background-color: var(--odx-c-#{$variant}-hover);
|
|
60
61
|
}
|
|
61
62
|
|
|
63
|
+
&#{dropdown.$dropdown-open-selector},
|
|
62
64
|
&:active {
|
|
63
65
|
background-color: var(--odx-c-#{$variant}-active);
|
|
64
66
|
}
|
|
@@ -72,7 +74,7 @@
|
|
|
72
74
|
}
|
|
73
75
|
|
|
74
76
|
&--ghost {
|
|
75
|
-
@include utils.with-outline;
|
|
77
|
+
@include utils.with-outline();
|
|
76
78
|
|
|
77
79
|
background-color: transparent;
|
|
78
80
|
color: var(--odx-c-link);
|
|
@@ -86,6 +88,7 @@
|
|
|
86
88
|
color: var(--odx-c-link-active);
|
|
87
89
|
}
|
|
88
90
|
|
|
91
|
+
&#{dropdown.$dropdown-open-selector},
|
|
89
92
|
&:focus-visible,
|
|
90
93
|
&:active {
|
|
91
94
|
background-color: var(--odx-c-focus);
|
|
@@ -100,6 +103,7 @@
|
|
|
100
103
|
|
|
101
104
|
&--small {
|
|
102
105
|
$icon-margin: math.div(1, 8);
|
|
106
|
+
|
|
103
107
|
@include dimensions.height(1);
|
|
104
108
|
@include dimensions.padding-x(2 * $icon-margin);
|
|
105
109
|
@include typography.font-size(-1);
|
|
@@ -17,34 +17,38 @@
|
|
|
17
17
|
}
|
|
18
18
|
|
|
19
19
|
&__header {
|
|
20
|
-
@include dimensions.padding(
|
|
21
|
-
|
|
22
|
-
|
|
20
|
+
@include dimensions.padding(0.5, ('top', 'right', 'left'));
|
|
21
|
+
|
|
22
|
+
@include breakpoints.up(phone) {
|
|
23
|
+
@include dimensions.padding(1, ('top', 'right', 'left'));
|
|
23
24
|
}
|
|
24
25
|
}
|
|
25
26
|
|
|
26
27
|
&__footer {
|
|
27
|
-
@include dimensions.padding(
|
|
28
|
-
|
|
29
|
-
|
|
28
|
+
@include dimensions.padding(0.5, ('right', 'bottom', 'left'));
|
|
29
|
+
|
|
30
|
+
@include breakpoints.up(phone) {
|
|
31
|
+
@include dimensions.padding(1, ('right', 'bottom', 'left'));
|
|
30
32
|
}
|
|
31
33
|
}
|
|
32
34
|
|
|
33
35
|
&__content {
|
|
34
|
-
@include dimensions.padding(
|
|
35
|
-
|
|
36
|
-
|
|
36
|
+
@include dimensions.padding(0.5);
|
|
37
|
+
|
|
38
|
+
@include breakpoints.up(phone) {
|
|
39
|
+
@include dimensions.padding(1);
|
|
37
40
|
}
|
|
38
41
|
}
|
|
39
42
|
|
|
40
|
-
.odx-area-header
|
|
41
|
-
padding
|
|
42
|
-
}
|
|
43
|
+
> .odx-area-header {
|
|
44
|
+
@include dimensions.padding(0.5, ('top', 'bottom'));
|
|
43
45
|
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
@include breakpoints.down(phone) {
|
|
47
|
-
@include dimensions.padding(0.5, ('top', 'bottom'));
|
|
46
|
+
@include breakpoints.up(phone) {
|
|
47
|
+
@include dimensions.padding(1, ('top', 'bottom'));
|
|
48
48
|
}
|
|
49
49
|
}
|
|
50
|
+
|
|
51
|
+
& > .odx-area-header ~ &__content {
|
|
52
|
+
padding-top: 0;
|
|
53
|
+
}
|
|
50
54
|
}
|
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
@use 'sass:math';
|
|
2
2
|
@use '../abstract/dimensions';
|
|
3
3
|
|
|
4
|
+
$dropdown-open-selector: '.odx-dropdown-host[aria-expanded="true"]';
|
|
5
|
+
|
|
4
6
|
.odx-dropdown {
|
|
5
7
|
background-color: var(--odx-c-background-content);
|
|
6
8
|
border-radius: var(--odx-v-border-radius);
|
|
7
|
-
box-shadow: var(--odx-v-
|
|
9
|
+
box-shadow: var(--odx-v-box-shadow-layer-2);
|
|
8
10
|
display: block;
|
|
9
11
|
min-height: inherit;
|
|
10
12
|
|
|
@@ -168,7 +168,7 @@ $form-field-inner-padding: math.div(8, 24);
|
|
|
168
168
|
outline-color: var(--odx-input-control-outline-color-disabled);
|
|
169
169
|
|
|
170
170
|
#{$control-selector} {
|
|
171
|
-
@include utils.non-interactive;
|
|
171
|
+
@include utils.non-interactive();
|
|
172
172
|
|
|
173
173
|
&::placeholder {
|
|
174
174
|
color: var(--odx-input-control-color-disabled);
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
@use '../abstract/dimensions';
|
|
3
3
|
@use '../abstract/utils';
|
|
4
4
|
|
|
5
|
-
$icon-sizes: (small math.div(
|
|
5
|
+
$icon-sizes: (small math.div(16, 24) 1, large math.div(32, 24) 2, xlarge math.div(48, 24) 2);
|
|
6
6
|
|
|
7
7
|
.odx-icon {
|
|
8
8
|
@include dimensions.container(1);
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
@use 'sass:math';
|
|
2
2
|
@use '../abstract/breakpoints';
|
|
3
|
+
@use '../abstract/dimensions';
|
|
3
4
|
@use '../abstract/motion';
|
|
5
|
+
@use '../abstract/typography';
|
|
4
6
|
@use '../abstract/utils';
|
|
5
|
-
@use '../abstract/dimensions';
|
|
6
|
-
|
|
7
|
-
// TODO: check distances
|
|
8
7
|
|
|
9
8
|
.odx-launch-tile {
|
|
10
9
|
$root: &;
|
|
@@ -15,6 +14,7 @@
|
|
|
15
14
|
@include utils.with-outline-bold();
|
|
16
15
|
|
|
17
16
|
background-color: var(--odx-c-background-content);
|
|
17
|
+
behavior: button;
|
|
18
18
|
border-radius: var(--odx-v-border-radius);
|
|
19
19
|
display: block;
|
|
20
20
|
padding: $main-padding;
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
&:focus-visible,
|
|
24
24
|
&:hover,
|
|
25
25
|
&:focus-within:has(:focus-visible) {
|
|
26
|
-
box-shadow: var(--odx-v-
|
|
26
|
+
box-shadow: var(--odx-v-box-shadow-layer-1);
|
|
27
27
|
}
|
|
28
28
|
|
|
29
29
|
&__container {
|
|
@@ -53,9 +53,9 @@
|
|
|
53
53
|
|
|
54
54
|
&__title {
|
|
55
55
|
@include dimensions.margin-y(math.div(9, 24));
|
|
56
|
+
@include typography.font-weight(medium);
|
|
56
57
|
|
|
57
58
|
font-size: dimensions.get-size(math.div(20, 24));
|
|
58
|
-
font-weight: var(--odx-typography-font-weight-medium);
|
|
59
59
|
line-height: dimensions.get-size(math.div(30, 24));
|
|
60
60
|
}
|
|
61
61
|
|
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
@use 'sass:math';
|
|
2
2
|
@use '../abstract/dimensions';
|
|
3
3
|
@use '../abstract/breakpoints';
|
|
4
|
+
@use '../abstract/typography';
|
|
5
|
+
@use '../abstract/utils';
|
|
6
|
+
|
|
7
|
+
$modal-padding: math.div(12, 24);
|
|
4
8
|
|
|
5
9
|
.odx-modal {
|
|
6
10
|
--odx-modal-margin-y: #{dimensions.get-size(2)};
|
|
@@ -8,7 +12,6 @@
|
|
|
8
12
|
--odx-modal-max-width: #{dimensions.get-size(20)};
|
|
9
13
|
|
|
10
14
|
$root: &;
|
|
11
|
-
$modal-padding: math.div(12, 24);
|
|
12
15
|
|
|
13
16
|
backdrop-filter: blur(var(--odx-v-backdrop-blur));
|
|
14
17
|
background-color: var(--odx-c-backdrop-dark);
|
|
@@ -36,7 +39,7 @@
|
|
|
36
39
|
|
|
37
40
|
background-color: var(--odx-c-background-content);
|
|
38
41
|
border-radius: var(--odx-v-border-radius);
|
|
39
|
-
box-shadow: var(--odx-v-
|
|
42
|
+
box-shadow: var(--odx-v-box-shadow-layer-2);
|
|
40
43
|
display: flex;
|
|
41
44
|
flex-direction: column;
|
|
42
45
|
margin: var(--odx-modal-margin-y) auto 0;
|
|
@@ -59,6 +62,10 @@
|
|
|
59
62
|
max-height: calc(100vh - var(--odx-modal-margin-y) - #{dimensions.get-size(1)});
|
|
60
63
|
right: 0;
|
|
61
64
|
}
|
|
65
|
+
|
|
66
|
+
#{$root}--with-component & > * {
|
|
67
|
+
display: contents;
|
|
68
|
+
}
|
|
62
69
|
}
|
|
63
70
|
|
|
64
71
|
&__header,
|
|
@@ -68,8 +75,8 @@
|
|
|
68
75
|
}
|
|
69
76
|
|
|
70
77
|
&__header {
|
|
71
|
-
@include dimensions.min-height(
|
|
72
|
-
@include dimensions.padding(
|
|
78
|
+
@include dimensions.min-height(2.5);
|
|
79
|
+
@include dimensions.padding($modal-padding, top);
|
|
73
80
|
|
|
74
81
|
> .odx-area-header {
|
|
75
82
|
@include dimensions.margin(-1, left);
|
|
@@ -99,3 +106,39 @@
|
|
|
99
106
|
justify-content: flex-end;
|
|
100
107
|
}
|
|
101
108
|
}
|
|
109
|
+
|
|
110
|
+
.odx-modal-hero {
|
|
111
|
+
$variants: success, danger, confirmation;
|
|
112
|
+
|
|
113
|
+
@include dimensions.min-height(2.5);
|
|
114
|
+
@include dimensions.padding(0.5, top);
|
|
115
|
+
|
|
116
|
+
display: flex;
|
|
117
|
+
flex-direction: column;
|
|
118
|
+
position: relative;
|
|
119
|
+
|
|
120
|
+
&__dismiss {
|
|
121
|
+
position: absolute;
|
|
122
|
+
right: 0;
|
|
123
|
+
top: dimensions.get-size(0.5);
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
&__icon {
|
|
127
|
+
margin: dimensions.get-size(0.5) auto auto;
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
&__title {
|
|
131
|
+
text-align: center;
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
~ .odx-modal__content {
|
|
135
|
+
padding-top: 0;
|
|
136
|
+
text-align: center;
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
@each $variant in $variants {
|
|
140
|
+
&--#{$variant} &__icon {
|
|
141
|
+
color: var(--odx-c-#{$variant});
|
|
142
|
+
}
|
|
143
|
+
}
|
|
144
|
+
}
|
|
@@ -6,6 +6,7 @@
|
|
|
6
6
|
--odx-control-outline-color: var(--gray-200);
|
|
7
7
|
--odx-control-background-color: var(--gray-100);
|
|
8
8
|
--odx-control-background-color-hover: var(--cyan-600);
|
|
9
|
+
|
|
9
10
|
$root: &;
|
|
10
11
|
$thumb-size: dimensions.get-size(math.div(20, 24));
|
|
11
12
|
$track-height: dimensions.get-size(math.div(4, 24));
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
@include dimensions.height(2, math.div(32, 24));
|
|
9
9
|
@include dimensions.padding-x(math.div(4, 24));
|
|
10
10
|
@include utils.vertical-center-content();
|
|
11
|
-
@include utils.with-outline;
|
|
11
|
+
@include utils.with-outline();
|
|
12
12
|
@include motion.transition(background-color outline-color);
|
|
13
13
|
|
|
14
14
|
align-items: center;
|
|
@@ -0,0 +1,79 @@
|
|
|
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
|
+
@include typography.prevent-text-overflow();
|
|
33
|
+
|
|
34
|
+
font-weight: var(--odx-typography-font-weight-bold);
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
&__description {
|
|
38
|
+
max-height: dimensions.get-size(5);
|
|
39
|
+
overflow: auto;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
&__close {
|
|
43
|
+
@include utils.interactive(true);
|
|
44
|
+
|
|
45
|
+
background-color: transparent;
|
|
46
|
+
margin: 0;
|
|
47
|
+
margin-right: calc(#{$gap} / -2);
|
|
48
|
+
margin-top: calc(#{$gap} / -2);
|
|
49
|
+
|
|
50
|
+
&:hover {
|
|
51
|
+
background-color: var(--blue-700-5);
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
&__buttons {
|
|
56
|
+
display: flex;
|
|
57
|
+
justify-content: flex-end;
|
|
58
|
+
margin-top: calc(#{$gap} / -2);
|
|
59
|
+
padding: 0 calc(#{$gap} / 2);
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
@each $variant in $variants {
|
|
63
|
+
&--#{$variant} {
|
|
64
|
+
background-color: var(--odx-c-#{$variant});
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
&--danger {
|
|
69
|
+
--odx-c-text: var(--red-700);
|
|
70
|
+
--odx-v-scrollbar-thumb-color: var(--odx-c-text);
|
|
71
|
+
--odx-v-scrollbar-thumb-color-hover: var(--red-800);
|
|
72
|
+
|
|
73
|
+
color: var(--odx-c-text);
|
|
74
|
+
|
|
75
|
+
#{$root}__close {
|
|
76
|
+
color: inherit;
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
}
|
|
@@ -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(100vw - 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: 10;
|
|
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
|
+
}
|