f135565529
Select by mousemove New forward New chat input helper animation
717 lines
14 KiB
SCSS
717 lines
14 KiB
SCSS
#column-right {
|
|
position: relative;
|
|
|
|
@include respond-to(only-small-screens) {
|
|
box-shadow: 0 0.25rem 0.5rem 0.1rem hsla(0, 0%, 44.7%, .25);
|
|
}
|
|
|
|
@include respond-to(not-handhelds) {
|
|
width: var(--right-column-width);
|
|
transition: transform var(--layer-transition);
|
|
position: absolute;
|
|
right: 0;
|
|
z-index: 3;
|
|
transform: translate3d(var(--right-column-width), 0, 0);
|
|
|
|
.sidebar-content {
|
|
min-width: var(--right-column-width);
|
|
}
|
|
|
|
/* &:not(.active) {
|
|
border-left-width: 0;
|
|
} */
|
|
|
|
body.is-right-column-shown & {
|
|
transform: translate3d(0, 0, 0);
|
|
}
|
|
|
|
body.animation-level-0 & {
|
|
transition: none;
|
|
}
|
|
}
|
|
|
|
@include respond-to(medium-screens) {
|
|
border-left: 1px solid #DADCE0;
|
|
}
|
|
|
|
/* body.is-forward-active & {
|
|
z-index: 4;
|
|
} */
|
|
|
|
.sidebar-header {
|
|
flex: 0 0 auto;
|
|
|
|
.sidebar-close-button:before {
|
|
content: $tgico-back;
|
|
|
|
@include respond-to(not-handhelds) {
|
|
content: $tgico-close;
|
|
}
|
|
}
|
|
}
|
|
|
|
#search-private-container {
|
|
.chats-container {
|
|
position: relative;
|
|
flex: 1 1 auto;
|
|
}
|
|
|
|
.btn-icon {
|
|
overflow: inherit;
|
|
}
|
|
}
|
|
|
|
/* #forward-container {
|
|
z-index: 5;
|
|
} */
|
|
|
|
.sidebar-search {
|
|
display: none;
|
|
|
|
&.active {
|
|
display: flex;
|
|
}
|
|
}
|
|
}
|
|
|
|
.profile {
|
|
&-content {
|
|
/* flex: 1 1 auto; */
|
|
flex: 0 0 auto;
|
|
display: flex;
|
|
flex-direction: column;
|
|
/* height: 100%; */
|
|
position: relative;
|
|
width: 100%;
|
|
|
|
[type="checkbox"] + span {
|
|
padding-left: 54px;
|
|
margin-left: -54px;
|
|
}
|
|
|
|
&-wrapper {
|
|
flex: 1 1 auto;
|
|
display: flex;
|
|
flex-direction: column;
|
|
padding-bottom: 13px;
|
|
|
|
@include respond-to(not-handhelds) {
|
|
padding-top: 15px;
|
|
}
|
|
}
|
|
|
|
.content-container {
|
|
width: 100%;
|
|
max-width: 100%;
|
|
//overflow: hidden;
|
|
position: absolute;
|
|
top: 100%;
|
|
//min-height: 100vh; /* Fallback for browsers that do not support Custom Properties */
|
|
//min-height: calc(var(--vh, 1vh) * 100);
|
|
min-height: calc((var(--vh, 1vh) * 100) - 100% - 60px);
|
|
display: flex;
|
|
flex-direction: column;
|
|
}
|
|
}
|
|
|
|
&-container {
|
|
> .scrollable {
|
|
display: flex;
|
|
flex-direction: column;
|
|
//transform: none;
|
|
}
|
|
}
|
|
|
|
&-name {
|
|
text-align: center;
|
|
font-size: 20px;
|
|
line-height: 1.4;
|
|
font-weight: 500;
|
|
text-overflow: ellipsis;
|
|
overflow: hidden;
|
|
word-break: break-word;
|
|
max-width: 340px;
|
|
margin: 0 auto;
|
|
|
|
span.emoji {
|
|
vertical-align: inherit;
|
|
min-width: min-content;
|
|
}
|
|
}
|
|
|
|
&-subtitle {
|
|
text-align: center;
|
|
color: $color-gray;
|
|
font-size: 14px;
|
|
margin-bottom: 2px;
|
|
margin-top: 1px;
|
|
|
|
@include respond-to(handhelds) {
|
|
margin-top: 3px;
|
|
}
|
|
|
|
&.online {
|
|
color: $color-blue;
|
|
}
|
|
}
|
|
|
|
&-row {
|
|
display: flex;
|
|
width: 100%;
|
|
flex-direction: column;
|
|
padding-left: 80px;
|
|
padding-right: 12px;
|
|
//font-size: 15px;
|
|
position: relative;
|
|
margin-top: 27px;
|
|
margin-bottom: 1px;
|
|
line-height: 1.4;
|
|
|
|
@include respond-to(handhelds) {
|
|
padding-left: 71px;
|
|
}
|
|
|
|
&:before {
|
|
position: absolute;
|
|
left: 24px;
|
|
/* top: 0; */
|
|
font-size: 24px;
|
|
color: $color-gray;
|
|
|
|
@include respond-to(handhelds) {
|
|
left: 15px;
|
|
}
|
|
}
|
|
|
|
p {
|
|
color: #000;
|
|
margin: 0;
|
|
font-size: 1rem;
|
|
text-overflow: ellipsis;
|
|
overflow: hidden;
|
|
word-break: break-word;
|
|
}
|
|
|
|
&-bio {
|
|
.emoji {
|
|
width: 24px;
|
|
height: 24px;
|
|
}
|
|
}
|
|
|
|
&-label {
|
|
color: #707579 !important;
|
|
font-size: 14px !important;
|
|
line-height: 1.6;
|
|
|
|
@include respond-to(handhelds) {
|
|
line-height: 1.6;
|
|
}
|
|
}
|
|
|
|
&-notifications {
|
|
margin-top: 26px;
|
|
line-height: 1.3;
|
|
}
|
|
}
|
|
|
|
&-avatar {
|
|
width: 120px;
|
|
height: 120px;
|
|
margin: 1px auto 10px;
|
|
font-size: 2.5rem !important;
|
|
//flex: 0 0 auto;
|
|
|
|
@include respond-to(handhelds) {
|
|
margin: 0 auto 10px;
|
|
width: 100px;
|
|
height: 100px;
|
|
}
|
|
|
|
&.tgico-avatar_deletedaccount {
|
|
font-size: 6rem !important;
|
|
}
|
|
}
|
|
|
|
&-name, &-subtitle, &-row, &-avatar {
|
|
flex: 0 0 auto;
|
|
}
|
|
|
|
&-tabs {
|
|
//margin-top: 36px;
|
|
position: -webkit-sticky !important;
|
|
position: sticky !important;
|
|
top: 0;
|
|
z-index: 2;
|
|
background-color: #fff;
|
|
|
|
i {
|
|
padding-right: 1.5rem !important;
|
|
margin-left: -.75rem !important;
|
|
}
|
|
|
|
&-content {
|
|
//min-height: 100%;
|
|
min-height: calc(100% - 49px);
|
|
grid-template-rows: 100%;
|
|
flex: 1 1 auto;
|
|
//position: absolute; // FIX THE SAFARI!
|
|
//position: relative;
|
|
/* width: 500%;
|
|
margin-left: -100%;
|
|
*/
|
|
/* > div {
|
|
height: 0;
|
|
|
|
&.active {
|
|
height: auto;
|
|
}
|
|
} */
|
|
|
|
> div {
|
|
//height: 100%;
|
|
position: relative;
|
|
min-height: 150px;
|
|
|
|
/* > div:not(:empty) + .content-empty {
|
|
display: none;
|
|
} */
|
|
}
|
|
|
|
/* > div > div:not(.scroll-padding) {
|
|
height: 100%;
|
|
} */
|
|
|
|
.preloader {
|
|
padding: 0;
|
|
position: absolute !important;
|
|
height: 100%;
|
|
|
|
> svg {
|
|
height: 50px;
|
|
width: 50px;
|
|
}
|
|
}
|
|
|
|
#content-media {
|
|
width: 100%;
|
|
padding: 7.5px;
|
|
|
|
display: grid;
|
|
grid-template-columns: repeat(3,1fr);
|
|
grid-auto-rows: 1fr;
|
|
grid-gap: 3.5px;
|
|
|
|
@include respond-to(handhelds) {
|
|
padding: 7.5px 7.5px 7.5px 6.5px;
|
|
}
|
|
|
|
.video-time {
|
|
position: absolute;
|
|
left: 5px;
|
|
top: 4px;
|
|
height: 18px;
|
|
border-radius: 4px;
|
|
background-color: var(--message-time-background);
|
|
padding: 0px 6px 0px 5px;
|
|
z-index: 1;
|
|
font-size: 12px;
|
|
color: white;
|
|
}
|
|
|
|
.grid-item {
|
|
overflow: hidden;
|
|
|
|
&-media {
|
|
opacity: 1;
|
|
transition: opacity .2s ease;
|
|
|
|
html:not(.is-mac) &.thumbnail {
|
|
filter: blur(7px);
|
|
}
|
|
}
|
|
}
|
|
|
|
/* span.video-play {
|
|
background-color: var(--message-time-background);
|
|
color: #fff;
|
|
text-align: center;
|
|
font-size: 34px;
|
|
line-height: 60px;
|
|
cursor: pointer;
|
|
} */
|
|
}
|
|
|
|
#content-docs {
|
|
padding: 7px 20px;
|
|
|
|
.document {
|
|
padding-left: 4rem;
|
|
padding-right: 1rem;
|
|
//height: 54px;
|
|
height: calc(50px + 1.5rem);
|
|
|
|
&-ico, &-download {
|
|
width: 48px;
|
|
height: 48px;
|
|
}
|
|
|
|
/* & + .document {
|
|
margin-top: 1.5rem;
|
|
} */
|
|
}
|
|
|
|
.document-name {
|
|
font-weight: normal;
|
|
|
|
width: 100%;
|
|
max-width: 100%;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
}
|
|
}
|
|
|
|
#content-links {
|
|
padding: 0 30px 15px 15px;
|
|
|
|
> div {
|
|
display: flex;
|
|
flex-direction: column;
|
|
margin-top: 20px;
|
|
margin-left: 5px;
|
|
padding-bottom: 2px;
|
|
//padding-bottom: 10px;
|
|
position: relative;
|
|
padding-left: 60px;
|
|
overflow: hidden;
|
|
//min-height: 48px;
|
|
min-height: 58px;
|
|
|
|
.preview {
|
|
height: 48px;
|
|
width: 48px;
|
|
border-radius: 5px;
|
|
overflow: hidden;
|
|
position: absolute;
|
|
left: 0;
|
|
top: 0;
|
|
background-repeat: no-repeat;
|
|
background-size: cover;
|
|
background-position: center center;
|
|
|
|
&.empty {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
font-size: 2rem;
|
|
color: #fff;
|
|
text-transform: uppercase;
|
|
background-color: $color-blue;
|
|
}
|
|
}
|
|
|
|
.url {
|
|
white-space: nowrap;
|
|
text-overflow: ellipsis;
|
|
overflow: hidden;
|
|
}
|
|
}
|
|
|
|
.title {
|
|
font-size: 16px;
|
|
margin-top: 3px;
|
|
}
|
|
|
|
.subtitle {
|
|
font-size: 14px;
|
|
}
|
|
}
|
|
|
|
#content-audio {
|
|
padding: 20px 15px 15px 20px;
|
|
|
|
> div {
|
|
min-height: 60px;
|
|
}
|
|
|
|
.preloader-container {
|
|
.preloader-circular {
|
|
background-color: rgba(0, 0, 0, 0.35);
|
|
}
|
|
|
|
@include respond-to(handhelds) {
|
|
width: 40px;
|
|
height: 40px;
|
|
top: 2px;
|
|
left: -12px;
|
|
}
|
|
|
|
@include respond-to(not-handhelds) {
|
|
width: 38px;
|
|
height: 38px;
|
|
}
|
|
}
|
|
|
|
.audio {
|
|
padding-bottom: 26px;
|
|
padding-left: 61px;
|
|
/* min-height: 58px; */
|
|
max-width: 368px;
|
|
justify-content: unset;
|
|
|
|
&-details {
|
|
height: 66px;
|
|
}
|
|
|
|
&.audio-show-progress .audio-subtitle {
|
|
overflow: visible;
|
|
}
|
|
|
|
/* &-no-subtitle {
|
|
padding-bottom: 16px;
|
|
} */
|
|
|
|
&-ico {
|
|
width: 48px;
|
|
height: 48px;
|
|
}
|
|
|
|
&-download {
|
|
border-radius: 50%;
|
|
background-color: #50a2e9;
|
|
align-items: center;
|
|
|
|
@include respond-to(not-handhelds) {
|
|
width: 48px;
|
|
height: 48px;
|
|
}
|
|
}
|
|
|
|
.part {
|
|
height: 112px;
|
|
width: 112px;
|
|
position: absolute;
|
|
background-color: white;
|
|
|
|
@include respond-to(handhelds) {
|
|
width: 100px;
|
|
height: 100px;
|
|
}
|
|
}
|
|
|
|
&-title {
|
|
font-size: 1rem;
|
|
color: #000;
|
|
line-height: 1.2;
|
|
padding-top: 5px;
|
|
margin-top: 0;
|
|
margin-left: -1px;
|
|
}
|
|
|
|
&-subtitle {
|
|
font-size: 14px;
|
|
line-height: 1.25;
|
|
color: #707579;
|
|
margin-left: -1px;
|
|
margin-top: 3px;
|
|
}
|
|
|
|
&-time {
|
|
margin-top: 1px;
|
|
}
|
|
|
|
&-title, &-subtitle {
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
}
|
|
}
|
|
|
|
.progress-line {
|
|
margin: 11px 0 8px;
|
|
|
|
&__filled {
|
|
background-color: #0089ff;
|
|
transform-origin: left;
|
|
height: 2px;
|
|
}
|
|
|
|
&__loaded {
|
|
background-color: #cacaca;
|
|
}
|
|
|
|
&__seek {
|
|
height: 2px;
|
|
//background-color: #e6ecf0;
|
|
background: rgba(193, 207, 220, 0.39);
|
|
|
|
&::-webkit-slider-thumb {
|
|
height: 12px;
|
|
width: 12px;
|
|
border: none;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
#stickers-container {
|
|
.sticker-sets {
|
|
display: flex;
|
|
flex-direction: column;
|
|
margin-top: 16px;
|
|
}
|
|
|
|
.sticker-set {
|
|
display: flex;
|
|
flex-direction: column;
|
|
height: 140px;
|
|
cursor: pointer;
|
|
|
|
&-name {
|
|
font-weight: 500;
|
|
}
|
|
|
|
&-count {
|
|
font-size: 14px;
|
|
color: #707579;
|
|
}
|
|
|
|
&-header {
|
|
display: flex;
|
|
padding-left: 16px;
|
|
padding-bottom: 12px;
|
|
justify-content: space-between;
|
|
|
|
}
|
|
|
|
&-button {
|
|
height: 30px;
|
|
padding-left: 12px;
|
|
padding-right: 13px;
|
|
margin-right: 16px;
|
|
font-size: 15px;
|
|
border-radius: 16px;
|
|
font-weight: 400;
|
|
width: 52px;
|
|
//width: auto; //68 - Added //52 - Add
|
|
transition: width 0.2s;
|
|
|
|
&.gray {
|
|
background: #F1F3F4;
|
|
color: #707579;
|
|
width: 68px;
|
|
}
|
|
}
|
|
|
|
&-stickers {
|
|
display: flex;
|
|
justify-content: space-around;
|
|
}
|
|
|
|
&-sticker {
|
|
width: 68px;
|
|
height: 68px;
|
|
//padding: 0 5px;
|
|
|
|
&:hover {
|
|
border-radius: 12px;
|
|
background-color: var(--color-gray-hover);
|
|
}
|
|
|
|
img {
|
|
max-width: 100%;
|
|
max-height: 100%;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
#poll-results-container {
|
|
.poll-results {
|
|
display: flex;
|
|
flex-direction: column;
|
|
position: relative;
|
|
width: 100%;
|
|
|
|
&-answer {
|
|
color: #707579;
|
|
padding: 0 16px 8px 16px;
|
|
margin: 0;
|
|
padding-bottom: 8px;
|
|
font-weight: 500;
|
|
justify-content: space-between;
|
|
display: flex;
|
|
font-size: 15px;
|
|
user-select: none;
|
|
|
|
@include respond-to(not-handhelds) {
|
|
padding: 0 24px 8px 24px;
|
|
}
|
|
}
|
|
|
|
&-more {
|
|
padding-top: 13px;
|
|
padding-bottom: 13px;
|
|
cursor: pointer;
|
|
user-select: none;
|
|
position: relative;
|
|
|
|
@include respond-to(not-handhelds) {
|
|
padding-left: 8px;
|
|
}
|
|
|
|
.tgico-down {
|
|
float: left;
|
|
padding-right: 32px;
|
|
padding-left: 16.5px;
|
|
font-size: 24px;
|
|
color: #707579;
|
|
}
|
|
}
|
|
|
|
h3 {
|
|
padding: 0 16px;
|
|
margin-top: 15px;
|
|
font-size: 20px;
|
|
margin-bottom: 16px;
|
|
|
|
@include respond-to(not-handhelds) {
|
|
padding: 0 24px;
|
|
}
|
|
}
|
|
|
|
hr {
|
|
margin-bottom: 15px;
|
|
margin-top: 7px;
|
|
}
|
|
|
|
avatar-element {
|
|
width: 32px;
|
|
height: 32px;
|
|
}
|
|
|
|
.user-caption {
|
|
padding: 6px 28px;
|
|
}
|
|
|
|
.user-title {
|
|
font-weight: normal;
|
|
}
|
|
|
|
li {
|
|
padding-bottom: 2px;
|
|
|
|
> .rp {
|
|
padding: 8px 5px;
|
|
height: 48px;
|
|
|
|
@include respond-to(not-handhelds) {
|
|
padding: 8px 12px;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|