@odx/ui 5.2.3 → 5.2.4
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 +6 -0
- package/ag-grid-theme.css +1 -1
- package/core-theme.css +1 -1
- package/package.json +1 -1
- package/scss/3rdparty/ag-grid/theme.scss +4 -4
- package/scss/_colors-dark.scss +1 -1
- package/scss/_colors.scss +2 -1
- package/scss/_utils.scss +18 -21
- package/scss/_visuals.scss +1 -0
- package/scss/abstract/_utils.scss +18 -21
- package/scss/accordion-item.component.scss +2 -2
- package/scss/action-group.component.scss +0 -4
- package/scss/ag-grid/theme.scss +4 -4
- package/scss/anchor-navigation.component.scss +1 -7
- package/scss/bar.component.scss +2 -10
- package/scss/button.component.scss +2 -7
- package/scss/calendar.component.scss +3 -7
- package/scss/card.component.scss +3 -3
- package/scss/checkbox.component.scss +18 -10
- package/scss/chip.component.scss +10 -1
- package/scss/components/accordion-item.component.scss +2 -2
- package/scss/components/action-group.component.scss +0 -4
- package/scss/components/anchor-navigation.component.scss +1 -7
- package/scss/components/bar.component.scss +2 -10
- package/scss/components/button.component.scss +2 -7
- package/scss/components/calendar.component.scss +3 -7
- package/scss/components/card.component.scss +3 -3
- package/scss/components/checkbox.component.scss +18 -10
- package/scss/components/chip.component.scss +10 -1
- package/scss/components/form-field.component.scss +6 -5
- package/scss/components/link.component.scss +3 -3
- package/scss/components/list-item.component.scss +4 -3
- package/scss/components/main-menu-item.component.scss +2 -2
- package/scss/components/main-menu.component.scss +8 -3
- package/scss/components/mainfilter-group.component.scss +4 -4
- package/scss/components/menu.component.scss +2 -0
- package/scss/components/navigation-back.component.scss +2 -2
- package/scss/components/option.component.scss +1 -1
- package/scss/components/radio-button.component.scss +20 -11
- package/scss/components/rail-navigation-item.component.scss +2 -2
- package/scss/components/rail-navigation.component.scss +2 -0
- package/scss/components/search-bar.component.scss +4 -3
- package/scss/components/slider.component.scss +21 -8
- package/scss/components/spinbox.component.scss +8 -4
- package/scss/components/switch.component.scss +14 -8
- package/scss/components/tab-bar-item.component.scss +1 -1
- package/scss/components/tab-bar.component.scss +1 -2
- package/scss/components/toast-item.component.scss +0 -8
- package/scss/components/toggle-button-group.component.scss +5 -6
- package/scss/components/toggle-button.component.scss +2 -4
- package/scss/components/wizard-step.component.scss +5 -5
- package/scss/form-field.component.scss +6 -5
- package/scss/link.component.scss +3 -3
- package/scss/list-item.component.scss +4 -3
- package/scss/main-menu-item.component.scss +2 -2
- package/scss/main-menu.component.scss +8 -3
- package/scss/mainfilter-group.component.scss +4 -4
- package/scss/menu.component.scss +2 -0
- package/scss/navigation-back.component.scss +2 -2
- package/scss/option.component.scss +1 -1
- package/scss/radio-button.component.scss +20 -11
- package/scss/rail-navigation-item.component.scss +2 -2
- package/scss/rail-navigation.component.scss +2 -0
- package/scss/search-bar.component.scss +4 -3
- package/scss/slider.component.scss +21 -8
- package/scss/spinbox.component.scss +8 -4
- package/scss/switch.component.scss +14 -8
- package/scss/tab-bar-item.component.scss +1 -1
- package/scss/tab-bar.component.scss +1 -2
- package/scss/theme.scss +4 -4
- package/scss/toast-item.component.scss +0 -8
- package/scss/toggle-button-group.component.scss +5 -6
- package/scss/toggle-button.component.scss +2 -4
- package/scss/variables/_colors-dark.scss +1 -1
- package/scss/variables/_colors.scss +2 -1
- package/scss/variables/_visuals.scss +1 -0
- package/scss/wizard-step.component.scss +5 -5
- package/scss/components/launch-tile.component.scss +0 -119
- package/scss/launch-tile.component.scss +0 -119
package/package.json
CHANGED
|
@@ -94,8 +94,8 @@
|
|
|
94
94
|
padding-right: calc(var(--odx-vertical-rythm-base-size) * 0.3334);
|
|
95
95
|
vertical-align: middle;
|
|
96
96
|
|
|
97
|
-
@include motion.transition(background-color
|
|
98
|
-
@include utils.with-outline();
|
|
97
|
+
@include motion.transition(background-color);
|
|
98
|
+
@include utils.with-outline(var(--odx-v-outline-width));
|
|
99
99
|
|
|
100
100
|
&::placeholder {
|
|
101
101
|
color: var(--odx-c-text);
|
|
@@ -258,8 +258,8 @@
|
|
|
258
258
|
padding: 1px;
|
|
259
259
|
width: dimensions.get-size(math.div(20, 24));
|
|
260
260
|
|
|
261
|
-
@include motion.transition(background-color color
|
|
262
|
-
@include utils.with-outline();
|
|
261
|
+
@include motion.transition(background-color color);
|
|
262
|
+
@include utils.with-outline(var(--odx-v-outline-width));
|
|
263
263
|
|
|
264
264
|
&:hover {
|
|
265
265
|
background-color: var(--odx-control-background-color-hover);
|
package/scss/_colors-dark.scss
CHANGED
package/scss/_colors.scss
CHANGED
|
@@ -23,8 +23,9 @@
|
|
|
23
23
|
--odx-c-error-warning-text: var(--orange-500);
|
|
24
24
|
|
|
25
25
|
--odx-c-focus: var(--cyan-500-15);
|
|
26
|
-
--odx-c-focus-outline: var(--cyan-
|
|
26
|
+
--odx-c-focus-outline: var(--cyan-600);
|
|
27
27
|
--odx-c-focus-outline-dark: var(--blue-700);
|
|
28
|
+
--odx-c-focus-inner: var(--white);
|
|
28
29
|
|
|
29
30
|
--odx-c-selected-hover: var(--cyan-500-20);
|
|
30
31
|
--odx-c-selected: var(--cyan-500-15);
|
package/scss/_utils.scss
CHANGED
|
@@ -64,18 +64,19 @@
|
|
|
64
64
|
width: 1px;
|
|
65
65
|
}
|
|
66
66
|
|
|
67
|
-
@mixin _focus-styles($with-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
@if $with-background {
|
|
71
|
-
&,
|
|
72
|
-
&:hover {
|
|
73
|
-
background-color: var(--odx-c-focus);
|
|
74
|
-
}
|
|
67
|
+
@mixin _focus-styles($with-box-shadow) {
|
|
68
|
+
@if $with-box-shadow {
|
|
69
|
+
box-shadow: inset 0 0 0 calc(var(--odx-v-outline-width-bold) + var(--odx-v-outline-box-shadow-width)) var(--odx-c-focus-inner);
|
|
75
70
|
}
|
|
71
|
+
|
|
72
|
+
outline-color: var(--odx-c-focus-outline);
|
|
73
|
+
outline-offset: calc(-1 * var(--odx-v-outline-width-bold));
|
|
74
|
+
outline-width: var(--odx-v-outline-width-bold);
|
|
76
75
|
}
|
|
77
76
|
|
|
78
|
-
@mixin focus-state($with-
|
|
77
|
+
@mixin focus-state($with-box-shadow: true, $focus-within: false, $focus-within-selector: null) {
|
|
78
|
+
@include with-outline();
|
|
79
|
+
|
|
79
80
|
@if $focus-within {
|
|
80
81
|
@if $focus-within-selector {
|
|
81
82
|
$focus-within-selector: '#{$focus-within-selector}:focus-visible';
|
|
@@ -84,30 +85,26 @@
|
|
|
84
85
|
}
|
|
85
86
|
|
|
86
87
|
&:focus-within:has(#{$focus-within-selector}) {
|
|
87
|
-
@include _focus-styles($with-
|
|
88
|
+
@include _focus-styles($with-box-shadow);
|
|
88
89
|
@content;
|
|
89
90
|
}
|
|
90
91
|
} @else {
|
|
91
92
|
&:focus-visible {
|
|
92
|
-
@include _focus-styles($with-
|
|
93
|
+
@include _focus-styles($with-box-shadow);
|
|
93
94
|
@content;
|
|
94
95
|
}
|
|
95
96
|
}
|
|
96
97
|
}
|
|
97
98
|
|
|
98
|
-
@mixin with-outline {
|
|
99
|
-
outline:
|
|
100
|
-
outline-offset: calc(-1 *
|
|
101
|
-
}
|
|
99
|
+
@mixin with-outline($width: var(--odx-v-outline-width-bold)) {
|
|
100
|
+
outline: $width solid transparent;
|
|
101
|
+
outline-offset: calc(-1 * #{$width});
|
|
102
102
|
|
|
103
|
-
@
|
|
104
|
-
outline-offset: calc(-1 * var(--odx-v-outline-width-bold));
|
|
105
|
-
outline-width: var(--odx-v-outline-width-bold);
|
|
103
|
+
@content;
|
|
106
104
|
}
|
|
107
105
|
|
|
108
|
-
@mixin interactive($with-
|
|
109
|
-
@include with-
|
|
110
|
-
@include focus-state($with-background, $focus-within);
|
|
106
|
+
@mixin interactive($with-box-shadow: true, $focus-within: false) {
|
|
107
|
+
@include focus-state($with-box-shadow, $focus-within);
|
|
111
108
|
|
|
112
109
|
cursor: pointer;
|
|
113
110
|
user-select: none;
|
package/scss/_visuals.scss
CHANGED
|
@@ -64,18 +64,19 @@
|
|
|
64
64
|
width: 1px;
|
|
65
65
|
}
|
|
66
66
|
|
|
67
|
-
@mixin _focus-styles($with-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
@if $with-background {
|
|
71
|
-
&,
|
|
72
|
-
&:hover {
|
|
73
|
-
background-color: var(--odx-c-focus);
|
|
74
|
-
}
|
|
67
|
+
@mixin _focus-styles($with-box-shadow) {
|
|
68
|
+
@if $with-box-shadow {
|
|
69
|
+
box-shadow: inset 0 0 0 calc(var(--odx-v-outline-width-bold) + var(--odx-v-outline-box-shadow-width)) var(--odx-c-focus-inner);
|
|
75
70
|
}
|
|
71
|
+
|
|
72
|
+
outline-color: var(--odx-c-focus-outline);
|
|
73
|
+
outline-offset: calc(-1 * var(--odx-v-outline-width-bold));
|
|
74
|
+
outline-width: var(--odx-v-outline-width-bold);
|
|
76
75
|
}
|
|
77
76
|
|
|
78
|
-
@mixin focus-state($with-
|
|
77
|
+
@mixin focus-state($with-box-shadow: true, $focus-within: false, $focus-within-selector: null) {
|
|
78
|
+
@include with-outline();
|
|
79
|
+
|
|
79
80
|
@if $focus-within {
|
|
80
81
|
@if $focus-within-selector {
|
|
81
82
|
$focus-within-selector: '#{$focus-within-selector}:focus-visible';
|
|
@@ -84,30 +85,26 @@
|
|
|
84
85
|
}
|
|
85
86
|
|
|
86
87
|
&:focus-within:has(#{$focus-within-selector}) {
|
|
87
|
-
@include _focus-styles($with-
|
|
88
|
+
@include _focus-styles($with-box-shadow);
|
|
88
89
|
@content;
|
|
89
90
|
}
|
|
90
91
|
} @else {
|
|
91
92
|
&:focus-visible {
|
|
92
|
-
@include _focus-styles($with-
|
|
93
|
+
@include _focus-styles($with-box-shadow);
|
|
93
94
|
@content;
|
|
94
95
|
}
|
|
95
96
|
}
|
|
96
97
|
}
|
|
97
98
|
|
|
98
|
-
@mixin with-outline {
|
|
99
|
-
outline:
|
|
100
|
-
outline-offset: calc(-1 *
|
|
101
|
-
}
|
|
99
|
+
@mixin with-outline($width: var(--odx-v-outline-width-bold)) {
|
|
100
|
+
outline: $width solid transparent;
|
|
101
|
+
outline-offset: calc(-1 * #{$width});
|
|
102
102
|
|
|
103
|
-
@
|
|
104
|
-
outline-offset: calc(-1 * var(--odx-v-outline-width-bold));
|
|
105
|
-
outline-width: var(--odx-v-outline-width-bold);
|
|
103
|
+
@content;
|
|
106
104
|
}
|
|
107
105
|
|
|
108
|
-
@mixin interactive($with-
|
|
109
|
-
@include with-
|
|
110
|
-
@include focus-state($with-background, $focus-within);
|
|
106
|
+
@mixin interactive($with-box-shadow: true, $focus-within: false) {
|
|
107
|
+
@include focus-state($with-box-shadow, $focus-within);
|
|
111
108
|
|
|
112
109
|
cursor: pointer;
|
|
113
110
|
user-select: none;
|
|
@@ -17,8 +17,8 @@
|
|
|
17
17
|
&__panel {
|
|
18
18
|
@include dimensions.padding-x(math.div(8, 24));
|
|
19
19
|
@include dimensions.line-height(1.5, 1);
|
|
20
|
-
@include motion.transition(background-color
|
|
21
|
-
@include utils.interactive(
|
|
20
|
+
@include motion.transition(background-color);
|
|
21
|
+
@include utils.interactive();
|
|
22
22
|
|
|
23
23
|
border-radius: var(--odx-v-border-radius-controls);
|
|
24
24
|
display: grid;
|
package/scss/ag-grid/theme.scss
CHANGED
|
@@ -94,8 +94,8 @@
|
|
|
94
94
|
padding-right: calc(var(--odx-vertical-rythm-base-size) * 0.3334);
|
|
95
95
|
vertical-align: middle;
|
|
96
96
|
|
|
97
|
-
@include motion.transition(background-color
|
|
98
|
-
@include utils.with-outline();
|
|
97
|
+
@include motion.transition(background-color);
|
|
98
|
+
@include utils.with-outline(var(--odx-v-outline-width));
|
|
99
99
|
|
|
100
100
|
&::placeholder {
|
|
101
101
|
color: var(--odx-c-text);
|
|
@@ -258,8 +258,8 @@
|
|
|
258
258
|
padding: 1px;
|
|
259
259
|
width: dimensions.get-size(math.div(20, 24));
|
|
260
260
|
|
|
261
|
-
@include motion.transition(background-color color
|
|
262
|
-
@include utils.with-outline();
|
|
261
|
+
@include motion.transition(background-color color);
|
|
262
|
+
@include utils.with-outline(var(--odx-v-outline-width));
|
|
263
263
|
|
|
264
264
|
&:hover {
|
|
265
265
|
background-color: var(--odx-control-background-color-hover);
|
|
@@ -34,12 +34,10 @@
|
|
|
34
34
|
.odx-link {
|
|
35
35
|
@include dimensions.padding-x(math.div(12, 24));
|
|
36
36
|
@include dimensions.padding-y(math.div(6, 24));
|
|
37
|
-
@include utils.interactive(
|
|
37
|
+
@include utils.interactive();
|
|
38
38
|
|
|
39
39
|
color: var(--odx-c-text);
|
|
40
40
|
display: flex;
|
|
41
|
-
outline-offset: calc(var(--odx-v-outline-width-bold) * -1);
|
|
42
|
-
outline-width: var(--odx-v-outline-width-bold);
|
|
43
41
|
|
|
44
42
|
&:not(:empty) {
|
|
45
43
|
gap: dimensions.get-size(math.div(4, 24));
|
|
@@ -49,10 +47,6 @@
|
|
|
49
47
|
background-color: var(--odx-c-selected);
|
|
50
48
|
}
|
|
51
49
|
|
|
52
|
-
&:focus-visible {
|
|
53
|
-
background-color: unset;
|
|
54
|
-
}
|
|
55
|
-
|
|
56
50
|
&:hover {
|
|
57
51
|
color: var(--odx-c-text);
|
|
58
52
|
text-decoration: none;
|
package/scss/bar.component.scss
CHANGED
|
@@ -34,10 +34,8 @@
|
|
|
34
34
|
width: max-content;
|
|
35
35
|
|
|
36
36
|
&-button {
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
@include motion.transition(background-color color outline);
|
|
40
|
-
@include utils.with-outline-bold();
|
|
37
|
+
@include motion.transition(background-color color);
|
|
38
|
+
@include utils.interactive();
|
|
41
39
|
|
|
42
40
|
align-items: center;
|
|
43
41
|
background-color: var(--odx-bar-background-color);
|
|
@@ -45,8 +43,6 @@
|
|
|
45
43
|
display: inline-flex;
|
|
46
44
|
font-size: dimensions.get-size(math.div(4, 3));
|
|
47
45
|
height: dimensions.get-size(math.div(36, 24));
|
|
48
|
-
outline-color: transparent;
|
|
49
|
-
outline-style: solid;
|
|
50
46
|
|
|
51
47
|
&:hover {
|
|
52
48
|
background-color: var(--odx-bar-background-color-hover);
|
|
@@ -57,10 +53,6 @@
|
|
|
57
53
|
background-color: var(--odx-bar-background-color-active);
|
|
58
54
|
}
|
|
59
55
|
|
|
60
|
-
&:focus-visible {
|
|
61
|
-
outline-color: var(--odx-bar-background-color-active);
|
|
62
|
-
}
|
|
63
|
-
|
|
64
56
|
&--default {
|
|
65
57
|
@include dimensions.padding-x(math.div(28, 24));
|
|
66
58
|
}
|
|
@@ -16,12 +16,11 @@
|
|
|
16
16
|
@extend .odx-button--secondary;
|
|
17
17
|
@include dimensions.height(2, 1.5);
|
|
18
18
|
@include dimensions.padding-x(2 * $icon-margin);
|
|
19
|
-
@include motion.transition(background-color color
|
|
19
|
+
@include motion.transition(background-color color);
|
|
20
20
|
@include typography.font-size(0);
|
|
21
21
|
@include typography.font-weight(medium);
|
|
22
22
|
@include utils.center-content(true);
|
|
23
|
-
@include utils.interactive(
|
|
24
|
-
@include utils.with-outline-bold();
|
|
23
|
+
@include utils.interactive();
|
|
25
24
|
|
|
26
25
|
appearance: none;
|
|
27
26
|
border-radius: var(--odx-v-border-radius-controls);
|
|
@@ -67,10 +66,6 @@
|
|
|
67
66
|
}
|
|
68
67
|
}
|
|
69
68
|
|
|
70
|
-
&--highlight:focus-visible {
|
|
71
|
-
outline-color: var(--odx-c-focus-outline-dark);
|
|
72
|
-
}
|
|
73
|
-
|
|
74
69
|
@each $variant in $variants {
|
|
75
70
|
&--#{$variant} {
|
|
76
71
|
background-color: var(--odx-c-#{$variant});
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
}
|
|
18
18
|
|
|
19
19
|
&-header {
|
|
20
|
-
@include motion.transition(background-color
|
|
20
|
+
@include motion.transition(background-color color border-radius);
|
|
21
21
|
@include utils.vertical-center-content();
|
|
22
22
|
@include typography.font-weight(normal);
|
|
23
23
|
|
|
@@ -38,14 +38,12 @@
|
|
|
38
38
|
|
|
39
39
|
&-cell {
|
|
40
40
|
@include dimensions.container(1.5);
|
|
41
|
-
@include motion.transition(background-color
|
|
42
|
-
@include utils.interactive(
|
|
43
|
-
@include utils.with-outline-bold();
|
|
41
|
+
@include motion.transition(background-color color border-radius box-shadow);
|
|
42
|
+
@include utils.interactive();
|
|
44
43
|
@include typography.font-weight(normal);
|
|
45
44
|
|
|
46
45
|
border-radius: var(--odx-v-border-radius-controls);
|
|
47
46
|
cursor: pointer;
|
|
48
|
-
outline-color: transparent;
|
|
49
47
|
position: relative;
|
|
50
48
|
text-align: center;
|
|
51
49
|
vertical-align: middle;
|
|
@@ -104,8 +102,6 @@
|
|
|
104
102
|
}
|
|
105
103
|
|
|
106
104
|
#{$root}-cell {
|
|
107
|
-
border-radius: 0;
|
|
108
|
-
|
|
109
105
|
&--is-current::after {
|
|
110
106
|
@include dimensions.container(1);
|
|
111
107
|
@include dimensions.margin(0.25);
|
package/scss/card.component.scss
CHANGED
|
@@ -24,12 +24,12 @@
|
|
|
24
24
|
|
|
25
25
|
$main-padding: var(--odx-card-main-padding);
|
|
26
26
|
|
|
27
|
-
@include motion.transition(box-shadow
|
|
28
|
-
@include utils.interactive(
|
|
29
|
-
@include utils.with-outline-bold();
|
|
27
|
+
@include motion.transition(box-shadow color border-color);
|
|
28
|
+
@include utils.interactive();
|
|
30
29
|
|
|
31
30
|
background-color: var(--odx-c-background-content);
|
|
32
31
|
behavior: button;
|
|
32
|
+
border: var(--odx-v-outline-width-bold) solid transparent;
|
|
33
33
|
border-radius: var(--odx-v-border-radius);
|
|
34
34
|
display: block;
|
|
35
35
|
padding: $main-padding;
|
|
@@ -22,9 +22,8 @@
|
|
|
22
22
|
|
|
23
23
|
&__label {
|
|
24
24
|
@include dimensions.line-height(1);
|
|
25
|
-
@include motion.transition(background-color color
|
|
25
|
+
@include motion.transition(background-color color);
|
|
26
26
|
@include typography.font-size(0);
|
|
27
|
-
@include utils.interactive($focus-within: true);
|
|
28
27
|
|
|
29
28
|
border-radius: var(--odx-v-border-radius-controls);
|
|
30
29
|
color: inherit;
|
|
@@ -49,15 +48,19 @@
|
|
|
49
48
|
|
|
50
49
|
&__indicator {
|
|
51
50
|
@include dimensions.container(1, math.div(20, 24));
|
|
52
|
-
@include motion.transition(background-color color
|
|
51
|
+
@include motion.transition(background-color color);
|
|
53
52
|
@include utils.center-content(true);
|
|
54
|
-
|
|
53
|
+
|
|
54
|
+
@include utils.with-outline() {
|
|
55
|
+
outline-offset: var(--odx-v-outline-width-bold);
|
|
56
|
+
}
|
|
55
57
|
|
|
56
58
|
background-color: var(--odx-control-background-color);
|
|
59
|
+
border: var(--odx-v-outline-width) solid var(--odx-control-outline-color);
|
|
57
60
|
border-radius: var(--odx-v-border-radius-controls);
|
|
61
|
+
box-shadow: 0 0 0 var(--odx-v-outline-width-bold) transparent;
|
|
58
62
|
color: var(--odx-control-color-selected);
|
|
59
63
|
flex: 0 0 auto;
|
|
60
|
-
outline-color: var(--odx-control-outline-color);
|
|
61
64
|
padding: 1px;
|
|
62
65
|
|
|
63
66
|
> .odx-icon {
|
|
@@ -72,14 +75,14 @@
|
|
|
72
75
|
|
|
73
76
|
#{$root}:hover & {
|
|
74
77
|
background-color: var(--odx-control-background-color-hover);
|
|
75
|
-
|
|
78
|
+
border-color: var(--odx-control-outline-color-hover);
|
|
76
79
|
}
|
|
77
80
|
|
|
78
81
|
#{$root}.is-active &,
|
|
79
82
|
#{$root}__input:indeterminate ~ &,
|
|
80
83
|
#{$root}__input:checked ~ & {
|
|
81
84
|
background-color: var(--odx-control-background-color-selected);
|
|
82
|
-
|
|
85
|
+
border-color: var(--odx-control-outline-color-selected);
|
|
83
86
|
|
|
84
87
|
> .odx-icon {
|
|
85
88
|
opacity: 1;
|
|
@@ -98,19 +101,24 @@
|
|
|
98
101
|
}
|
|
99
102
|
|
|
100
103
|
#{$root}.has-error:hover & {
|
|
101
|
-
|
|
104
|
+
border-color: var(--odx-control-outline-color-error-hover);
|
|
102
105
|
}
|
|
103
106
|
|
|
104
107
|
#{$root}.is-disabled & {
|
|
105
108
|
background-color: var(--odx-control-background-color-disabled);
|
|
109
|
+
border-color: var(--odx-control-outline-color-disabled);
|
|
106
110
|
color: var(--odx-control-color-disabled);
|
|
107
|
-
outline-color: var(--odx-control-outline-color-disabled);
|
|
108
111
|
}
|
|
109
112
|
|
|
110
113
|
#{$root}.is-readonly & {
|
|
111
114
|
background-color: var(--odx-control-background-color-readonly);
|
|
115
|
+
border-color: var(--odx-control-outline-color-readonly);
|
|
112
116
|
color: var(--odx-control-color-readonly);
|
|
113
|
-
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
#{$root}:focus-within:has(:focus-visible) & {
|
|
120
|
+
outline-color: var(--odx-c-focus-outline);
|
|
121
|
+
outline-offset: var(--odx-v-outline-box-shadow-width);
|
|
114
122
|
}
|
|
115
123
|
}
|
|
116
124
|
|
package/scss/chip.component.scss
CHANGED
|
@@ -18,17 +18,26 @@ $variants: secondary, highlight, success, danger, warning, confirmation;
|
|
|
18
18
|
min-width: dimensions.get-size(math.div(32, 24));
|
|
19
19
|
user-select: none;
|
|
20
20
|
|
|
21
|
+
&:not(#{$root}--secondary) {
|
|
22
|
+
--odx-c-focus-inner: transparent;
|
|
23
|
+
}
|
|
24
|
+
|
|
21
25
|
&__content {
|
|
22
26
|
@include typography.prevent-text-overflow();
|
|
23
27
|
}
|
|
24
28
|
|
|
25
29
|
&__action {
|
|
26
30
|
@include utils.center-content();
|
|
27
|
-
@include motion.transition(background-color color
|
|
31
|
+
@include motion.transition(background-color color);
|
|
28
32
|
|
|
29
33
|
border-radius: 50%;
|
|
30
34
|
margin: 0;
|
|
31
35
|
|
|
36
|
+
&:focus-visible {
|
|
37
|
+
box-shadow: 0 0 0 var(--odx-v-outline-box-shadow-width) var(--odx-c-focus-inner);
|
|
38
|
+
outline-offset: var(--odx-v-outline-box-shadow-width);
|
|
39
|
+
}
|
|
40
|
+
|
|
32
41
|
#{$root}--warning & {
|
|
33
42
|
background-color: var(--odx-c-warning);
|
|
34
43
|
color: var(--odx-c-warning-text);
|
|
@@ -17,8 +17,8 @@
|
|
|
17
17
|
&__panel {
|
|
18
18
|
@include dimensions.padding-x(math.div(8, 24));
|
|
19
19
|
@include dimensions.line-height(1.5, 1);
|
|
20
|
-
@include motion.transition(background-color
|
|
21
|
-
@include utils.interactive(
|
|
20
|
+
@include motion.transition(background-color);
|
|
21
|
+
@include utils.interactive();
|
|
22
22
|
|
|
23
23
|
border-radius: var(--odx-v-border-radius-controls);
|
|
24
24
|
display: grid;
|
|
@@ -34,12 +34,10 @@
|
|
|
34
34
|
.odx-link {
|
|
35
35
|
@include dimensions.padding-x(math.div(12, 24));
|
|
36
36
|
@include dimensions.padding-y(math.div(6, 24));
|
|
37
|
-
@include utils.interactive(
|
|
37
|
+
@include utils.interactive();
|
|
38
38
|
|
|
39
39
|
color: var(--odx-c-text);
|
|
40
40
|
display: flex;
|
|
41
|
-
outline-offset: calc(var(--odx-v-outline-width-bold) * -1);
|
|
42
|
-
outline-width: var(--odx-v-outline-width-bold);
|
|
43
41
|
|
|
44
42
|
&:not(:empty) {
|
|
45
43
|
gap: dimensions.get-size(math.div(4, 24));
|
|
@@ -49,10 +47,6 @@
|
|
|
49
47
|
background-color: var(--odx-c-selected);
|
|
50
48
|
}
|
|
51
49
|
|
|
52
|
-
&:focus-visible {
|
|
53
|
-
background-color: unset;
|
|
54
|
-
}
|
|
55
|
-
|
|
56
50
|
&:hover {
|
|
57
51
|
color: var(--odx-c-text);
|
|
58
52
|
text-decoration: none;
|
|
@@ -34,10 +34,8 @@
|
|
|
34
34
|
width: max-content;
|
|
35
35
|
|
|
36
36
|
&-button {
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
@include motion.transition(background-color color outline);
|
|
40
|
-
@include utils.with-outline-bold();
|
|
37
|
+
@include motion.transition(background-color color);
|
|
38
|
+
@include utils.interactive();
|
|
41
39
|
|
|
42
40
|
align-items: center;
|
|
43
41
|
background-color: var(--odx-bar-background-color);
|
|
@@ -45,8 +43,6 @@
|
|
|
45
43
|
display: inline-flex;
|
|
46
44
|
font-size: dimensions.get-size(math.div(4, 3));
|
|
47
45
|
height: dimensions.get-size(math.div(36, 24));
|
|
48
|
-
outline-color: transparent;
|
|
49
|
-
outline-style: solid;
|
|
50
46
|
|
|
51
47
|
&:hover {
|
|
52
48
|
background-color: var(--odx-bar-background-color-hover);
|
|
@@ -57,10 +53,6 @@
|
|
|
57
53
|
background-color: var(--odx-bar-background-color-active);
|
|
58
54
|
}
|
|
59
55
|
|
|
60
|
-
&:focus-visible {
|
|
61
|
-
outline-color: var(--odx-bar-background-color-active);
|
|
62
|
-
}
|
|
63
|
-
|
|
64
56
|
&--default {
|
|
65
57
|
@include dimensions.padding-x(math.div(28, 24));
|
|
66
58
|
}
|
|
@@ -16,12 +16,11 @@
|
|
|
16
16
|
@extend .odx-button--secondary;
|
|
17
17
|
@include dimensions.height(2, 1.5);
|
|
18
18
|
@include dimensions.padding-x(2 * $icon-margin);
|
|
19
|
-
@include motion.transition(background-color color
|
|
19
|
+
@include motion.transition(background-color color);
|
|
20
20
|
@include typography.font-size(0);
|
|
21
21
|
@include typography.font-weight(medium);
|
|
22
22
|
@include utils.center-content(true);
|
|
23
|
-
@include utils.interactive(
|
|
24
|
-
@include utils.with-outline-bold();
|
|
23
|
+
@include utils.interactive();
|
|
25
24
|
|
|
26
25
|
appearance: none;
|
|
27
26
|
border-radius: var(--odx-v-border-radius-controls);
|
|
@@ -67,10 +66,6 @@
|
|
|
67
66
|
}
|
|
68
67
|
}
|
|
69
68
|
|
|
70
|
-
&--highlight:focus-visible {
|
|
71
|
-
outline-color: var(--odx-c-focus-outline-dark);
|
|
72
|
-
}
|
|
73
|
-
|
|
74
69
|
@each $variant in $variants {
|
|
75
70
|
&--#{$variant} {
|
|
76
71
|
background-color: var(--odx-c-#{$variant});
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
}
|
|
18
18
|
|
|
19
19
|
&-header {
|
|
20
|
-
@include motion.transition(background-color
|
|
20
|
+
@include motion.transition(background-color color border-radius);
|
|
21
21
|
@include utils.vertical-center-content();
|
|
22
22
|
@include typography.font-weight(normal);
|
|
23
23
|
|
|
@@ -38,14 +38,12 @@
|
|
|
38
38
|
|
|
39
39
|
&-cell {
|
|
40
40
|
@include dimensions.container(1.5);
|
|
41
|
-
@include motion.transition(background-color
|
|
42
|
-
@include utils.interactive(
|
|
43
|
-
@include utils.with-outline-bold();
|
|
41
|
+
@include motion.transition(background-color color border-radius box-shadow);
|
|
42
|
+
@include utils.interactive();
|
|
44
43
|
@include typography.font-weight(normal);
|
|
45
44
|
|
|
46
45
|
border-radius: var(--odx-v-border-radius-controls);
|
|
47
46
|
cursor: pointer;
|
|
48
|
-
outline-color: transparent;
|
|
49
47
|
position: relative;
|
|
50
48
|
text-align: center;
|
|
51
49
|
vertical-align: middle;
|
|
@@ -104,8 +102,6 @@
|
|
|
104
102
|
}
|
|
105
103
|
|
|
106
104
|
#{$root}-cell {
|
|
107
|
-
border-radius: 0;
|
|
108
|
-
|
|
109
105
|
&--is-current::after {
|
|
110
106
|
@include dimensions.container(1);
|
|
111
107
|
@include dimensions.margin(0.25);
|
|
@@ -24,12 +24,12 @@
|
|
|
24
24
|
|
|
25
25
|
$main-padding: var(--odx-card-main-padding);
|
|
26
26
|
|
|
27
|
-
@include motion.transition(box-shadow
|
|
28
|
-
@include utils.interactive(
|
|
29
|
-
@include utils.with-outline-bold();
|
|
27
|
+
@include motion.transition(box-shadow color border-color);
|
|
28
|
+
@include utils.interactive();
|
|
30
29
|
|
|
31
30
|
background-color: var(--odx-c-background-content);
|
|
32
31
|
behavior: button;
|
|
32
|
+
border: var(--odx-v-outline-width-bold) solid transparent;
|
|
33
33
|
border-radius: var(--odx-v-border-radius);
|
|
34
34
|
display: block;
|
|
35
35
|
padding: $main-padding;
|