@odx/ui 4.6.2 → 4.6.3
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
CHANGED
package/core-theme.css
CHANGED
|
@@ -7002,9 +7002,6 @@ html body .odx-fs-italic {
|
|
|
7002
7002
|
}
|
|
7003
7003
|
|
|
7004
7004
|
.odx-toggle-button {
|
|
7005
|
-
padding-top: calc(var(--odx-vertical-rythm-base-size) * 0.25);
|
|
7006
|
-
padding-bottom: calc(var(--odx-vertical-rythm-base-size) * 0.25);
|
|
7007
|
-
line-height: calc(var(--odx-vertical-rythm-base-size) * 1);
|
|
7008
7005
|
transition-delay: 0ms;
|
|
7009
7006
|
transition-duration: var(--odx-v-transition-duration);
|
|
7010
7007
|
transition-property: color;
|
|
@@ -7035,13 +7032,18 @@ html body .odx-fs-italic {
|
|
|
7035
7032
|
pointer-events: none;
|
|
7036
7033
|
}
|
|
7037
7034
|
.odx-toggle-button__indicator {
|
|
7038
|
-
border-radius: var(--odx-toggle-button-border-radius);
|
|
7039
7035
|
transition-delay: 0ms;
|
|
7040
7036
|
transition-duration: var(--odx-v-transition-duration);
|
|
7041
7037
|
transition-property: background-color, outline-color;
|
|
7042
7038
|
transition-timing-function: var(--odx-v-transition-easing-fn);
|
|
7043
7039
|
padding-right: calc(var(--odx-vertical-rythm-base-size) * 0.3334);
|
|
7044
7040
|
padding-left: calc(var(--odx-vertical-rythm-base-size) * 0.3334);
|
|
7041
|
+
display: flex;
|
|
7042
|
+
align-items: center;
|
|
7043
|
+
block-size: calc(var(--odx-vertical-rythm-base-size) * 1.1667);
|
|
7044
|
+
border-radius: var(--odx-toggle-button-border-radius);
|
|
7045
|
+
-moz-column-gap: calc(var(--odx-vertical-rythm-base-size) * 0.1667);
|
|
7046
|
+
column-gap: calc(var(--odx-vertical-rythm-base-size) * 0.1667);
|
|
7045
7047
|
}
|
|
7046
7048
|
.odx-toggle-button.is-readonly .odx-toggle-button__indicator, .odx-toggle-button.is-disabled .odx-toggle-button__indicator, .odx-toggle-button-group.is-active .odx-toggle-button__indicator, .odx-toggle-button-group.has-error .odx-toggle-button__indicator {
|
|
7047
7049
|
background-color: transparent;
|
|
@@ -7071,8 +7073,8 @@ html body .odx-fs-italic {
|
|
|
7071
7073
|
pointer-events: none;
|
|
7072
7074
|
}
|
|
7073
7075
|
.odx-toggle-button__label {
|
|
7074
|
-
padding-top: calc(var(--odx-vertical-rythm-base-size) * 0.
|
|
7075
|
-
padding-bottom: calc(var(--odx-vertical-rythm-base-size) * 0.
|
|
7076
|
+
padding-top: calc(var(--odx-vertical-rythm-base-size) * 0.1667);
|
|
7077
|
+
padding-bottom: calc(var(--odx-vertical-rythm-base-size) * 0.1667);
|
|
7076
7078
|
cursor: pointer;
|
|
7077
7079
|
text-align: center;
|
|
7078
7080
|
width: 100%;
|
|
@@ -7111,12 +7113,10 @@ html body .odx-fs-italic {
|
|
|
7111
7113
|
z-index: var(--odx-v-layer-1);
|
|
7112
7114
|
}
|
|
7113
7115
|
.odx-toggle-button-group__indicator {
|
|
7114
|
-
margin-top: calc(var(--odx-vertical-rythm-base-size) * 0.5);
|
|
7115
|
-
margin-bottom: calc(var(--odx-vertical-rythm-base-size) * 0.5);
|
|
7116
|
-
height: calc(var(--odx-vertical-rythm-base-size) * 1);
|
|
7117
7116
|
outline: var(--odx-v-outline-width) solid transparent;
|
|
7118
7117
|
outline-offset: calc(-1 * var(--odx-v-outline-width));
|
|
7119
7118
|
background-color: var(--odx-c-highlight);
|
|
7119
|
+
block-size: calc(var(--odx-vertical-rythm-base-size) * 1.1667);
|
|
7120
7120
|
border-radius: var(--odx-toggle-button-border-radius);
|
|
7121
7121
|
}
|
|
7122
7122
|
.odx-toggle-button-group.is-disabled .odx-toggle-button-group__indicator {
|
package/package.json
CHANGED
|
@@ -20,10 +20,10 @@
|
|
|
20
20
|
z-index: var(--odx-v-layer-1);
|
|
21
21
|
|
|
22
22
|
&__indicator {
|
|
23
|
-
@include dimensions.height(2, 1);
|
|
24
23
|
@include utils.with-outline();
|
|
25
24
|
|
|
26
25
|
background-color: var(--odx-c-highlight);
|
|
26
|
+
block-size: dimensions.get-size(math.div(28, 24));
|
|
27
27
|
border-radius: var(--odx-toggle-button-border-radius);
|
|
28
28
|
|
|
29
29
|
#{$root}.is-disabled & {
|
|
@@ -7,7 +7,6 @@
|
|
|
7
7
|
.odx-toggle-button {
|
|
8
8
|
$root: &;
|
|
9
9
|
|
|
10
|
-
@include dimensions.line-height(1.5, 1);
|
|
11
10
|
@include motion.transition(color);
|
|
12
11
|
@include typography.font-size(0);
|
|
13
12
|
@include typography.font-weight(medium);
|
|
@@ -38,10 +37,13 @@
|
|
|
38
37
|
}
|
|
39
38
|
|
|
40
39
|
&__indicator {
|
|
41
|
-
border-radius: var(--odx-toggle-button-border-radius);
|
|
42
|
-
|
|
43
40
|
@include motion.transition(background-color outline-color);
|
|
44
41
|
@include dimensions.padding-x(math.div(1, 3));
|
|
42
|
+
@include utils.vertical-center-content();
|
|
43
|
+
|
|
44
|
+
block-size: dimensions.get-size(math.div(28, 24));
|
|
45
|
+
border-radius: var(--odx-toggle-button-border-radius);
|
|
46
|
+
column-gap: dimensions.get-size(math.div(1, 6));
|
|
45
47
|
|
|
46
48
|
#{$root}.is-readonly &,
|
|
47
49
|
#{$root}.is-disabled &,
|
|
@@ -58,7 +60,7 @@
|
|
|
58
60
|
}
|
|
59
61
|
|
|
60
62
|
&__label {
|
|
61
|
-
@include dimensions.padding-y(
|
|
63
|
+
@include dimensions.padding-y(math.div(1, 6));
|
|
62
64
|
|
|
63
65
|
cursor: pointer;
|
|
64
66
|
text-align: center;
|