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

140 lines
2.3 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-12-05 08:42:13 +00:00
.select-filebox {
display: flex;
2019-11-19 04:13:08 +00:00
flex-flow: column;
2019-12-05 08:42:13 +00:00
margin: 10px;
padding: 10px;
border: 1px solid #cccccc;
border-radius: 4px;
2019-12-05 08:42:13 +00:00
.select-file {
2019-11-19 04:13:08 +00:00
color: #212121;
border-bottom: 1px dotted #dddddd;
2019-12-05 08:42:13 +00:00
text-align: center;
padding-bottom: 10px;
2019-11-20 08:31:08 +00:00
}
2019-12-05 08:42:13 +00:00
ul {
padding-top: 10px;
li {
2019-11-20 08:31:08 +00:00
@include ellipsis(1);
2019-12-05 08:42:13 +00:00
&.name {
font-weight: 600;
2019-11-19 04:13:08 +00:00
}
}
}
2019-12-05 08:42:13 +00:00
.empty-msg {
display: inline-flex;
2019-11-20 08:31:08 +00:00
flex-flow: column;
2019-12-05 08:42:13 +00:00
margin: auto 0;
2019-11-20 08:31:08 +00:00
align-items: center;
justify-content: center;
2019-12-05 08:42:13 +00:00
color: #999999;
span {
padding: 6px;
2019-11-20 08:31:08 +00:00
}
}
2019-11-19 04:13:08 +00:00
}
2019-12-05 08:42:13 +00:00
.search-list {
display: flex;
padding: 0 10px;
2019-11-19 04:13:08 +00:00
height: calc(100% - 450px);
overflow-y: auto;
flex-wrap: wrap;
2019-11-19 04:13:08 +00:00
.img-item {
cursor: pointer;
2019-12-05 08:42:13 +00:00
margin-bottom: 10px;
margin-right: 9px;
2019-11-19 04:13:08 +00:00
position: relative;
2019-11-20 08:31:08 +00:00
height: 150px;
2019-12-05 08:42:13 +00:00
dl {
dt {
2019-11-19 04:13:08 +00:00
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-12-05 08:42:13 +00:00
img {
width: 100%;
height: 100%;
2019-11-19 04:13:08 +00:00
}
}
2019-12-05 08:42:13 +00:00
dd {
.btn-download {
margin-left: auto;
2019-11-19 04:13:08 +00:00
}
}
}
2019-12-05 08:42:13 +00:00
&:nth-child(3n + 0) {
margin-right: 0;
2019-11-19 04:13:08 +00:00
}
}
}
2019-12-05 08:42:13 +00:00
::ng-deep .album-scrollbar {
.ps {
.ps-content {
display: flex;
flex-flow: wrap;
}
}
}
2019-11-20 08:31:08 +00:00
.preview-image,
2019-12-05 08:42:13 +00:00
.preview-video {
2019-11-20 08:31:08 +00:00
max-height: 140px;
}
.btn-box {
2019-12-05 08:42:13 +00:00
position: absolute;
bottom: 0;
height: 50px;
margin-bottom: 10px;
width: 100%;
button {
margin: 5px;
}
}
2019-12-05 08:42:13 +00:00
.spinner {
width: 100%;
height: 100%;
position: absolute;
padding: 15px 0;
background: rgb(255, 255, 255, 0.6);
display: table;
text-align: center;
span {
display: table-cell;
vertical-align: middle;
color: #666666;
}
}