Telegram Web K with changes to work inside I2P https://web.telegram.i2p/
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

300 lines
5.1 KiB

$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;
@include respond-to(handhelds) {
background: #000;
}
&-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;
html.no-touch &:hover {
color: #fff;
}
}
&-userpic {
width: 44px;
height: 44px;
position: absolute;
top: 8px;
left: 20px;
@include respond-to(handhelds) {
display: none;
}
}
&-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;
html.no-touch &:hover {
color: #fff;
}
}
@include respond-to(handhelds) {
display: none;
}
}
&-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;
html.no-touch &:hover {
color: #fff;
}
}
&-switcher {
position: absolute;
left: 0;
top: 60px;
width: 7rem;
height: 100%;
cursor: pointer;
z-index: 5;
html.no-touch &:hover {
> span {
opacity: 1;
}
}
@include respond-to(handhelds) {
width: 1.5rem;
}
}
&-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;
//&.thumbnail {
position: absolute;
//z-index: -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; // WARNING
position: absolute;
}
&-mover.active &-aspecter {
transition: $open-duration all;
}
&-whole {
top: 0;
left: 0;
width: 100%;
height: 100%;
position: fixed!important;
display: block;
z-index: 4;
visibility: hidden;
transition: visibility 0s $open-duration;
&.active {
visibility: visible;
transition-delay: 0s;
.overlays, .btn-menu-toggle {
opacity: 1;
visibility: visible;
transition: opacity $open-duration 0s, visibility 0s 0s;
}
}
@include respond-to(handhelds) {
.menu-mobile-close {
position: absolute;
left: 20px;
top: 8px;
}
.btn-menu-toggle {
position: fixed;
right: 8px;
top: 8px;
z-index: 5;
opacity: 0;
transition: opacity $open-duration 0s, visibility 0s $open-duration;
&.menu-open {
color: #fff;
background-color: rgba(112, 117, 121, .2) !important;
}
}
}
}
&-switchers {
position: relative;
width: $large-screen;
max-width: 100%;
height: 100%;
margin: 0 auto;
}
}
.overlays {
top: 0;
left: 0;
width: 100%;
height: 100%;
position: fixed!important;
background-color: rgba(0, 0, 0, .2);
z-index: 4;
//display: none;
opacity: 0;
visibility: hidden;
transition: opacity $open-duration 0s, visibility 0s $open-duration;
}