mirror of
https://github.com/ant-design/ant-design.git
synced 2025-06-07 17:44:35 +08:00
style: cleanup upload unused styles (#35052)
This commit is contained in:
parent
0f0e2f9f43
commit
33c0da0042
@ -168,9 +168,11 @@
|
|||||||
&-btn {
|
&-btn {
|
||||||
opacity: 0;
|
opacity: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
&-btn.@{ant-prefix}-btn-sm {
|
&-btn.@{ant-prefix}-btn-sm {
|
||||||
height: 20px;
|
height: @line-height-base * @font-size-base;
|
||||||
line-height: 1;
|
line-height: 1;
|
||||||
|
vertical-align: top;
|
||||||
}
|
}
|
||||||
|
|
||||||
&.picture {
|
&.picture {
|
||||||
@ -185,6 +187,11 @@
|
|||||||
|
|
||||||
.@{iconfont-css-prefix} {
|
.@{iconfont-css-prefix} {
|
||||||
color: @upload-actions-color;
|
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 {
|
&:hover &-info {
|
||||||
background-color: @item-hover-bg;
|
background-color: @item-hover-bg;
|
||||||
}
|
}
|
||||||
|
|
||||||
&:hover .@{iconfont-css-prefix}-close {
|
|
||||||
opacity: 1;
|
|
||||||
}
|
|
||||||
|
|
||||||
&:hover &-card-actions-btn {
|
&:hover &-card-actions-btn {
|
||||||
opacity: 1;
|
opacity: 1;
|
||||||
}
|
}
|
||||||
@ -369,14 +356,6 @@
|
|||||||
margin-top: 0;
|
margin-top: 0;
|
||||||
padding-left: 56px;
|
padding-left: 56px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.@{iconfont-css-prefix}-close {
|
|
||||||
position: absolute;
|
|
||||||
top: 8px;
|
|
||||||
right: 8px;
|
|
||||||
line-height: 1;
|
|
||||||
opacity: 1;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// ======================== Picture Card ========================
|
// ======================== Picture Card ========================
|
||||||
@ -389,10 +368,6 @@
|
|||||||
vertical-align: top;
|
vertical-align: top;
|
||||||
}
|
}
|
||||||
|
|
||||||
&.@{upload-prefix-cls}-list::after {
|
|
||||||
display: none;
|
|
||||||
}
|
|
||||||
|
|
||||||
.@{upload-item} {
|
.@{upload-item} {
|
||||||
height: 100%;
|
height: 100%;
|
||||||
margin: 0;
|
margin: 0;
|
||||||
|
@ -72,13 +72,6 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.@{iconfont-css-prefix}-close {
|
|
||||||
.@{upload-prefix-cls}-list-rtl & {
|
|
||||||
right: auto;
|
|
||||||
left: 4px;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
&-error &-card-actions {
|
&-error &-card-actions {
|
||||||
.@{iconfont-css-prefix} {
|
.@{iconfont-css-prefix} {
|
||||||
.@{upload-prefix-cls}-list-rtl & {
|
.@{upload-prefix-cls}-list-rtl & {
|
||||||
@ -145,13 +138,6 @@
|
|||||||
padding-left: 0;
|
padding-left: 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.@{iconfont-css-prefix}-close {
|
|
||||||
.@{upload-prefix-cls}-list-rtl& {
|
|
||||||
right: auto;
|
|
||||||
left: 8px;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
&-picture-card {
|
&-picture-card {
|
||||||
|
Loading…
Reference in New Issue
Block a user