2016-04-27 20:44:36 +08:00
|
|
|
@import "../../style/themes/default";
|
|
|
|
@import "../../style/mixins/index";
|
|
|
|
|
2016-09-14 16:18:33 +08:00
|
|
|
@upload-prefix-cls: ~"@{ant-prefix}-upload";
|
|
|
|
@upload-item: ~"@{ant-prefix}-upload-list-item";
|
2016-04-27 20:44:36 +08:00
|
|
|
@upload-pictrue-card-size: 96px;
|
2015-08-08 23:37:35 +08:00
|
|
|
|
2015-08-20 16:55:42 +08:00
|
|
|
.@{upload-prefix-cls} {
|
2016-01-16 16:39:52 +08:00
|
|
|
font-size: @font-size-base;
|
2016-10-10 22:38:11 +08:00
|
|
|
outline: 0;
|
2015-08-21 14:46:12 +08:00
|
|
|
|
2016-08-16 17:54:59 +08:00
|
|
|
&-btn {
|
2015-08-21 14:46:12 +08:00
|
|
|
display: block;
|
|
|
|
width: 100%;
|
2016-01-15 16:44:07 +08:00
|
|
|
outline: none;
|
2015-08-21 14:46:12 +08:00
|
|
|
}
|
|
|
|
|
2015-11-26 19:32:55 +08:00
|
|
|
input[type="file"] {
|
2015-08-21 14:46:12 +08:00
|
|
|
cursor: pointer;
|
|
|
|
}
|
|
|
|
|
2015-12-12 15:25:54 +08:00
|
|
|
&&-select {
|
2015-08-21 14:46:12 +08:00
|
|
|
display: inline-block;
|
|
|
|
}
|
|
|
|
|
2016-01-16 16:39:52 +08:00
|
|
|
&&-select-picture-card {
|
|
|
|
border: 1px dashed @border-color-base;
|
2016-04-27 20:44:36 +08:00
|
|
|
width: @upload-pictrue-card-size;
|
|
|
|
height: @upload-pictrue-card-size;
|
2016-01-16 16:39:52 +08:00
|
|
|
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;
|
|
|
|
|
2016-10-10 22:38:11 +08:00
|
|
|
> .@{upload-prefix-cls} {
|
|
|
|
display: block;
|
|
|
|
width: 100%;
|
|
|
|
height: 100%;
|
|
|
|
padding: 20px 0;
|
|
|
|
}
|
|
|
|
|
2016-01-16 16:39:52 +08:00
|
|
|
&:hover {
|
|
|
|
border-color: @primary-color;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2015-12-12 15:25:54 +08:00
|
|
|
&&-drag {
|
|
|
|
border: 1px dashed @border-color-base;
|
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;
|
|
|
|
|
2016-08-14 15:20:00 +08:00
|
|
|
&.@{upload-prefix-cls}-drag-hover:not(.@{upload-prefix-cls}-disabled) {
|
2017-01-01 22:20:06 +08:00
|
|
|
border: 2px dashed@primary-5;
|
2015-11-11 00:28:05 +08:00
|
|
|
}
|
|
|
|
|
2016-08-14 15:20:00 +08:00
|
|
|
&.@{upload-prefix-cls}-disabled {
|
|
|
|
cursor: not-allowed;
|
|
|
|
}
|
|
|
|
|
2016-08-16 17:54:59 +08:00
|
|
|
.@{upload-prefix-cls}-btn {
|
2015-08-21 14:46:12 +08:00
|
|
|
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
|
|
|
|
2016-08-14 15:20:00 +08:00
|
|
|
&:not(.@{upload-prefix-cls}-disabled):hover {
|
2017-01-01 22:20:06 +08:00
|
|
|
border-color: @primary-5;
|
2015-10-31 13:27:58 +08:00
|
|
|
}
|
|
|
|
|
2015-08-20 16:55:42 +08:00
|
|
|
p.@{upload-prefix-cls}-drag-icon {
|
2016-09-14 16:18:33 +08:00
|
|
|
.@{iconfont-css-prefix} {
|
2015-08-08 23:37:35 +08:00
|
|
|
font-size: 80px;
|
2015-11-14 14:09:08 +08:00
|
|
|
margin-top: -5px;
|
2017-01-01 22:20:06 +08:00
|
|
|
color: @primary-5;
|
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 {
|
2016-11-08 21:07:01 +08:00
|
|
|
font-size: @font-size-lg;
|
2015-08-08 23:37:35 +08:00
|
|
|
}
|
2015-08-20 16:55:42 +08:00
|
|
|
p.@{upload-prefix-cls}-hint {
|
2016-11-08 20:57:07 +08:00
|
|
|
font-size: @font-size-base;
|
2016-11-08 20:45:56 +08:00
|
|
|
color: @text-color-secondary;
|
2015-08-08 23:37:35 +08:00
|
|
|
}
|
2016-09-14 16:18:33 +08:00
|
|
|
.@{iconfont-css-prefix}-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;
|
2017-01-01 22:20:06 +08:00
|
|
|
color: @disabled-color;
|
2015-08-09 18:00:20 +08:00
|
|
|
&:hover {
|
2016-11-08 20:45:56 +08:00
|
|
|
color: @text-color-secondary;
|
2015-08-09 18:00:20 +08:00
|
|
|
}
|
2015-08-08 23:37:35 +08:00
|
|
|
}
|
2016-09-14 16:18:33 +08:00
|
|
|
&:hover .@{iconfont-css-prefix}-plus {
|
2016-11-08 20:45:56 +08:00
|
|
|
color: @text-color-secondary;
|
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 {
|
2016-06-15 19:48:42 +08:00
|
|
|
overflow: hidden;
|
2015-12-12 15:25:54 +08:00
|
|
|
&-item {
|
2015-08-09 18:00:20 +08:00
|
|
|
overflow: hidden;
|
2015-10-31 13:27:58 +08:00
|
|
|
margin-top: 8px;
|
2016-11-08 20:57:07 +08:00
|
|
|
font-size: @font-size-base;
|
2015-11-04 12:00:49 +08:00
|
|
|
|
2015-12-12 15:25:54 +08:00
|
|
|
&-info {
|
2015-11-04 12:00:49 +08:00
|
|
|
height: 22px;
|
|
|
|
line-height: 22px;
|
|
|
|
padding: 0 4px;
|
|
|
|
transition: background-color 0.3s ease;
|
|
|
|
|
2016-09-14 16:18:33 +08:00
|
|
|
.@{iconfont-css-prefix}-paper-clip {
|
2015-11-04 12:00:49 +08:00
|
|
|
margin-right: 4px;
|
2016-11-08 20:57:07 +08:00
|
|
|
font-size: @font-size-base;
|
2016-11-08 20:45:56 +08:00
|
|
|
color: @text-color-secondary;
|
2015-10-31 13:27:58 +08:00
|
|
|
}
|
2016-09-14 16:18:33 +08:00
|
|
|
.@{iconfont-css-prefix}-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;
|
2016-11-08 20:45:56 +08:00
|
|
|
color: @text-color-secondary;
|
2015-11-18 16:45:18 +08:00
|
|
|
line-height: 22px;
|
2015-08-20 20:52:16 +08:00
|
|
|
&:hover {
|
2016-11-08 20:50:59 +08:00
|
|
|
color: @text-color;
|
2015-08-20 20:52:16 +08:00
|
|
|
}
|
|
|
|
}
|
2015-08-08 23:37:35 +08:00
|
|
|
}
|
2015-10-31 13:27:58 +08:00
|
|
|
|
2015-12-12 15:25:54 +08:00
|
|
|
&:hover &-info {
|
2017-01-01 22:20:06 +08:00
|
|
|
background-color: @primary-1;
|
2015-12-12 15:25:54 +08:00
|
|
|
}
|
|
|
|
|
2016-09-14 16:18:33 +08:00
|
|
|
&:hover .@{iconfont-css-prefix}-cross {
|
2015-12-12 15:25:54 +08:00
|
|
|
opacity: 1;
|
|
|
|
}
|
|
|
|
|
2015-12-14 11:56:00 +08:00
|
|
|
&-error,
|
2016-09-14 16:18:33 +08:00
|
|
|
&-error .@{iconfont-css-prefix}-paper-clip {
|
2015-12-14 11:56:00 +08:00
|
|
|
color: @error-color;
|
|
|
|
}
|
|
|
|
|
2016-09-14 16:18:33 +08:00
|
|
|
&-error .@{iconfont-css-prefix}-cross {
|
2015-12-14 11:56:00 +08:00
|
|
|
opacity: 1;
|
|
|
|
}
|
|
|
|
|
2015-12-12 15:25:54 +08:00
|
|
|
&-progress {
|
2015-10-31 13:27:58 +08:00
|
|
|
padding: 0 8px 0 20px;
|
|
|
|
margin-top: -2px;
|
|
|
|
margin-bottom: 1px;
|
2016-11-08 20:57:07 +08:00
|
|
|
font-size: @font-size-base;
|
2016-09-14 16:18:33 +08:00
|
|
|
.@{ant-prefix}-progress-line-inner {
|
2015-10-31 13:27:58 +08:00
|
|
|
vertical-align: middle;
|
|
|
|
}
|
|
|
|
}
|
2015-12-12 15:25:54 +08:00
|
|
|
}
|
|
|
|
|
2016-01-15 15:56:06 +08:00
|
|
|
&-picture,
|
|
|
|
&-picture-card {
|
|
|
|
.@{upload-item} {
|
|
|
|
padding: 8px;
|
|
|
|
border-radius: @border-radius-base;
|
|
|
|
border: 1px solid @border-color-base;
|
|
|
|
height: 66px;
|
|
|
|
position: relative;
|
|
|
|
&:hover {
|
|
|
|
background: transparent;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.@{upload-item}-info {
|
|
|
|
padding: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
.@{upload-item}:hover .@{upload-item}-info {
|
2015-12-12 15:25:54 +08:00
|
|
|
background: transparent;
|
|
|
|
}
|
2015-10-31 13:27:58 +08:00
|
|
|
|
2016-01-15 15:56:06 +08:00
|
|
|
.@{upload-item}-uploading {
|
|
|
|
border-style: dashed;
|
|
|
|
}
|
2015-12-12 15:25:54 +08:00
|
|
|
|
2016-01-15 15:56:06 +08:00
|
|
|
.@{upload-item}-thumbnail {
|
|
|
|
width: 48px;
|
|
|
|
height: 48px;
|
2016-01-15 16:11:31 +08:00
|
|
|
position: absolute;
|
|
|
|
top: 8px;
|
|
|
|
left: 8px;
|
2016-01-15 15:56:06 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
.@{upload-item}-thumbnail img {
|
|
|
|
width: 48px;
|
|
|
|
height: 48px;
|
|
|
|
display: block;
|
2016-11-22 14:21:42 +08:00
|
|
|
overflow: hidden;
|
|
|
|
border-radius: @border-radius-sm;
|
2016-01-15 15:56:06 +08:00
|
|
|
}
|
2015-12-12 15:25:54 +08:00
|
|
|
|
2016-09-14 16:18:33 +08:00
|
|
|
.@{upload-item}-thumbnail.@{iconfont-css-prefix}:before {
|
2016-01-15 15:56:06 +08:00
|
|
|
line-height: 48px;
|
|
|
|
font-size: 24px;
|
2016-11-08 20:45:56 +08:00
|
|
|
color: @text-color-secondary;
|
2016-01-15 15:56:06 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
.@{upload-item}-name {
|
|
|
|
overflow: hidden;
|
|
|
|
text-overflow: ellipsis;
|
|
|
|
white-space: nowrap;
|
|
|
|
margin: 0 0 0 8px;
|
2016-11-22 14:21:42 +08:00
|
|
|
line-height: 44px;
|
2016-01-15 15:56:06 +08:00
|
|
|
transition: all 0.3s ease;
|
2016-01-15 16:11:31 +08:00
|
|
|
padding-left: 48px;
|
|
|
|
padding-right: 8px;
|
|
|
|
max-width: 100%;
|
|
|
|
display: inline-block;
|
|
|
|
box-sizing: border-box;
|
2016-01-15 15:56:06 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
.@{upload-item}-uploading .@{upload-item}-name {
|
|
|
|
line-height: 28px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.@{upload-item}-progress {
|
|
|
|
padding-left: 56px;
|
|
|
|
margin-top: 0;
|
|
|
|
}
|
|
|
|
|
2016-09-14 16:18:33 +08:00
|
|
|
.@{iconfont-css-prefix}-cross {
|
2016-01-15 15:56:06 +08:00
|
|
|
position: absolute;
|
|
|
|
right: 8px;
|
|
|
|
top: 8px;
|
|
|
|
line-height: 1;
|
|
|
|
}
|
2015-12-12 15:25:54 +08:00
|
|
|
}
|
|
|
|
|
2016-01-15 15:56:06 +08:00
|
|
|
&-picture-card {
|
2016-08-02 14:51:48 +08:00
|
|
|
display: inline;
|
2016-01-15 15:56:06 +08:00
|
|
|
|
|
|
|
.@{upload-item} {
|
|
|
|
display: inline-block;
|
2016-04-27 20:44:36 +08:00
|
|
|
width: @upload-pictrue-card-size;
|
|
|
|
height: @upload-pictrue-card-size;
|
2016-01-16 16:39:52 +08:00
|
|
|
margin: 0 8px 8px 0;
|
2016-01-15 15:56:06 +08:00
|
|
|
}
|
2015-12-12 15:25:54 +08:00
|
|
|
|
2016-01-15 15:56:06 +08:00
|
|
|
.@{upload-item}-info {
|
2016-01-16 16:39:52 +08:00
|
|
|
height: 100%;
|
|
|
|
position: relative;
|
2015-12-12 15:25:54 +08:00
|
|
|
|
2016-01-15 15:56:06 +08:00
|
|
|
&:before {
|
|
|
|
content: ' ';
|
|
|
|
position: absolute;
|
2016-01-15 16:11:31 +08:00
|
|
|
z-index: 1;
|
2017-01-10 20:15:02 +08:00
|
|
|
background-color: rgba(0, 0, 0, 0.5);
|
|
|
|
transition: all .3s;
|
2016-01-15 15:56:06 +08:00
|
|
|
opacity: 0;
|
2016-01-16 16:39:52 +08:00
|
|
|
width: 100%;
|
|
|
|
height: 100%;
|
2016-01-15 15:56:06 +08:00
|
|
|
}
|
2015-12-12 15:25:54 +08:00
|
|
|
|
2016-09-14 16:18:33 +08:00
|
|
|
.@{iconfont-css-prefix}-eye-o,
|
|
|
|
.@{iconfont-css-prefix}-delete {
|
2016-01-15 16:11:31 +08:00
|
|
|
z-index: 10;
|
2017-01-10 20:15:02 +08:00
|
|
|
transition: all .3;
|
2016-01-15 15:56:06 +08:00
|
|
|
cursor: pointer;
|
|
|
|
font-size: 16px;
|
2016-01-16 16:39:52 +08:00
|
|
|
width: 16px;
|
2017-01-10 20:15:02 +08:00
|
|
|
color: @text-color-dark;
|
2016-01-15 15:56:06 +08:00
|
|
|
opacity: 0;
|
2017-01-10 20:15:02 +08:00
|
|
|
margin: 0 4px;
|
2016-01-16 16:39:52 +08:00
|
|
|
&:hover {
|
|
|
|
color: #fff;
|
|
|
|
}
|
2016-01-15 15:56:06 +08:00
|
|
|
}
|
2015-12-12 15:25:54 +08:00
|
|
|
|
2016-01-15 15:56:06 +08:00
|
|
|
&:hover {
|
|
|
|
&:before {
|
2017-01-10 20:15:02 +08:00
|
|
|
opacity: 1;
|
2016-01-15 15:56:06 +08:00
|
|
|
}
|
|
|
|
|
2016-09-14 16:18:33 +08:00
|
|
|
.@{iconfont-css-prefix}-eye-o,
|
|
|
|
.@{iconfont-css-prefix}-delete {
|
2016-01-15 15:56:06 +08:00
|
|
|
opacity: 1;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2015-11-04 12:00:49 +08:00
|
|
|
|
2017-01-10 20:15:02 +08:00
|
|
|
.@{upload-item}-actions {
|
|
|
|
position: absolute;
|
|
|
|
left: 50%;
|
|
|
|
top: 50%;
|
|
|
|
transform: translate(-50%, -50%);
|
|
|
|
z-index: 10;
|
|
|
|
white-space: nowrap;
|
|
|
|
}
|
|
|
|
|
2016-01-16 16:39:52 +08:00
|
|
|
.@{upload-item}-thumbnail,
|
2016-01-15 15:56:06 +08:00
|
|
|
.@{upload-item}-thumbnail img {
|
2016-01-16 16:39:52 +08:00
|
|
|
display: block;
|
|
|
|
width: 100%;
|
|
|
|
height: 100%;
|
|
|
|
position: static;
|
2016-01-15 15:56:06 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
.@{upload-item}-name {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
.@{upload-item}-uploading {
|
|
|
|
&.@{upload-item} {
|
|
|
|
background-color: #fbfbfb;
|
|
|
|
}
|
|
|
|
|
|
|
|
.@{upload-item}-info {
|
2016-08-02 14:51:48 +08:00
|
|
|
height: auto;
|
2016-01-15 15:56:06 +08:00
|
|
|
&:before,
|
2016-09-14 16:18:33 +08:00
|
|
|
.@{iconfont-css-prefix}-eye-o,
|
|
|
|
.@{iconfont-css-prefix}-delete {
|
2016-01-15 15:56:06 +08:00
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&-text {
|
|
|
|
margin-top: 18px;
|
2016-11-08 20:45:56 +08:00
|
|
|
color: @text-color-secondary;
|
2016-01-15 15:56:06 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.@{upload-item}-progress {
|
|
|
|
padding-left: 0;
|
|
|
|
}
|
2015-08-28 16:12:19 +08:00
|
|
|
}
|
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-11-26 19:32:55 +08:00
|
|
|
}
|
2015-08-21 17:12:42 +08:00
|
|
|
|
2015-11-26 19:32:55 +08:00
|
|
|
@keyframes uploadMarginTopIn {
|
|
|
|
from {
|
|
|
|
margin-top: -25px;
|
|
|
|
opacity: 0;
|
2015-08-21 17:37:54 +08:00
|
|
|
}
|
2015-11-26 19:32:55 +08:00
|
|
|
}
|
2015-08-21 17:37:54 +08:00
|
|
|
|
2015-11-26 19:32:55 +08:00
|
|
|
@keyframes uploadMarginTopOut {
|
|
|
|
to {
|
|
|
|
margin-top: -25px;
|
|
|
|
opacity: 0;
|
2015-08-21 17:12:42 +08:00
|
|
|
}
|
|
|
|
}
|