change place

This commit is contained in:
xrkffgg 2020-08-12 11:02:23 +08:00
parent 40b9d8c57a
commit 7f130a89ec

View File

@ -120,12 +120,14 @@
left: 0; left: 0;
} }
} }
&-in-view&-range-end::before { &-in-view&-range-end::before {
.@{picker-prefix-cls}-panel-rtl & { .@{picker-prefix-cls}-panel-rtl & {
right: 0; right: 0;
left: 50%; left: 50%;
} }
} }
.@{picker-prefix-cls}-date-panel .@{picker-prefix-cls}-date-panel
&-in-view&-in-range&-range-hover-start &-in-view&-in-range&-range-hover-start
.@{cellClassName}::after { .@{cellClassName}::after {
@ -134,12 +136,14 @@
left: -6px - @border-width-base; left: -6px - @border-width-base;
} }
} }
.@{picker-prefix-cls}-date-panel &-in-view&-in-range&-range-hover-end .@{cellClassName}::after { .@{picker-prefix-cls}-date-panel &-in-view&-in-range&-range-hover-end .@{cellClassName}::after {
.@{picker-prefix-cls}-panel-rtl & { .@{picker-prefix-cls}-panel-rtl & {
right: -6px - @border-width-base; right: -6px - @border-width-base;
left: 0; left: 0;
} }
} }
// Hover with range start & end // Hover with range start & end
&-range-hover&-range-start::after { &-range-hover&-range-start::after {
.@{picker-prefix-cls}-panel-rtl & { .@{picker-prefix-cls}-panel-rtl & {
@ -147,6 +151,7 @@
left: 50%; left: 50%;
} }
} }
&-range-hover&-range-end::after { &-range-hover&-range-end::after {
.@{picker-prefix-cls}-panel-rtl & { .@{picker-prefix-cls}-panel-rtl & {
right: 50%; right: 50%;
@ -154,6 +159,20 @@
} }
} }
// range start border-radius
&-in-view&-range-start:not(&-range-start-single):not(&-range-end) .@{cellClassName} {
.@{picker-prefix-cls}-panel-rtl & {
border-radius: 0 @border-radius-base @border-radius-base 0;
}
}
// range end border-radius
&-in-view&-range-end:not(&-range-end-single):not(&-range-start) .@{cellClassName} {
.@{picker-prefix-cls}-panel-rtl & {
border-radius: @border-radius-base 0 0 @border-radius-base;
}
}
// Edge start // Edge start
tr > &-in-view&-range-hover:first-child::after, tr > &-in-view&-range-hover:first-child::after,
tr > &-in-view&-range-hover-end:first-child::after, tr > &-in-view&-range-hover-end:first-child::after,
@ -206,20 +225,6 @@
border-bottom-left-radius: @border-radius-base; border-bottom-left-radius: @border-radius-base;
} }
} }
// range start border-radius
&-in-view&-range-start:not(&-range-start-single):not(&-range-end) .@{cellClassName} {
.@{picker-prefix-cls}-panel-rtl & {
border-radius: 0 @border-radius-base @border-radius-base 0;
}
}
// range end border-radius
&-in-view&-range-end:not(&-range-end-single):not(&-range-start) .@{cellClassName} {
.@{picker-prefix-cls}-panel-rtl & {
border-radius: @border-radius-base 0 0 @border-radius-base;
}
}
} }
&-time-panel { &-time-panel {