next-ucap-messenger/projects/ucap-webmessenger-app/src/app/layouts/messenger/components/right-drawer/album-box.component.scss

124 lines
2.0 KiB
SCSS
Raw Normal View History

2019-11-20 08:31:08 +00:00
@mixin ellipsis($row) {
overflow: hidden;
text-overflow: ellipsis;
@if $row == 1 {
display: block;
white-space: nowrap;
word-wrap: normal;
} @else if $row >= 2 {
display: -webkit-box;
-webkit-line-clamp: $row;
-webkit-box-orient: vertical;
word-wrap: break-word;
}
}
::ng-deep .rightDrawer-albumbox {
height: 100%;
overflow: hidden;
.mat-tab-labels {
.mat-tab-label {
width: 50%;
}
}
}
2019-11-19 04:13:08 +00:00
.select-filebox{
display:flex;
flex-flow: column;
margin:10px;
padding:10px;
border:1px solid #cccccc;
border-radius: 4px;
2019-11-20 08:31:08 +00:00
.select-file{
2019-11-19 04:13:08 +00:00
color: #212121;
border-bottom: 1px dotted #dddddd;
text-align:center;
2019-11-20 08:31:08 +00:00
padding-bottom:10px;
}
ul{
padding-top:10px;
li{
@include ellipsis(1);
&.name{
2019-11-19 04:13:08 +00:00
font-weight:600;
}
}
}
2019-11-20 08:31:08 +00:00
.empty-msg{
display:inline-flex;
flex-flow: column;
margin:auto 0;
align-items: center;
justify-content: center;
color:#999999;
span{
padding:6px;
}
}
2019-11-19 04:13:08 +00:00
}
.search-list{
display:flex;
padding:0 10px;
height: calc(100% - 450px);
overflow-y: auto;
flex-wrap: wrap;
2019-11-19 04:13:08 +00:00
.img-item {
cursor: pointer;
margin-bottom:10px;
2019-11-20 08:31:08 +00:00
margin-right:9px;
2019-11-19 04:13:08 +00:00
position: relative;
2019-11-20 08:31:08 +00:00
height: 150px;
2019-11-19 04:13:08 +00:00
dl{
dt{
display: flex;
justify-content: center;
align-items: center;
width: 120px;
height: 120px;
background-color: #efefef;
border: 1px dotted #cccccc;
2019-11-20 08:31:08 +00:00
box-sizing: border-box;
2019-11-19 04:13:08 +00:00
img{
width:100%;
height:100%;
}
}
dd{
.btn-download{
margin-left:auto;
}
}
}
2019-11-20 08:31:08 +00:00
&:nth-child(3n+0){
2019-11-19 04:13:08 +00:00
margin-right:0;
}
}
}
::ng-deep .album-scrollbar{
.ps{
.ps-content{
display:flex;
flex-flow: wrap;
}
}
}
2019-11-20 08:31:08 +00:00
.preview-image,
.preview-video{
max-height: 140px;
}
.btn-box {
2019-11-19 04:13:08 +00:00
position:absolute;
bottom:0;
height:50px;
margin-bottom:10px;
width:100%;
button {
margin: 5px;
}
}