d1e3827c12
mediaviewer forward chat contextmenu with rights support manually attached stickers (not upload) right sidebar fix blink & preloader minor fixes Signed-off-by: morethanwords <thanwords24@gmail.com>
213 lines
3.4 KiB
SCSS
213 lines
3.4 KiB
SCSS
$open-duration: .2s;
|
|
//$open-duration: 10s;
|
|
$move-duration: .35s;
|
|
|
|
.media-viewer {
|
|
position: fixed;
|
|
top: 0;
|
|
left: 0;
|
|
right: 0;
|
|
bottom: 0;
|
|
background: rgba(0, 0, 0, .88);
|
|
/* color: $color-gray; */
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
|
|
&-author {
|
|
position: absolute;
|
|
top: 0;
|
|
left: 0;
|
|
height: 60px;
|
|
padding: 8px 8px 8px 80px;
|
|
display: flex;
|
|
flex-direction: column;
|
|
justify-content: center;
|
|
color: #8b8b8b;
|
|
transition: $open-duration;
|
|
|
|
&:hover {
|
|
color: #fff;
|
|
}
|
|
}
|
|
|
|
&-userpic {
|
|
width: 44px;
|
|
height: 44px;
|
|
position: absolute;
|
|
top: 8px;
|
|
left: 20px;
|
|
}
|
|
|
|
&-name {
|
|
font-weight: 500;
|
|
}
|
|
|
|
&-date {
|
|
font-size: 15px;
|
|
}
|
|
|
|
&-buttons {
|
|
position: absolute;
|
|
top: 0;
|
|
right: 0;
|
|
display: flex;
|
|
flex-flow: row nowrap;
|
|
padding: 8px;
|
|
|
|
.btn-icon {
|
|
margin: 0 .25rem;
|
|
transition: $open-duration;
|
|
|
|
&:hover {
|
|
color: #fff;
|
|
}
|
|
}
|
|
}
|
|
|
|
&-content {
|
|
display: flex;
|
|
flex-direction: column;
|
|
justify-content: center;
|
|
align-items: center;
|
|
height: 100%;
|
|
max-height: 100%;
|
|
max-width: 100%;
|
|
overflow: hidden;
|
|
}
|
|
|
|
&-stub {
|
|
flex: 1;
|
|
}
|
|
|
|
&-container {
|
|
align-self: center;
|
|
position: relative;
|
|
max-width: 100%;
|
|
max-height: 100%;
|
|
overflow: hidden;
|
|
flex: 1 1 auto;
|
|
display: flex;
|
|
align-items: center;
|
|
}
|
|
|
|
&-media {
|
|
visibility: hidden;
|
|
}
|
|
|
|
&-caption {
|
|
flex: 1;
|
|
text-align: center;
|
|
color: $color-gray;
|
|
transition: $open-duration;
|
|
max-width: 50vw;
|
|
word-break: break-word;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
|
|
&:hover {
|
|
color: #fff;
|
|
}
|
|
}
|
|
|
|
&-switcher-left, &-switcher-right {
|
|
position: absolute;
|
|
left: 0;
|
|
top: 0;
|
|
width: 10rem;
|
|
height: 100%;
|
|
cursor: pointer;
|
|
z-index: 5;
|
|
|
|
&:hover {
|
|
> span {
|
|
opacity: 1;
|
|
}
|
|
}
|
|
}
|
|
|
|
&-switcher-right {
|
|
left: auto;
|
|
right: 0;
|
|
}
|
|
|
|
&-prev-button, &-next-button {
|
|
cursor: pointer;
|
|
position: absolute;
|
|
color: #fff;
|
|
font-size: 3rem;
|
|
left: 2rem;
|
|
top: 50%;
|
|
transform: translateY(-50%) rotate(90deg);
|
|
opacity: 0;
|
|
transition: $open-duration opacity;
|
|
z-index: 5;
|
|
/* box-shadow: 0 1px 2px 0 rgba(16, 35, 47, 0.07); */
|
|
}
|
|
|
|
&-next-button {
|
|
left: auto;
|
|
right: 2rem;
|
|
transform: translateY(-50%) rotate(-90deg);
|
|
}
|
|
|
|
&-mover {
|
|
position: fixed!important;
|
|
z-index: 4;
|
|
display: flex;
|
|
justify-content: center;
|
|
align-items: center; // mb net
|
|
min-height: auto!important;
|
|
//transition: .5s all;
|
|
left: 0;
|
|
top: 0;
|
|
transform-origin: top left;
|
|
overflow: hidden;
|
|
//border-radius: 0;
|
|
|
|
.ckin__player {
|
|
width: 100%;
|
|
height: 100%;
|
|
position: absolute;
|
|
left: 0;
|
|
top: 0;
|
|
}
|
|
|
|
img, video {
|
|
width: 100%;
|
|
height: 100%;
|
|
user-select: none;
|
|
object-fit: cover;
|
|
opacity: 1;
|
|
}
|
|
|
|
&.active {
|
|
transition: $open-duration transform;
|
|
}
|
|
|
|
&.moving {
|
|
transition: $move-duration transform ease;
|
|
}
|
|
|
|
&.hiding {
|
|
img, video {
|
|
transition: $open-duration opacity;
|
|
opacity: 0;
|
|
}
|
|
}
|
|
}
|
|
|
|
// возможно тут это вообще не нужно
|
|
&-aspecter {
|
|
width: 100%;
|
|
height: 100%;
|
|
transform: scale(1);
|
|
overflow: hidden;
|
|
position: absolute;
|
|
}
|
|
|
|
&-mover.active &-aspecter {
|
|
transition: $open-duration all;
|
|
}
|
|
}
|