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.
228 lines
3.8 KiB
228 lines
3.8 KiB
.media-viewer { |
|
position: fixed; |
|
top: 0; |
|
left: 0; |
|
right: 0; |
|
bottom: 0; |
|
background: rgba(0, 0, 0, .88); |
|
/* color: $darkgrey; */ |
|
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: .2s; |
|
|
|
&:hover { |
|
color: #fff; |
|
} |
|
|
|
.user-avatar { |
|
width: 44px; |
|
height: 44px; |
|
position: absolute; |
|
top: 8px; |
|
left: 20px; |
|
} |
|
|
|
.media-viewer-name { |
|
font-weight: 500; |
|
} |
|
|
|
.media-viewer-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: .2s; |
|
|
|
&: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; |
|
|
|
.media-viewer-stub { |
|
flex: 1; |
|
} |
|
|
|
.media-viewer-container { |
|
align-self: center; |
|
position: relative; |
|
max-width: 100%; |
|
max-height: 100%; |
|
overflow: hidden; |
|
flex: 1 1 auto; |
|
display: flex; |
|
align-items: center; |
|
} |
|
|
|
.media-viewer-media { |
|
display: flex; |
|
align-items: center; |
|
justify-content: center; |
|
visibility: hidden; |
|
|
|
&.loading { |
|
img, video { |
|
object-fit: cover; |
|
width: 100%; |
|
height: 100%; |
|
} |
|
} |
|
} |
|
|
|
img, video { |
|
max-height: calc(100vh - 100px); |
|
max-width: calc(100vw - 16px); |
|
/* max-height: 720px; |
|
max-width: 1280px; */ |
|
} |
|
|
|
img { |
|
object-fit: contain; |
|
} |
|
|
|
video { |
|
width: 100%; |
|
height: 100%; |
|
/* object-fit: cover; */ |
|
object-fit: contain; |
|
} |
|
|
|
.media-viewer-caption { |
|
flex: 1; |
|
text-align: center; |
|
color: $darkgrey; |
|
transition: .2s; |
|
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: .2s 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; |
|
background-repeat: no-repeat; |
|
background-size: cover; |
|
background-position: center center; |
|
|
|
.ckin__player { |
|
width: 100%; |
|
height: 100%; |
|
} |
|
|
|
img, video { |
|
width: 100%; |
|
height: 100%; |
|
opacity: 1; |
|
transition: .2s opacity; |
|
user-select: none; |
|
} |
|
|
|
&.cover { |
|
align-items: center; |
|
|
|
img, video { |
|
width: auto; |
|
height: auto; |
|
overflow: hidden; |
|
opacity: 0; |
|
} |
|
} |
|
|
|
&.active { |
|
transition: .2s transform; |
|
} |
|
|
|
&.moving { |
|
transition: 350ms transform ease; |
|
} |
|
} |
|
}
|
|
|