tweb/src/scss/partials/_profile.scss
Eduard Kuzmenko 372ea59ab6 Swipe animation for profile avatars
Search refactor
Fix dialogs slicing
2021-04-07 21:11:08 +04:00

202 lines
3.5 KiB
SCSS

.profile {
&-avatars {
&-container {
width: 100%;
height: 26.25rem;
//overflow: hidden;
position: relative;
cursor: pointer;
user-select: none;
/* &:before, &:after {
position: absolute;
content: " ";
height: 100%;
width:
} */
}
&-avatars {
width: inherit;
height: inherit;
display: flex;
flex-wrap: nowrap;
transform: translateZ(-1px) scale(2);
transform-origin: left top;
transition: transform .2s ease-in-out;
position: relative;
&:before {
content: " ";
top: 0;
right: 0;
bottom: 0;
left: 0;
}
}
&-avatar {
width: inherit;
height: inherit;
min-width: 100%;
min-height: 100%;
display: flex;
background-color: #000;
&-image {
width: 100%;
height: 100%;
object-fit: cover;
pointer-events: none;
}
}
&-info {
position: absolute;
bottom: 0;
display: flex;
flex-direction: column;
align-items: flex-start;
left: 1.5rem;
bottom: .5625rem;
.profile-name, .profile-subtitle {
color: #fff;
margin: 0;
}
.profile-name {
margin-bottom: -1px;
}
.profile-subtitle {
opacity: .7;
}
.online {
color: inherit !important;
}
}
&-tabs {
display: flex;
position: absolute;
top: .5rem;
left: .375rem;
right: .375rem;
height: .125rem;
}
&-tab {
flex: 1 1 auto;
border-radius: 4px;
margin: 0 .125rem;
background-color: var(--secondary-color);
opacity: .3;
transition: opacity .2s ease-in-out;
//min-width: 1.6875rem;
height: inherit;
&.active {
opacity: 1;
}
}
}
&-content {
/* flex: 1 1 auto; */
flex: 0 0 auto;
display: flex;
flex-direction: column;
/* height: 100%; */
position: relative;
width: 100%;
.checkbox-field {
margin: 0;
padding: 0;
margin-left: -54px;
}
.checkbox-caption {
padding-left: 54px;
}
&-wrapper {
flex: 1 1 auto;
display: flex;
flex-direction: column;
padding-bottom: 13px;
@include respond-to(not-handhelds) {
padding-top: 15px;
}
}
.sidebar-left-section {
position: relative;
background-color: var(--surface-color);
//padding-top: .5625rem;
padding-bottom: 0;
}
}
&-container {
> .scrollable {
display: flex;
flex-direction: column;
//transform: none;
}
}
&-name {
text-align: center;
font-size: 20px;
line-height: 1.3125;
font-weight: 500;
text-overflow: ellipsis;
overflow: hidden;
word-break: break-word;
max-width: 340px;
margin: 0 auto;
color: var(--primary-text-color);
span.emoji {
vertical-align: inherit;
min-width: min-content;
}
}
&-subtitle {
text-align: center;
color: var(--secondary-text-color);
font-size: 14px;
margin-bottom: .875rem;
margin-top: 1px;
@include respond-to(handhelds) {
margin-top: 3px;
}
.online {
color: var(--primary-color);
}
}
&-avatar {
margin: .5rem auto 10px;
display: block;
//flex: 0 0 auto;
@include respond-to(handhelds) {
margin: 0 auto 10px;
--size: 100px;
--multiplier: .54;
}
}
&-name, &-subtitle, &-avatar {
flex: 0 0 auto;
}
}