2015-08-08 23:37:35 +08:00
|
|
|
@prefixUploadClass: ant-upload;
|
|
|
|
|
|
|
|
.@{prefixUploadClass} {
|
2015-08-09 18:00:20 +08:00
|
|
|
&.@{prefixUploadClass}-drag {
|
2015-08-08 23:37:35 +08:00
|
|
|
border: 1px dashed #d9d9d9;
|
2015-08-09 18:00:20 +08:00
|
|
|
transition: all 0.3s ease;
|
|
|
|
cursor: pointer;
|
2015-08-08 23:37:35 +08:00
|
|
|
border-radius: @border-radius-base;
|
|
|
|
text-align: center;
|
2015-08-09 18:00:20 +08:00
|
|
|
width: 100%;
|
|
|
|
height: 100%;
|
|
|
|
position: relative;
|
|
|
|
|
|
|
|
.@{prefixUploadClass}-drag-container {
|
|
|
|
position: absolute;
|
|
|
|
top: 50%;
|
|
|
|
left: 50%;
|
|
|
|
transform: translate(-50%, -50%);
|
|
|
|
width: 100%;
|
|
|
|
}
|
|
|
|
&:hover {
|
|
|
|
border: 1px dashed #999;
|
|
|
|
}
|
|
|
|
p.@{prefixUploadClass}-drag-icon {
|
2015-08-08 23:37:35 +08:00
|
|
|
.anticon {
|
|
|
|
font-size: 80px;
|
|
|
|
margin-top: -30px;
|
2015-08-09 18:00:20 +08:00
|
|
|
color: tint(@primary-color, 20%);
|
2015-08-08 23:37:35 +08:00
|
|
|
}
|
|
|
|
height: 60px;
|
2015-08-09 18:00:20 +08:00
|
|
|
margin-bottom: 24px;
|
2015-08-08 23:37:35 +08:00
|
|
|
}
|
2015-08-09 18:00:20 +08:00
|
|
|
p.@{prefixUploadClass}-text {
|
2015-08-08 23:37:35 +08:00
|
|
|
font-size: 14px;
|
|
|
|
}
|
2015-08-09 18:00:20 +08:00
|
|
|
p.@{prefixUploadClass}-hint {
|
2015-08-08 23:37:35 +08:00
|
|
|
font-size: 12px;
|
2015-08-09 18:00:20 +08:00
|
|
|
color: #999;
|
2015-08-08 23:37:35 +08:00
|
|
|
}
|
2015-08-09 18:00:20 +08:00
|
|
|
.anticon-plus {
|
2015-08-08 23:37:35 +08:00
|
|
|
font-size: 30px;
|
2015-08-09 18:00:20 +08:00
|
|
|
transition: all 0.3s ease;
|
|
|
|
color: #d9d9d9;
|
|
|
|
&:hover {
|
|
|
|
color: #999;
|
|
|
|
}
|
2015-08-08 23:37:35 +08:00
|
|
|
}
|
2015-08-09 18:00:20 +08:00
|
|
|
&:hover .anticon-plus {
|
|
|
|
color: #999;
|
2015-08-08 23:37:35 +08:00
|
|
|
}
|
|
|
|
}
|
2015-08-09 18:00:20 +08:00
|
|
|
}
|
2015-08-08 23:37:35 +08:00
|
|
|
|
2015-08-09 18:00:20 +08:00
|
|
|
.@{prefixUploadClass}-list {
|
|
|
|
margin-left: 4px;
|
|
|
|
margin-top: 8px;
|
|
|
|
.@{prefixUploadClass}-list-item {
|
|
|
|
margin-bottom: 4px;
|
|
|
|
height: 22px;
|
|
|
|
overflow: hidden;
|
2015-08-08 23:37:35 +08:00
|
|
|
.anticon {
|
2015-08-09 18:00:20 +08:00
|
|
|
margin-top: -2px;
|
|
|
|
.iconfont-size-under-12px(10px);
|
|
|
|
&.anticon-cross {
|
|
|
|
cursor: pointer;
|
|
|
|
color: #999;
|
|
|
|
&:hover {
|
|
|
|
color: #666;
|
|
|
|
}
|
|
|
|
}
|
2015-08-08 23:37:35 +08:00
|
|
|
}
|
|
|
|
}
|
2015-08-09 18:00:20 +08:00
|
|
|
.@{prefixUploadClass}-item-name {
|
|
|
|
font-size: 12px;
|
|
|
|
color: #666;
|
|
|
|
margin-left: 4px;
|
|
|
|
margin-right: 8px;
|
|
|
|
font-weight: normal;
|
|
|
|
}
|
|
|
|
.@{prefixUploadClass}-success-icon {
|
|
|
|
color: @success-color;
|
|
|
|
font-weight: bold;
|
|
|
|
}
|
2015-08-08 23:37:35 +08:00
|
|
|
}
|