You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

361 lines
6.6 KiB

@upload-prefix-cls: ant-upload;
@upload-item: ant-upload-list-item;
@pictrue-card-size: 96px;
.@{upload-prefix-cls} {
font-size: @font-size-base;
> span {
display: block;
width: 100%;
outline: none;
}
input[type="file"] {
cursor: pointer;
}
&&-select {
display: inline-block;
}
&&-select-picture-card {
border: 1px dashed @border-color-base;
width: @pictrue-card-size;
height: @pictrue-card-size;
padding: 24px 0;
border-radius: @border-radius-base;
background-color: #fbfbfb;
text-align: center;
cursor: pointer;
transition: border-color 0.3s ease;
display: inline-block;
vertical-align: top;
margin-right: 8px;
margin-bottom: 8px;
&:hover {
border-color: @primary-color;
}
}
&&-drag {
border: 1px dashed @border-color-base;
9 years ago
transition: border-color 0.3s ease;
cursor: pointer;
border-radius: @border-radius-base;
text-align: center;
width: 100%;
9 years ago
height: 100%;
position: relative;
&.@{upload-prefix-cls}-drag-hover {
9 years ago
border: 2px dashed tint(@primary-color, 20%);
}
> span {
display: table;
height: 100%;
}
.@{upload-prefix-cls}-drag-container {
display: table-cell;
vertical-align: middle;
}
&:hover {
border-color: tint(@primary-color, 20%);
}
p.@{upload-prefix-cls}-drag-icon {
.anticon {
font-size: 80px;
margin-top: -5px;
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: #ccc;
&:hover {
color: #999;
}
}
&:hover .anticon-plus {
color: #999;
}
}
}
.@{upload-prefix-cls}-list {
&-item {
overflow: hidden;
margin-top: 8px;