amis/scss/components/form/_file.scss

160 lines
2.6 KiB
SCSS
Raw Normal View History

2019-10-23 23:01:45 +08:00
.#{$ns}FileControl {
2019-12-06 09:58:08 +08:00
&-dropzone {
outline: none;
}
2019-10-23 23:01:45 +08:00
2019-12-06 09:58:08 +08:00
&-selectBtn {
width: px2rem(120px);
2019-10-23 23:01:45 +08:00
2019-12-06 09:58:08 +08:00
> svg {
margin-right: 10px;
width: pxrem(16px);
height: pxrem(16px);
2019-10-23 23:01:45 +08:00
}
2019-12-06 09:58:08 +08:00
}
// &-dropzone:focus {
// .#{$ns}FileControl-selectBtn {
// background: $Button--default-onHover-bg;
// border-color: $Button--default-onHover-border;
// color: $Button--default-onHover-color;
// }
// &:after {
// content: '当前状态接受从剪切板中粘贴文件。';
// color: $text--muted-color;
// font-size: 11px;
// margin-top: 10px;
// }
// }
&-description {
margin-left: 10px;
color: #999;
font-size: 12px;
}
&-list {
list-style: none;
margin: 10px 0;
padding: 0;
width: 250px;
> li {
color: #333;
font-size: 12px;
&:hover {
color: #108cee;
background: #f3f3f3;
}
2019-10-23 23:01:45 +08:00
}
2019-12-06 09:58:08 +08:00
}
2019-10-23 23:01:45 +08:00
2019-12-06 09:58:08 +08:00
&-itemInfo {
padding: 0px 6px;
line-height: 26px;
height: 26px;
2019-10-23 23:01:45 +08:00
2019-12-06 09:58:08 +08:00
&.is-invalid {
color: #999;
2019-10-23 23:01:45 +08:00
}
2019-12-06 09:58:08 +08:00
> svg:first-child {
margin-right: 10px;
2019-10-23 23:01:45 +08:00
}
2019-12-06 09:58:08 +08:00
> svg:not(:first-child) {
margin-left: 10px;
width: px2rem(16px);
height: px2rem(16px);
top: px2rem(5px);
}
2019-12-06 09:58:08 +08:00
}
&-itemInfoText {
white-space: nowrap;
max-width: 180px;
overflow: hidden;
text-overflow: ellipsis;
display: inline-block;
vertical-align: middle;
}
&-clear {
float: right;
color: #999;
display: none;
cursor: pointer;
&:hover {
color: #333;
2019-10-23 23:01:45 +08:00
}
2019-12-06 09:58:08 +08:00
}
2020-04-08 11:02:00 +08:00
&-list:empty {
display: none;
}
2019-12-06 09:58:08 +08:00
&-list > li:hover &-clear {
display: block;
}
&-progressInfo {
display: inline-flex;
height: 20px;
padding: 0 6px;
transform: translateY(-3px);
width: 100%;
align-items: center;
white-space: nowrap;
text-overflow: ellipsis;
> span {
display: inline-block;
padding: 0 4px 0 10px;
font-size: 12px;
2019-10-23 23:01:45 +08:00
}
2019-12-06 09:58:08 +08:00
> svg {
display: inline-block;
margin: 0 4px 0 10px;
width: 14px;
height: 14px;
top: 0;
2019-10-23 23:01:45 +08:00
}
2019-12-06 09:58:08 +08:00
}
&-progress {
height: 5px;
flex: 1;
background: #ebebeb;
> span {
display: block;
background: $info;
height: 100%;
min-width: 10%;
transition: ease-out width 0.3s;
2019-10-23 23:01:45 +08:00
}
2019-12-06 09:58:08 +08:00
}
&-acceptTip {
height: 120px;
color: #999;
border: 2px dashed $info;
border-radius: $borderRadius;
background: #f3f9fe;
line-height: 120px;
text-align: center;
}
2019-12-23 18:31:41 +08:00
&-sum {
font-size: $fontSizeSm;
> a {
cursor: pointer;
}
}
2019-12-06 09:58:08 +08:00
}