2017-01-19 16:26:31 +08:00
|
|
|
@upload-prefix-cls: ~"@{css-prefix}upload";
|
|
|
|
|
|
|
|
.@{upload-prefix-cls} {
|
2017-01-22 14:48:38 +08:00
|
|
|
input[type="file"]{
|
|
|
|
display: none;
|
|
|
|
}
|
2017-01-19 16:26:31 +08:00
|
|
|
|
2017-01-22 14:48:38 +08:00
|
|
|
&-list{
|
2017-01-22 15:25:00 +08:00
|
|
|
margin-top: 8px;
|
2017-01-22 14:48:38 +08:00
|
|
|
|
|
|
|
&-file{
|
|
|
|
padding: 4px;
|
|
|
|
color: @text-color;
|
|
|
|
border-radius: @border-radius-small;
|
|
|
|
transition: background-color @transition-time @ease-in-out;
|
|
|
|
overflow: hidden;
|
|
|
|
position: relative;
|
|
|
|
|
2017-01-22 17:19:37 +08:00
|
|
|
& > span{
|
2017-01-22 14:48:38 +08:00
|
|
|
cursor: pointer;
|
|
|
|
transition: color @transition-time @ease-in-out;
|
|
|
|
i{
|
|
|
|
display: inline-block;
|
|
|
|
width: @font-size-small;
|
|
|
|
height: @font-size-small;
|
|
|
|
color: @text-color;
|
|
|
|
text-align: center;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&:hover{
|
|
|
|
background: @input-disabled-bg;
|
2017-01-22 17:19:37 +08:00
|
|
|
& > span{
|
2017-01-22 14:48:38 +08:00
|
|
|
color: @primary-color;
|
|
|
|
i{
|
|
|
|
color: @text-color;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
.@{upload-prefix-cls}-list-remove{
|
|
|
|
opacity: 1;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
&-remove{
|
|
|
|
opacity: 0;
|
|
|
|
font-size: 18px;
|
|
|
|
cursor: pointer;
|
|
|
|
float: right;
|
|
|
|
margin-right: 4px;
|
|
|
|
color: @legend-color;
|
|
|
|
transition: all @transition-time ease;
|
|
|
|
&:hover{
|
|
|
|
color: #444;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2017-06-30 11:00:04 +08:00
|
|
|
&-select {
|
|
|
|
display: inline-block;
|
|
|
|
}
|
|
|
|
|
2017-01-22 14:48:38 +08:00
|
|
|
&-drag{
|
|
|
|
background: #fff;
|
|
|
|
border: 1px dashed @border-color-base;
|
|
|
|
border-radius: @border-radius-small;
|
|
|
|
text-align: center;
|
|
|
|
cursor: pointer;
|
|
|
|
position: relative;
|
|
|
|
overflow: hidden;
|
|
|
|
transition: border-color @transition-time ease;
|
|
|
|
|
|
|
|
&:hover{
|
|
|
|
border: 1px dashed @primary-color;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
&-dragOver{
|
|
|
|
border: 2px dashed @primary-color;
|
|
|
|
}
|
2017-01-19 16:26:31 +08:00
|
|
|
}
|