mirror of
https://github.com/ant-design/ant-design.git
synced 2024-11-26 04:00:13 +08:00
102 lines
1.8 KiB
Plaintext
102 lines
1.8 KiB
Plaintext
@upload-prefix-cls: ant-upload;
|
|
|
|
.@{upload-prefix-cls} {
|
|
|
|
> span {
|
|
display: block;
|
|
width: 100%;
|
|
height: 100%;
|
|
}
|
|
|
|
input[type=file] {
|
|
cursor: pointer;
|
|
}
|
|
|
|
&.@{upload-prefix-cls}-select {
|
|
display: inline-block;
|
|
}
|
|
|
|
&.@{upload-prefix-cls}-drag {
|
|
border: 1px dashed #d9d9d9;
|
|
transition: all 0.3s ease;
|
|
cursor: pointer;
|
|
border-radius: @border-radius-base;
|
|
text-align: center;
|
|
width: 100%;
|
|
height: 100%;
|
|
position: relative;
|
|
|
|
> span {
|
|
display: table;
|
|
}
|
|
|
|
.@{upload-prefix-cls}-drag-container {
|
|
display: table-cell;
|
|
vertical-align: middle;
|
|
}
|
|
|
|
&:hover {
|
|
border: 1px dashed #999;
|
|
}
|
|
p.@{upload-prefix-cls}-drag-icon {
|
|
.anticon {
|
|
font-size: 80px;
|
|
margin-top: -30px;
|
|
color: tint(@primary-color, 20%);
|
|
}
|
|
height: 60px;
|
|
margin-bottom: 24px;
|
|
}
|
|
p.@{upload-prefix-cls}-text {
|
|
font-size: 14px;
|
|
}
|
|
p.@{upload-prefix-cls}-hint {
|
|
font-size: 12px;
|
|
color: #999;
|
|
}
|
|
.anticon-plus {
|
|
font-size: 30px;
|
|
transition: all 0.3s ease;
|
|
color: #d9d9d9;
|
|
&:hover {
|
|
color: #999;
|
|
}
|
|
}
|
|
&:hover .anticon-plus {
|
|
color: #999;
|
|
}
|
|
}
|
|
}
|
|
|
|
.@{upload-prefix-cls}-list {
|
|
margin-left: 4px;
|
|
margin-top: 8px;
|
|
.@{upload-prefix-cls}-list-item {
|
|
margin-bottom: 4px;
|
|
height: 22px;
|
|
overflow: hidden;
|
|
.anticon {
|
|
margin-top: -2px;
|
|
font-size: 12px;
|
|
&.anticon-cross {
|
|
cursor: pointer;
|
|
color: #999;
|
|
&:hover {
|
|
color: #666;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
.@{upload-prefix-cls}-item-name {
|
|
font-size: 12px;
|
|
color: #666;
|
|
margin-left: 4px;
|
|
margin-right: 8px;
|
|
font-weight: normal;
|
|
}
|
|
.@{upload-prefix-cls}-success-icon {
|
|
color: @success-color;
|
|
font-weight: bold;
|
|
}
|
|
}
|