mirror of
https://github.com/ant-design/ant-design.git
synced 2024-11-24 11:10:01 +08:00
style: 💄 fix Pickers wrong animation direction (#27101)
* style: fix Pickers wrong animation direction * style: reduce css bundle size
This commit is contained in:
parent
f487d8dba8
commit
18c4b085ba
@ -32,11 +32,11 @@
|
|||||||
text-align: center;
|
text-align: center;
|
||||||
background-color: @back-top-bg;
|
background-color: @back-top-bg;
|
||||||
border-radius: 20px;
|
border-radius: 20px;
|
||||||
transition: all 0.3s @ease-in-out;
|
transition: all 0.3s;
|
||||||
|
|
||||||
&:hover {
|
&:hover {
|
||||||
background-color: @back-top-hover-bg;
|
background-color: @back-top-hover-bg;
|
||||||
transition: all 0.3s @ease-in-out;
|
transition: all 0.3s;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -223,11 +223,10 @@
|
|||||||
|
|
||||||
&-expand &-expand-icon,
|
&-expand &-expand-icon,
|
||||||
&-loading-icon {
|
&-loading-icon {
|
||||||
.iconfont-size-under-12px(10px);
|
|
||||||
|
|
||||||
position: absolute;
|
position: absolute;
|
||||||
right: @control-padding-horizontal;
|
right: @control-padding-horizontal;
|
||||||
color: @text-color-secondary;
|
color: @text-color-secondary;
|
||||||
|
font-size: 10px;
|
||||||
|
|
||||||
.@{cascader-prefix-cls}-menu-item-disabled& {
|
.@{cascader-prefix-cls}-menu-item-disabled& {
|
||||||
color: @disabled-color;
|
color: @disabled-color;
|
||||||
|
@ -237,6 +237,30 @@
|
|||||||
transform: rotate(135deg);
|
transform: rotate(135deg);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
&.slide-up-enter.slide-up-enter-active&-placement-topLeft,
|
||||||
|
&.slide-up-enter.slide-up-enter-active&-placement-topRight,
|
||||||
|
&.slide-up-appear.slide-up-appear-active&-placement-topLeft,
|
||||||
|
&.slide-up-appear.slide-up-appear-active&-placement-topRight {
|
||||||
|
animation-name: antSlideDownIn;
|
||||||
|
}
|
||||||
|
|
||||||
|
&.slide-up-enter.slide-up-enter-active&-placement-bottomLeft,
|
||||||
|
&.slide-up-enter.slide-up-enter-active&-placement-bottomRight,
|
||||||
|
&.slide-up-appear.slide-up-appear-active&-placement-bottomLeft,
|
||||||
|
&.slide-up-appear.slide-up-appear-active&-placement-bottomRight {
|
||||||
|
animation-name: antSlideUpIn;
|
||||||
|
}
|
||||||
|
|
||||||
|
&.slide-up-leave.slide-up-leave-active&-placement-topLeft,
|
||||||
|
&.slide-up-leave.slide-up-leave-active&-placement-topRight {
|
||||||
|
animation-name: antSlideDownOut;
|
||||||
|
}
|
||||||
|
|
||||||
|
&.slide-up-leave.slide-up-leave-active&-placement-bottomLeft,
|
||||||
|
&.slide-up-leave.slide-up-leave-active&-placement-bottomRight {
|
||||||
|
animation-name: antSlideUpOut;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
&-dropdown-range {
|
&-dropdown-range {
|
||||||
|
@ -28,7 +28,7 @@
|
|||||||
position: relative;
|
position: relative;
|
||||||
|
|
||||||
.@{ant-prefix}-btn > .@{iconfont-css-prefix}-down {
|
.@{ant-prefix}-btn > .@{iconfont-css-prefix}-down {
|
||||||
.iconfont-size-under-12px(10px);
|
font-size: 10px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.@{iconfont-css-prefix}-down::before {
|
.@{iconfont-css-prefix}-down::before {
|
||||||
@ -243,8 +243,8 @@
|
|||||||
&-icon {
|
&-icon {
|
||||||
margin-right: 0 !important;
|
margin-right: 0 !important;
|
||||||
color: @text-color-secondary;
|
color: @text-color-secondary;
|
||||||
|
font-size: 10px;
|
||||||
font-style: normal;
|
font-style: normal;
|
||||||
.iconfont-size-under-12px(10px);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -322,8 +322,8 @@
|
|||||||
.@{dropdown-prefix-cls}-link,
|
.@{dropdown-prefix-cls}-link,
|
||||||
.@{dropdown-prefix-cls}-button {
|
.@{dropdown-prefix-cls}-button {
|
||||||
> .@{iconfont-css-prefix}.@{iconfont-css-prefix}-down {
|
> .@{iconfont-css-prefix}.@{iconfont-css-prefix}-down {
|
||||||
|
font-size: 10px;
|
||||||
vertical-align: baseline;
|
vertical-align: baseline;
|
||||||
.iconfont-size-under-12px(10px);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -134,10 +134,9 @@
|
|||||||
.@{input-number-prefix-cls}-handler {
|
.@{input-number-prefix-cls}-handler {
|
||||||
.@{input-number-prefix-cls}-handler-up-inner,
|
.@{input-number-prefix-cls}-handler-up-inner,
|
||||||
.@{input-number-prefix-cls}-handler-down-inner {
|
.@{input-number-prefix-cls}-handler-down-inner {
|
||||||
.iconfont-size-under-12px(7px);
|
|
||||||
|
|
||||||
min-width: auto;
|
min-width: auto;
|
||||||
margin-right: 0;
|
margin-right: 0;
|
||||||
|
font-size: 7px;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -90,10 +90,9 @@
|
|||||||
display: inline-block;
|
display: inline-block;
|
||||||
color: @text-color-secondary;
|
color: @text-color-secondary;
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
font-size: @font-size-sm;
|
font-size: 10px;
|
||||||
line-height: inherit;
|
line-height: inherit;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
.iconfont-size-under-12px(10px);
|
|
||||||
|
|
||||||
> .@{iconfont-css-prefix} {
|
> .@{iconfont-css-prefix} {
|
||||||
vertical-align: -0.2em;
|
vertical-align: -0.2em;
|
||||||
|
@ -26,10 +26,3 @@
|
|||||||
display: block;
|
display: block;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// for iconfont font size
|
|
||||||
// fix chrome 12px bug
|
|
||||||
.iconfont-size-under-12px(@size) {
|
|
||||||
display: inline-block;
|
|
||||||
font-size: @size;
|
|
||||||
}
|
|
||||||
|
@ -233,7 +233,7 @@
|
|||||||
|
|
||||||
&-up,
|
&-up,
|
||||||
&-down {
|
&-down {
|
||||||
.iconfont-size-under-12px(11px);
|
font-size: 11px;
|
||||||
|
|
||||||
&.active {
|
&.active {
|
||||||
color: @primary-color;
|
color: @primary-color;
|
||||||
@ -383,8 +383,8 @@
|
|||||||
transition: all 0.3s;
|
transition: all 0.3s;
|
||||||
|
|
||||||
.@{iconfont-css-prefix} {
|
.@{iconfont-css-prefix} {
|
||||||
.iconfont-size-under-12px(10px);
|
|
||||||
color: @table-header-icon-color;
|
color: @table-header-icon-color;
|
||||||
|
font-size: 10px;
|
||||||
|
|
||||||
&:hover {
|
&:hover {
|
||||||
color: @table-header-icon-color-hover;
|
color: @table-header-icon-color-hover;
|
||||||
|
@ -18,7 +18,7 @@
|
|||||||
border-radius: @border-radius-base;
|
border-radius: @border-radius-base;
|
||||||
cursor: default;
|
cursor: default;
|
||||||
opacity: 1;
|
opacity: 1;
|
||||||
transition: all 0.3s @ease-in-out-circ;
|
transition: all 0.3s;
|
||||||
|
|
||||||
&:hover {
|
&:hover {
|
||||||
opacity: 0.85;
|
opacity: 0.85;
|
||||||
@ -37,12 +37,11 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
&-close-icon {
|
&-close-icon {
|
||||||
.iconfont-size-under-12px(10px);
|
|
||||||
|
|
||||||
margin-left: 3px;
|
margin-left: 3px;
|
||||||
color: @text-color-secondary;
|
color: @text-color-secondary;
|
||||||
|
font-size: 10px;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
transition: all 0.3s @ease-in-out-circ;
|
transition: all 0.3s;
|
||||||
|
|
||||||
&:hover {
|
&:hover {
|
||||||
color: @heading-color;
|
color: @heading-color;
|
||||||
|
@ -91,9 +91,9 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
&-dropdown {
|
&-dropdown {
|
||||||
|
font-size: 10px;
|
||||||
transform: translateY(10%);
|
transform: translateY(10%);
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
.iconfont-size-under-12px(10px);
|
|
||||||
|
|
||||||
&[disabled] {
|
&[disabled] {
|
||||||
cursor: not-allowed;
|
cursor: not-allowed;
|
||||||
|
@ -8,8 +8,8 @@
|
|||||||
.antTreeSwitcherIcon(@type: 'tree-default-open-icon') {
|
.antTreeSwitcherIcon(@type: 'tree-default-open-icon') {
|
||||||
.@{tree-prefix-cls}-switcher-icon,
|
.@{tree-prefix-cls}-switcher-icon,
|
||||||
.@{select-tree-prefix-cls}-switcher-icon {
|
.@{select-tree-prefix-cls}-switcher-icon {
|
||||||
.iconfont-size-under-12px(10px);
|
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
|
font-size: 10px;
|
||||||
vertical-align: baseline;
|
vertical-align: baseline;
|
||||||
svg {
|
svg {
|
||||||
transition: transform 0.3s;
|
transition: transform 0.3s;
|
||||||
|
@ -221,12 +221,11 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.@{iconfont-css-prefix}-close {
|
.@{iconfont-css-prefix}-close {
|
||||||
.iconfont-size-under-12px(10px);
|
|
||||||
|
|
||||||
position: absolute;
|
position: absolute;
|
||||||
top: 6px;
|
top: 6px;
|
||||||
right: 4px;
|
right: 4px;
|
||||||
color: @text-color-secondary;
|
color: @text-color-secondary;
|
||||||
|
font-size: 10px;
|
||||||
line-height: 0;
|
line-height: 0;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
opacity: 0;
|
opacity: 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user