yyzone
Version:
yyzone vue components and utils
216 lines (206 loc) • 5.37 kB
text/less
@prefixSecurityUpload: ~'@{yy-css-prefix}security-upload';
@prefixSecurityImageUpload: ~'@{yy-css-prefix}security-image-upload';
.@{prefixSecurityUpload} {
color: #111;
&-no-data {
text-align: center;
font-size: 12px;
}
&-choose {
margin-bottom: 10px;
display: flex;
align-items: center;
justify-content: space-between;
&-tips {
font-size: @yy-font-size-small;
color: @yy-text-info-color ;
}
.yy-upload {
flex: 1;
}
}
&-drag {
&-content {
padding: 10px;
font-size: @yy-font-size-small;
color: @yy-text-info-color ;
&-text {
padding: 5px 0;
display: inline-block;
}
&-disabled {
border-color:@yy-border-color-disabled;
background-color:@yy-background-color-disabled;
color: @yy-text-disabled-color;
cursor: @cursor-disabled;
}
}
&-list {
text-align: left;
.@{prefixSecurityUpload}-item {
&:first-child {
margin-top: 0;
}
.yy-checkbox-wrapper {
margin: 0 10px 0 20px;
}
}
}
}
&-item {
display: flex;
align-items: center;
margin-bottom: 2px;
line-height: 30px;
&:first-child {
margin-top: 10px;
}
&-info {
flex: 1;
background-color: @yy-background-color-base;
padding: 4px 10px;
font-size: 12px;
color: @yy-text-info-color;
display: flex;
align-items: center;
overflow: hidden;
}
&-dbline {
flex: 1;
background-color: @yy-background-color-base;
padding: 4px 10px;
font-size: 12px;
color: @yy-text-info-color;
width: 100%;
box-sizing: border-box;
> div {
display: flex;
align-items: center;
&:first-child {
> * {
flex-shrink: 0;
}
.@{prefixSecurityUpload}-item-filename {
flex: 1;
}
}
&:last-child {
justify-content: space-between;
}
}
}
&-download {
margin-left: 10px;
color: #108EE9;
cursor: pointer;
}
&-security {
margin-right: 10px;
&-PUBLIC {
color: #18B681;
}
&-INTERNAL {
color: #FF8B00;
}
&-SCERET {
color: #108EE9;
}
&-CONFIDENTIAL {
color: #E14C46;
}
}
&-filesize {
margin: 0 10px;
}
&-filename {
flex: 1;
margin-left: 10px;
.ellipsis();
}
.yy-checkbox-wrapper {
margin: 0 20px;
}
}
&-count {
color: @yy-text-info-color;
font-size: @yy-font-size-small;
background-image: url('../../images/clip.png');
background-repeat: no-repeat;
background-size: contain;
background-position: left center;
padding-left: 15px;
}
&-list {
&-echo {
padding: 10px;
background-color: @yy-background-color-base;
border: 1px solid @yy-check-border;
.@{prefixSecurityUpload}-item {
&-info, &-dbline {
background-color: #fff;
&:hover {
background-color: #F3F5F9;
}
}
}
}
.yy-checkbox-wrapper {
margin: 0 10px 0 0;
}
}
}
.@{prefixSecurityImageUpload} {
font-size: 0;
.@{prefixUploadCls} {
display: inline-block;
}
&-operate {
position: absolute;
display: none;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-color: rgba(0,0,0,.6);
align-items: center;
justify-content: center;
font-size: @yy-font-size-small;
color: #fff;
span {
margin: 0 3px;
.cursor();
}
}
&-item {
width: 80px;
height: 80px;
border: 1px @yy-border-color-base dashed;
display: inline-block;
vertical-align: middle;
margin-right: 10px;
border-radius: 3px;
overflow: hidden;
position: relative;
img {
width: 100%;
height: 100%;
}
&:hover {
.@{prefixSecurityImageUpload}-operate {
display: flex;
}
}
}
&-control {
color: @yy-border-color-base;
font-size: @yy-font-size-large + 10;
text-align: center;
line-height: 74px;
.cursor();
}
.yy-icon {
position: absolute;
right: 0;
top: 0;
}
}