style: cleanup upload unused styles (#35052)

This commit is contained in:
afc163 2022-04-15 16:54:30 +08:00 committed by GitHub
parent 0f0e2f9f43
commit 33c0da0042
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 47 deletions

View File

@ -168,9 +168,11 @@
&-btn {
opacity: 0;
}
&-btn.@{ant-prefix}-btn-sm {
height: 20px;
height: @line-height-base * @font-size-base;
line-height: 1;
vertical-align: top;
}
&.picture {
@ -185,6 +187,11 @@
.@{iconfont-css-prefix} {
color: @upload-actions-color;
transition: all 0.3s;
}
&:hover .@{iconfont-css-prefix} {
color: @text-color;
}
}
@ -210,30 +217,10 @@
}
}
.@{iconfont-css-prefix}-close {
position: absolute;
top: 6px;
right: 4px;
color: @text-color-secondary;
font-size: 10px;
line-height: 0;
cursor: pointer;
opacity: 0;
transition: all 0.3s;
&:hover {
color: @text-color;
}
}
&:hover &-info {
background-color: @item-hover-bg;
}
&:hover .@{iconfont-css-prefix}-close {
opacity: 1;
}
&:hover &-card-actions-btn {
opacity: 1;
}
@ -369,14 +356,6 @@
margin-top: 0;
padding-left: 56px;
}
.@{iconfont-css-prefix}-close {
position: absolute;
top: 8px;
right: 8px;
line-height: 1;
opacity: 1;
}
}
// ======================== Picture Card ========================
@ -389,10 +368,6 @@
vertical-align: top;
}
&.@{upload-prefix-cls}-list::after {
display: none;
}
.@{upload-item} {
height: 100%;
margin: 0;

View File

@ -72,13 +72,6 @@
}
}
.@{iconfont-css-prefix}-close {
.@{upload-prefix-cls}-list-rtl & {
right: auto;
left: 4px;
}
}
&-error &-card-actions {
.@{iconfont-css-prefix} {
.@{upload-prefix-cls}-list-rtl & {
@ -145,13 +138,6 @@
padding-left: 0;
}
}
.@{iconfont-css-prefix}-close {
.@{upload-prefix-cls}-list-rtl& {
right: auto;
left: 8px;
}
}
}
&-picture-card {