seehoo-design-plus
Version:
An UI components for Seehoo Vuejs.3
166 lines (162 loc) • 3.92 kB
text/less
@sh-annex-prefix-cls: ~'@{sh-css-prefix}annex';
.@{sh-annex-prefix-cls} {
&-big {
&-wrapper {
display: flex;
align-items: flex-start ;
flex-wrap: wrap;
}
}
&-small {
min-height: 160px;
flex-direction: column;
border-radius: 4px;
box-sizing: border-box;
position: relative;
cursor: pointer;
display: flex;
margin-bottom: 20px;
margin-right: 20px;
&:last-child {
margin-right: 0px;
}
// 小类样式
.category-file {
flex: 1;
display: flex;
justify-content: left;
flex-flow: row wrap;
min-height: 180px;
min-width: 180px;
border-radius: 4px;
position: relative;
box-sizing: border-box;
overflow: hidden;
text-align: center;
.upload-file {
position: relative;
display: flex;
justify-content: center;
align-items: center;
width: 180px;
margin-top: 20px;
border: 1px dashed @legend-color;
.upload-file-text {
width: 180px;
padding: 6px;
word-wrap: break-word;
}
.ivu-icon {
font-size: 24px;
margin-bottom: 4px;
}
.file-format {
font-size: 12px;
}
//上传遮照
.upload-input-btn {
width: 180px;
height: 156px;
background: rgba(0, 0, 0, 0);
outline: none;
border: 0px;
font-size: 0;
filter: alpha(opacity=0);
opacity: 0;
position: absolute;
bottom: 0;
left: 0;
z-index: 90;
cursor: pointer ;
}
}
.sh-file {
width: 180px;
height: 180px;
overflow: hidden;
margin-right: 2px;
position: relative;
&:last-child {
margin-right: 0;
}
//标记
.sign {
position: absolute;
left: 0px;
top: 26px;
z-index: 9;
&-left {
width: 40px;
height: 40px;
}
}
//图片样式
.file-type {
position: relative;
padding-top: 20px;
img {
width: 180px;
height: 160px;
}
.file-mark {
position: absolute;
right: 0px;
top: 20px;
width: 50px;
height: 50px;
}
.actions {
position: absolute;
opacity: 0;
height: 0;
transition: all 0.3s;
bottom: 0;
width: 100%;
background: @background-color-annex-action;
display: flex;
justify-content: center;
align-items: center;
color: #fff;
line-height: 1;
.ivu-icon {
font-size: 16px;
margin-right: 10px;
&:last-child {
margin-right: 0;
}
}
}
&:hover .actions {
height: 26px;
line-height: 26px;
opacity: 1;
}
}
}
}
//底部小类名称
.category-name {
display: flex;
align-items: center;
justify-content: center;
margin-top: 10px;
color: @font-color;
font-weight: 400;
}
// 头部数量
.category-count {
background: @background-color-annex;
color: @white;
height: 20px;
line-height: 20px;
border-radius: 4px 4px 0 0;
position: absolute;
width: 100%;
z-index: 9;
padding-left: 0;
&:before {
width: 0;
}
}
}
}