2015-08-20 16:55:42 +08:00
|
|
|
@upload-prefix-cls: ant-upload;
|
2015-08-08 23:37:35 +08:00
|
|
|
|
2015-08-20 16:55:42 +08:00
|
|
|
.@{upload-prefix-cls} {
|
2015-08-21 14:46:12 +08:00
|
|
|
|
|
|
|
> span {
|
|
|
|
display: block;
|
|
|
|
width: 100%;
|
|
|
|
}
|
|
|
|
|
|
|
|
input[type=file] {
|
|
|
|
cursor: pointer;
|
|
|
|
}
|
|
|
|
|
|
|
|
&.@{upload-prefix-cls}-select {
|
|
|
|
display: inline-block;
|
|
|
|
}
|
|
|
|
|
2015-08-20 16:55:42 +08:00
|
|
|
&.@{upload-prefix-cls}-drag {
|
2015-08-08 23:37:35 +08:00
|
|
|
border: 1px dashed #d9d9d9;
|
2015-11-13 16:09:39 +08:00
|
|
|
transition: border-color 0.3s ease;
|
2015-08-09 18:00:20 +08:00
|
|
|
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%;
|
2015-11-13 16:09:39 +08:00
|
|
|
height: 100%;
|
2015-08-09 18:00:20 +08:00
|
|
|
position: relative;
|
|
|
|
|
2015-11-11 00:28:05 +08:00
|
|
|
&.@{upload-prefix-cls}-drag-hover {
|
2015-11-13 16:09:39 +08:00
|
|
|
border: 2px dashed tint(@primary-color, 20%);
|
2015-11-11 00:28:05 +08:00
|
|
|
}
|
|
|
|
|
2015-08-21 14:46:12 +08:00
|
|
|
> span {
|
|
|
|
display: table;
|
2015-10-31 13:27:58 +08:00
|
|
|
height: 100%;
|
2015-08-21 14:46:12 +08:00
|
|
|
}
|
|
|
|
|
2015-08-20 16:55:42 +08:00
|
|
|
.@{upload-prefix-cls}-drag-container {
|
2015-08-21 14:46:12 +08:00
|
|
|
display: table-cell;
|
|
|
|
vertical-align: middle;
|
2015-08-09 18:00:20 +08:00
|
|
|
}
|
2015-08-21 14:46:12 +08:00
|
|
|
|
2015-08-09 18:00:20 +08:00
|
|
|
&:hover {
|
2015-11-03 15:06:30 +08:00
|
|
|
border-color: tint(@primary-color, 20%);
|
2015-10-31 13:27:58 +08:00
|
|
|
}
|
|
|
|
|
2015-08-20 16:55:42 +08:00
|
|
|
p.@{upload-prefix-cls}-drag-icon {
|
2015-08-08 23:37:35 +08:00
|
|
|
.anticon {
|
|
|
|
font-size: 80px;
|
2015-11-14 14:09:08 +08:00
|
|
|
margin-top: -5px;
|
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-20 16:55:42 +08:00
|
|
|
p.@{upload-prefix-cls}-text {
|
2015-08-08 23:37:35 +08:00
|
|
|
font-size: 14px;
|
|
|
|
}
|
2015-08-20 16:55:42 +08:00
|
|
|
p.@{upload-prefix-cls}-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-20 16:55:42 +08:00
|
|
|
.@{upload-prefix-cls}-list {
|
|
|
|
.@{upload-prefix-cls}-list-item {
|
2015-08-09 18:00:20 +08:00
|
|
|
overflow: hidden;
|
2015-10-31 13:27:58 +08:00
|
|
|
margin-top: 8px;
|
2015-11-04 12:00:49 +08:00
|
|
|
|
2015-10-31 13:27:58 +08:00
|
|
|
.@{upload-prefix-cls}-list-item-info {
|
2015-11-04 12:00:49 +08:00
|
|
|
height: 22px;
|
|
|
|
line-height: 22px;
|
|
|
|
padding: 0 4px;
|
|
|
|
transition: background-color 0.3s ease;
|
|
|
|
|
2015-10-31 13:27:58 +08:00
|
|
|
.anticon-paper-clip {
|
2015-11-04 12:00:49 +08:00
|
|
|
margin-right: 4px;
|
2015-10-31 13:27:58 +08:00
|
|
|
font-size: 12px;
|
2015-11-04 12:00:49 +08:00
|
|
|
color: #999;
|
2015-11-17 16:13:59 +08:00
|
|
|
top: 1px;
|
2015-10-31 13:27:58 +08:00
|
|
|
}
|
|
|
|
.anticon-cross {
|
2015-11-04 12:00:49 +08:00
|
|
|
.iconfont-size-under-12px(10px);
|
|
|
|
transition: all 0.3s ease;
|
|
|
|
opacity: 0;
|
2015-08-20 20:52:16 +08:00
|
|
|
cursor: pointer;
|
2015-10-31 13:27:58 +08:00
|
|
|
float: right;
|
2015-08-20 20:52:16 +08:00
|
|
|
color: #999;
|
|
|
|
&:hover {
|
|
|
|
color: #666;
|
|
|
|
}
|
|
|
|
}
|
2015-11-04 12:00:49 +08:00
|
|
|
&:hover {
|
|
|
|
background-color: tint(@primary-color, 90%);
|
|
|
|
.anticon.anticon-cross {
|
|
|
|
opacity: 1;
|
|
|
|
}
|
|
|
|
}
|
2015-08-08 23:37:35 +08:00
|
|
|
}
|
2015-10-31 13:27:58 +08:00
|
|
|
|
|
|
|
.@{upload-prefix-cls}-list-item-progress {
|
|
|
|
padding: 0 8px 0 20px;
|
|
|
|
margin-top: -2px;
|
|
|
|
margin-bottom: 1px;
|
|
|
|
font-size: 12px;
|
|
|
|
.ant-progress-line-inner {
|
|
|
|
vertical-align: middle;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2015-08-08 23:37:35 +08:00
|
|
|
}
|
2015-08-20 16:55:42 +08:00
|
|
|
.@{upload-prefix-cls}-item-name {
|
2015-08-09 18:00:20 +08:00
|
|
|
font-size: 12px;
|
|
|
|
font-weight: normal;
|
|
|
|
}
|
2015-11-04 12:00:49 +08:00
|
|
|
|
2015-08-28 16:12:19 +08:00
|
|
|
b.@{upload-prefix-cls}-item-name {
|
|
|
|
color: #666;
|
|
|
|
}
|
2015-11-04 12:00:49 +08:00
|
|
|
|
2015-08-20 16:55:42 +08:00
|
|
|
.@{upload-prefix-cls}-success-icon {
|
2015-08-09 18:00:20 +08:00
|
|
|
color: @success-color;
|
|
|
|
font-weight: bold;
|
|
|
|
}
|
2015-08-21 17:12:42 +08:00
|
|
|
|
2015-08-21 17:37:54 +08:00
|
|
|
.@{upload-prefix-cls}-margin-top-enter {
|
2015-08-24 12:27:13 +08:00
|
|
|
animation: uploadMarginTopIn .3s @ease-in-out-circ;
|
2015-08-21 17:37:54 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
.@{upload-prefix-cls}-margin-top-leave {
|
2015-08-24 12:27:13 +08:00
|
|
|
animation: uploadMarginTopOut .3s @ease-in-out-circ;
|
2015-08-21 17:12:42 +08:00
|
|
|
}
|
|
|
|
|
2015-08-24 12:27:13 +08:00
|
|
|
@keyframes uploadMarginTopIn {
|
2015-08-21 17:37:54 +08:00
|
|
|
from {
|
|
|
|
margin-top: -25px;
|
|
|
|
opacity: 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2015-08-24 12:27:13 +08:00
|
|
|
@keyframes uploadMarginTopOut {
|
2015-08-21 17:37:54 +08:00
|
|
|
to {
|
|
|
|
margin-top: -25px;
|
|
|
|
opacity: 0;
|
|
|
|
}
|
2015-08-21 17:12:42 +08:00
|
|
|
}
|
|
|
|
}
|