tweb-i2p/src/scss/partials/_rightSIdebar.scss

433 lines
8.1 KiB
SCSS
Raw Normal View History

#column-right {
2020-03-02 00:26:25 +07:00
width: 0%;
position: relative;
transition: .2s ease-in-out;
.sidebar-content {
min-width: 25vw;
@media (min-width: $large-screen) {
min-width: calc(#{$large-screen} / 4 - 1px);
2020-03-02 00:26:25 +07:00
}
}
&:not(.active) {
border-left-width: 0;
}
&.active {
width: 25%;
}
.sidebar-header {
flex: 0 0 auto;
}
#search-private-container {
.chats-container {
position: relative;
flex: 1 1 auto;
}
}
.sidebar-search {
display: none;
&.active {
display: flex;
}
}
2020-03-02 00:26:25 +07:00
}
2020-04-25 04:17:50 +03:00
.profile {
&-content {
flex: 1 1 auto;
display: flex;
flex-direction: column;
/* height: 100%; */
position: relative;
width: 100%;
2020-04-25 04:17:50 +03:00
[type="checkbox"] + span {
padding-left: 54px;
margin-left: -54px;
}
&-wrapper {
flex: 0 0 auto;
display: flex;
flex-direction: column;
margin-bottom: 36px;
2020-04-25 04:17:50 +03:00
}
.content-container {
width: 100%;
max-width: 100%;
//overflow: hidden;
flex: 1 1 auto;
position: relative;
//height: 1%; // fix safari
/* &.loaded { // warning
.profile-tabs-content {
position: relative;
min-height: auto;
}
} */
2020-04-25 04:17:50 +03:00
}
}
2020-03-02 00:26:25 +07:00
2020-04-25 04:17:50 +03:00
&-name {
2020-03-02 00:26:25 +07:00
text-align: center;
2020-04-25 04:17:50 +03:00
font-size: 24px;
line-height: 1.4;
2020-03-02 00:26:25 +07:00
font-weight: 500;
span.emoji {
vertical-align: inherit;
min-width: min-content;
}
}
2020-04-25 04:17:50 +03:00
&-subtitle {
2020-03-02 00:26:25 +07:00
text-align: center;
2020-05-09 15:02:07 +03:00
color: $color-gray;
2020-03-02 00:26:25 +07:00
font-size: 14px;
2020-04-25 04:17:50 +03:00
margin-bottom: 2px;
2020-03-02 00:26:25 +07:00
&.online {
2020-05-09 15:02:07 +03:00
color: $color-blue;
2020-03-02 00:26:25 +07:00
}
}
2020-04-25 04:17:50 +03:00
&-row {
2020-03-02 00:26:25 +07:00
display: flex;
width: 100%;
flex-direction: column;
padding-left: 80px;
padding-right: 12px;
//font-size: 15px;
2020-03-02 00:26:25 +07:00
position: relative;
2020-04-25 04:17:50 +03:00
margin-top: 31px;
line-height: 1.4;
2020-03-02 00:26:25 +07:00
&:before {
position: absolute;
left: 24px;
/* top: 0; */
font-size: 24px;
2020-05-09 15:02:07 +03:00
color: $color-gray;
2020-03-02 00:26:25 +07:00
}
p {
color: #000;
margin: 0;
2020-04-25 04:17:50 +03:00
font-size: 1rem;
2020-03-02 00:26:25 +07:00
}
&-bio {
.emoji {
width: 24px;
height: 24px;
}
}
2020-04-25 04:17:50 +03:00
&-label {
2020-04-30 16:43:26 +03:00
color: #707579 !important;
2020-04-25 04:17:50 +03:00
font-size: 14px !important;
}
&-notifications {
margin-top: 29px;
line-height: 1.3;
}
2020-03-02 00:26:25 +07:00
}
&-avatar {
2020-03-02 00:26:25 +07:00
width: 120px;
height: 120px;
2020-04-30 16:43:26 +03:00
margin: 1px auto 21px;
2020-04-25 04:17:50 +03:00
font-size: 4rem !important;
2020-04-08 18:46:43 +03:00
&.tgico-avatar_deletedaccount {
font-size: 6rem;
}
2020-03-02 00:26:25 +07:00
}
2020-04-25 04:17:50 +03:00
&-tabs {
//margin-top: 36px;
position: -webkit-sticky !important;
position: sticky !important;
top: 0;
z-index: 3;
background-color: #fff;
2020-04-25 04:17:50 +03:00
&-content {
//min-height: 100%;
min-height: calc(100% - 49px);
//position: absolute; // FIX THE SAFARI!
//position: relative;
2020-04-25 04:17:50 +03:00
/* width: 500%;
margin-left: -100%;
*/
/* > div {
height: 0;
&.active {
height: auto;
}
} */
2020-03-02 00:26:25 +07:00
> div {
2020-04-25 04:17:50 +03:00
//height: 100%;
position: relative;
}
2020-03-02 00:26:25 +07:00
2020-04-25 04:17:50 +03:00
/* > div > div:not(.scroll-padding) {
height: 100%;
} */
2020-03-02 00:26:25 +07:00
2020-04-25 04:17:50 +03:00
.preloader {
padding: 0;
position: absolute !important;
2020-04-25 04:17:50 +03:00
height: 100%;
> svg {
height: 50px;
width: 50px;
2020-03-02 00:26:25 +07:00
}
}
2020-04-25 04:17:50 +03:00
#content-media {
2020-03-02 00:26:25 +07:00
width: 100%;
2020-05-21 02:02:57 +03:00
padding: 7.5px;
display: grid;
grid-template-columns: repeat(3,1fr);
grid-auto-rows: 1fr;
grid-gap: 3.5px;
2020-04-25 04:17:50 +03:00
2020-05-21 02:02:57 +03:00
.media-item {
height: 0;
padding-bottom: 100%;
overflow: hidden;
position: relative;
cursor: pointer;
background-color: #000;
2020-03-02 00:26:25 +07:00
}
.video-time {
position: absolute;
left: 5px;
top: 4px;
height: 18px;
border-radius: 4px;
background-color: $time-background;
padding: 0px 6px 0px 5px;
z-index: 2;
font-size: 12px;
color: white;
}
.media-image {
2020-05-21 02:02:57 +03:00
position: absolute;
left: 0;
top: 0;
width: 100%;
2020-05-21 02:02:57 +03:00
height: 100%;
-o-object-fit: cover;
object-fit: cover;
}
/* span.video-play {
background-color: $time-background;
color: #fff;
text-align: center;
font-size: 34px;
line-height: 60px;
cursor: pointer;
} */
2020-04-25 04:17:50 +03:00
}
#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%;
2020-03-02 00:26:25 +07:00
overflow: hidden;
2020-04-25 04:17:50 +03:00
text-overflow: ellipsis;
2020-03-02 00:26:25 +07:00
}
}
2020-04-25 04:17:50 +03:00
#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;
2020-05-09 15:02:07 +03:00
background-color: $color-blue;
2020-04-25 04:17:50 +03:00
}
}
.url {
white-space: nowrap;
text-overflow: ellipsis;
overflow: hidden;
}
}
.title {
font-size: 16px;
margin-top: 3px;
}
.subtitle {
font-size: 14px;
}
2020-03-02 00:26:25 +07:00
}
2020-04-25 04:17:50 +03:00
#content-audio {
padding: 20px 15px 15px 20px;
2020-04-25 04:17:50 +03:00
> div {
min-height: 60px;
}
.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;
&.tgico-largeplay:before {
margin-right: -1px;
}
}
&-download {
border-radius: 50%;
background-color: #50a2e9;
align-items: center;
}
&-toggle, &-download {
font-size: 1.9rem;
}
&-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;
}
}
.media-progress {
margin: 11px 0 8px;
&__filled {
background-color: #0089ff;
transform-origin: left;
height: 2px;
}
&__seek {
height: 2px;
//background-color: #e6ecf0;
background: rgba(193, 207, 220, 0.39);
&::-webkit-slider-thumb {
height: 12px;
width: 12px;
}
}
}
2020-03-02 00:26:25 +07:00
}
}
}
}