element-web/res/css/views/right_panel/_UserInfo.scss

297 lines
8.1 KiB
SCSS
Raw Normal View History

/*
Copyright 2015, 2016 OpenMarket Ltd
Copyright 2019 The Matrix.org Foundation C.I.C.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
2020-09-08 12:19:51 +03:00
.mx_UserInfo.mx_BaseCard {
// UserInfo has a circular image at the top so it fits between the back & close buttons
padding-top: 0;
overflow-y: auto;
font-size: $font-12px;
2019-11-13 19:59:22 +03:00
.mx_UserInfo_cancel {
cursor: pointer;
position: absolute;
top: 0;
border-radius: 4px;
background-color: $dark-panel-bg-color;
Organize UserInfo.scss (#8461) * .mx_UserInfo_profileField under .mx_UserInfo_memberDetails Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com> * .mx_UserInfo_container:not(.mx_UserInfo_separator) under .mx_UserInfo_container Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com> * reorganize structure of .mx_UserInfo_avatar - 1 .mx_UserInfo_avatar > div > div * Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com> * reorganize structure of .mx_UserInfo_avatar - 2 .mx_UserInfo_avatar > div > div Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com> * reorganize structure of .mx_UserInfo_avatar - 3 .mx_UserInfo_avatar > div Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com> * reorganize structure of .mx_UserInfo_avatar - 4 - .mx_BaseAvatar_initial - .mx_BaseAvatar Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com> * reorganize structure of .mx_UserInfo_avatar - 5 Move .mx_BaseAvatar_initial under .mx_BaseAvatar Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com> * Replace a wildcard with className Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com> * Specify className Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com> * .mx_UserInfo.mx_BaseCard.mx_UserInfo_smallAvatar Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com> * Use variables Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com> * Fix position of the E2E icon of expanding sessions button To prevent the icon from moving down a little bit Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com> * yarn run lint:style --fix Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com>
2022-05-23 14:42:31 +03:00
margin: 9px; // TODO: Use a variable
z-index: 1; // render on top of the right panel
div {
height: 16px;
width: 16px;
padding: 4px;
mask-image: url('$(res)/img/minimise.svg');
mask-repeat: no-repeat;
mask-position: 7px center;
2021-11-16 13:10:44 +03:00
background-color: $header-panel-text-primary-color;
}
2019-11-13 19:59:22 +03:00
}
2019-11-13 19:59:22 +03:00
h2 {
font-size: $font-18px;
2019-11-13 19:59:22 +03:00
font-weight: 600;
Organize UserInfo.scss (#8461) * .mx_UserInfo_profileField under .mx_UserInfo_memberDetails Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com> * .mx_UserInfo_container:not(.mx_UserInfo_separator) under .mx_UserInfo_container Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com> * reorganize structure of .mx_UserInfo_avatar - 1 .mx_UserInfo_avatar > div > div * Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com> * reorganize structure of .mx_UserInfo_avatar - 2 .mx_UserInfo_avatar > div > div Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com> * reorganize structure of .mx_UserInfo_avatar - 3 .mx_UserInfo_avatar > div Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com> * reorganize structure of .mx_UserInfo_avatar - 4 - .mx_BaseAvatar_initial - .mx_BaseAvatar Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com> * reorganize structure of .mx_UserInfo_avatar - 5 Move .mx_BaseAvatar_initial under .mx_BaseAvatar Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com> * Replace a wildcard with className Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com> * Specify className Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com> * .mx_UserInfo.mx_BaseCard.mx_UserInfo_smallAvatar Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com> * Use variables Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com> * Fix position of the E2E icon of expanding sessions button To prevent the icon from moving down a little bit Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com> * yarn run lint:style --fix Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com>
2022-05-23 14:42:31 +03:00
margin: 18px 0 0 0; // TODO: Use a variable
2019-11-13 19:59:22 +03:00
}
2019-11-13 19:59:22 +03:00
.mx_UserInfo_container {
Organize UserInfo.scss (#8461) * .mx_UserInfo_profileField under .mx_UserInfo_memberDetails Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com> * .mx_UserInfo_container:not(.mx_UserInfo_separator) under .mx_UserInfo_container Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com> * reorganize structure of .mx_UserInfo_avatar - 1 .mx_UserInfo_avatar > div > div * Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com> * reorganize structure of .mx_UserInfo_avatar - 2 .mx_UserInfo_avatar > div > div Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com> * reorganize structure of .mx_UserInfo_avatar - 3 .mx_UserInfo_avatar > div Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com> * reorganize structure of .mx_UserInfo_avatar - 4 - .mx_BaseAvatar_initial - .mx_BaseAvatar Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com> * reorganize structure of .mx_UserInfo_avatar - 5 Move .mx_BaseAvatar_initial under .mx_BaseAvatar Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com> * Replace a wildcard with className Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com> * Specify className Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com> * .mx_UserInfo.mx_BaseCard.mx_UserInfo_smallAvatar Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com> * Use variables Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com> * Fix position of the E2E icon of expanding sessions button To prevent the icon from moving down a little bit Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com> * yarn run lint:style --fix Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com>
2022-05-23 14:42:31 +03:00
padding: $spacing-8 $spacing-16;
&:not(.mx_UserInfo_separator) {
padding-top: $spacing-16;
padding-bottom: 0;
> :not(h3) {
margin-inline-start: $spacing-8;
display: flex;
flex-flow: column;
align-items: flex-start;
row-gap: $spacing-8;
}
}
.mx_UserInfo_container_verifyButton {
margin-top: $spacing-8;
}
}
.mx_UserInfo_separator {
border-bottom: 1px solid rgba($primary-content, .1);
2019-11-13 19:59:22 +03:00
}
2019-11-13 19:59:22 +03:00
.mx_UserInfo_memberDetailsContainer {
padding-top: 0;
2019-11-13 19:59:22 +03:00
padding-bottom: 0;
Organize UserInfo.scss (#8461) * .mx_UserInfo_profileField under .mx_UserInfo_memberDetails Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com> * .mx_UserInfo_container:not(.mx_UserInfo_separator) under .mx_UserInfo_container Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com> * reorganize structure of .mx_UserInfo_avatar - 1 .mx_UserInfo_avatar > div > div * Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com> * reorganize structure of .mx_UserInfo_avatar - 2 .mx_UserInfo_avatar > div > div Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com> * reorganize structure of .mx_UserInfo_avatar - 3 .mx_UserInfo_avatar > div Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com> * reorganize structure of .mx_UserInfo_avatar - 4 - .mx_BaseAvatar_initial - .mx_BaseAvatar Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com> * reorganize structure of .mx_UserInfo_avatar - 5 Move .mx_BaseAvatar_initial under .mx_BaseAvatar Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com> * Replace a wildcard with className Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com> * Specify className Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com> * .mx_UserInfo.mx_BaseCard.mx_UserInfo_smallAvatar Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com> * Use variables Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com> * Fix position of the E2E icon of expanding sessions button To prevent the icon from moving down a little bit Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com> * yarn run lint:style --fix Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com>
2022-05-23 14:42:31 +03:00
margin-bottom: $spacing-8;
2019-11-13 19:59:22 +03:00
}
Voice rooms prototype (#8084) * Add voice room labs flag Signed-off-by: Robin Townsend <robin@robin.town> * Add more widget actions for interacting with Jitsi Signed-off-by: Robin Townsend <robin@robin.town> * Factor out a more generic Jitsi creation utility Signed-off-by: Robin Townsend <robin@robin.town> * Add utilities for managing voice channels Signed-off-by: Robin Townsend <robin@robin.town> * Enable creation of voice rooms Signed-off-by: Robin Townsend <robin@robin.town> * Force a maximized view of voice channel widgets Signed-off-by: Robin Townsend <robin@robin.town> * Add voice channel store Signed-off-by: Robin Townsend <robin@robin.town> * Factor out a more generic FacePile Signed-off-by: Robin Townsend <robin@robin.town> * Implement room tile changes for voice rooms Signed-off-by: Robin Townsend <robin@robin.town> * Add interactive radio component to the left panel Signed-off-by: Robin Townsend <robin@robin.town> * Test voice rooms Signed-off-by: Robin Townsend <robin@robin.town> * Update name of call room type Signed-off-by: Robin Townsend <robin@robin.town> * Clarify that voice rooms are under development Signed-off-by: Robin Townsend <robin@robin.town> * Use readonly Signed-off-by: Robin Townsend <robin@robin.town> * Move acks to the end of handlers Signed-off-by: Robin Townsend <robin@robin.town> * Add comment about avatar URLs coming from Jitsi Signed-off-by: Robin Townsend <robin@robin.town> * Don't use unicode ellipses for translation reasons? Signed-off-by: Robin Townsend <robin@robin.town> * Fix tests Signed-off-by: Robin Townsend <robin@robin.town> * Fix tests, again Signed-off-by: Robin Townsend <robin@robin.town> * Remove unnecessary export Signed-off-by: Robin Townsend <robin@robin.town> * Ack Jitsi events when we wait for them Signed-off-by: Robin Townsend <robin@robin.town>
2022-03-23 01:14:11 +03:00
.mx_RoomTile_titleContainer {
2019-11-13 19:59:22 +03:00
width: 154px;
}
2019-11-13 19:59:22 +03:00
.mx_RoomTile_badge {
display: none;
}
Voice rooms prototype (#8084) * Add voice room labs flag Signed-off-by: Robin Townsend <robin@robin.town> * Add more widget actions for interacting with Jitsi Signed-off-by: Robin Townsend <robin@robin.town> * Factor out a more generic Jitsi creation utility Signed-off-by: Robin Townsend <robin@robin.town> * Add utilities for managing voice channels Signed-off-by: Robin Townsend <robin@robin.town> * Enable creation of voice rooms Signed-off-by: Robin Townsend <robin@robin.town> * Force a maximized view of voice channel widgets Signed-off-by: Robin Townsend <robin@robin.town> * Add voice channel store Signed-off-by: Robin Townsend <robin@robin.town> * Factor out a more generic FacePile Signed-off-by: Robin Townsend <robin@robin.town> * Implement room tile changes for voice rooms Signed-off-by: Robin Townsend <robin@robin.town> * Add interactive radio component to the left panel Signed-off-by: Robin Townsend <robin@robin.town> * Test voice rooms Signed-off-by: Robin Townsend <robin@robin.town> * Update name of call room type Signed-off-by: Robin Townsend <robin@robin.town> * Clarify that voice rooms are under development Signed-off-by: Robin Townsend <robin@robin.town> * Use readonly Signed-off-by: Robin Townsend <robin@robin.town> * Move acks to the end of handlers Signed-off-by: Robin Townsend <robin@robin.town> * Add comment about avatar URLs coming from Jitsi Signed-off-by: Robin Townsend <robin@robin.town> * Don't use unicode ellipses for translation reasons? Signed-off-by: Robin Townsend <robin@robin.town> * Fix tests Signed-off-by: Robin Townsend <robin@robin.town> * Fix tests, again Signed-off-by: Robin Townsend <robin@robin.town> * Remove unnecessary export Signed-off-by: Robin Townsend <robin@robin.town> * Ack Jitsi events when we wait for them Signed-off-by: Robin Townsend <robin@robin.town>
2022-03-23 01:14:11 +03:00
.mx_RoomTile_title {
2019-11-13 19:59:22 +03:00
width: 160px;
}
2019-11-13 19:59:22 +03:00
.mx_UserInfo_avatar {
Organize UserInfo.scss (#8461) * .mx_UserInfo_profileField under .mx_UserInfo_memberDetails Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com> * .mx_UserInfo_container:not(.mx_UserInfo_separator) under .mx_UserInfo_container Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com> * reorganize structure of .mx_UserInfo_avatar - 1 .mx_UserInfo_avatar > div > div * Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com> * reorganize structure of .mx_UserInfo_avatar - 2 .mx_UserInfo_avatar > div > div Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com> * reorganize structure of .mx_UserInfo_avatar - 3 .mx_UserInfo_avatar > div Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com> * reorganize structure of .mx_UserInfo_avatar - 4 - .mx_BaseAvatar_initial - .mx_BaseAvatar Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com> * reorganize structure of .mx_UserInfo_avatar - 5 Move .mx_BaseAvatar_initial under .mx_BaseAvatar Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com> * Replace a wildcard with className Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com> * Specify className Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com> * .mx_UserInfo.mx_BaseCard.mx_UserInfo_smallAvatar Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com> * Use variables Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com> * Fix position of the E2E icon of expanding sessions button To prevent the icon from moving down a little bit Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com> * yarn run lint:style --fix Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com>
2022-05-23 14:42:31 +03:00
margin: $spacing-24 $spacing-32 0 $spacing-32;
.mx_UserInfo_avatar_transition {
max-width: 30vh;
margin: 0 auto;
transition: 0.5s;
.mx_UserInfo_avatar_transition_child {
/* use padding-top instead of height to make this element square,
as the % in padding is a % of the width (including margin,
that's why we had to put the margin to center on a parent div),
and not a % of the parent height. */
padding-top: 100%;
position: relative;
.mx_BaseAvatar,
.mx_BaseAvatar_initial,
.mx_BaseAvatar_image {
border-radius: 100%;
position: absolute;
top: 0;
left: 0;
width: 100% !important;
height: 100% !important;
}
Organize UserInfo.scss (#8461) * .mx_UserInfo_profileField under .mx_UserInfo_memberDetails Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com> * .mx_UserInfo_container:not(.mx_UserInfo_separator) under .mx_UserInfo_container Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com> * reorganize structure of .mx_UserInfo_avatar - 1 .mx_UserInfo_avatar > div > div * Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com> * reorganize structure of .mx_UserInfo_avatar - 2 .mx_UserInfo_avatar > div > div Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com> * reorganize structure of .mx_UserInfo_avatar - 3 .mx_UserInfo_avatar > div Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com> * reorganize structure of .mx_UserInfo_avatar - 4 - .mx_BaseAvatar_initial - .mx_BaseAvatar Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com> * reorganize structure of .mx_UserInfo_avatar - 5 Move .mx_BaseAvatar_initial under .mx_BaseAvatar Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com> * Replace a wildcard with className Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com> * Specify className Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com> * .mx_UserInfo.mx_BaseCard.mx_UserInfo_smallAvatar Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com> * Use variables Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com> * Fix position of the E2E icon of expanding sessions button To prevent the icon from moving down a little bit Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com> * yarn run lint:style --fix Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com>
2022-05-23 14:42:31 +03:00
.mx_BaseAvatar {
&.mx_BaseAvatar_image {
cursor: zoom-in;
}
.mx_BaseAvatar_initial {
z-index: 1;
display: flex;
align-items: center;
justify-content: center;
// override the calculated sizes so that the letter isn't HUGE
font-size: 6rem !important;
width: 100% !important;
transition: font-size 0.5s;
& + .mx_BaseAvatar_image {
cursor: default;
}
}
}
}
}
2019-11-13 19:59:22 +03:00
}
2019-11-13 19:59:22 +03:00
h3 {
text-transform: uppercase;
color: $tertiary-content;
font-weight: 600;
font-size: $font-12px;
Organize UserInfo.scss (#8461) * .mx_UserInfo_profileField under .mx_UserInfo_memberDetails Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com> * .mx_UserInfo_container:not(.mx_UserInfo_separator) under .mx_UserInfo_container Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com> * reorganize structure of .mx_UserInfo_avatar - 1 .mx_UserInfo_avatar > div > div * Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com> * reorganize structure of .mx_UserInfo_avatar - 2 .mx_UserInfo_avatar > div > div Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com> * reorganize structure of .mx_UserInfo_avatar - 3 .mx_UserInfo_avatar > div Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com> * reorganize structure of .mx_UserInfo_avatar - 4 - .mx_BaseAvatar_initial - .mx_BaseAvatar Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com> * reorganize structure of .mx_UserInfo_avatar - 5 Move .mx_BaseAvatar_initial under .mx_BaseAvatar Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com> * Replace a wildcard with className Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com> * Specify className Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com> * .mx_UserInfo.mx_BaseCard.mx_UserInfo_smallAvatar Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com> * Use variables Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com> * Fix position of the E2E icon of expanding sessions button To prevent the icon from moving down a little bit Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com> * yarn run lint:style --fix Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com>
2022-05-23 14:42:31 +03:00
margin: $spacing-4 0;
2019-11-13 19:59:22 +03:00
}
2019-11-13 19:59:22 +03:00
p {
Organize UserInfo.scss (#8461) * .mx_UserInfo_profileField under .mx_UserInfo_memberDetails Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com> * .mx_UserInfo_container:not(.mx_UserInfo_separator) under .mx_UserInfo_container Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com> * reorganize structure of .mx_UserInfo_avatar - 1 .mx_UserInfo_avatar > div > div * Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com> * reorganize structure of .mx_UserInfo_avatar - 2 .mx_UserInfo_avatar > div > div Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com> * reorganize structure of .mx_UserInfo_avatar - 3 .mx_UserInfo_avatar > div Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com> * reorganize structure of .mx_UserInfo_avatar - 4 - .mx_BaseAvatar_initial - .mx_BaseAvatar Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com> * reorganize structure of .mx_UserInfo_avatar - 5 Move .mx_BaseAvatar_initial under .mx_BaseAvatar Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com> * Replace a wildcard with className Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com> * Specify className Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com> * .mx_UserInfo.mx_BaseCard.mx_UserInfo_smallAvatar Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com> * Use variables Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com> * Fix position of the E2E icon of expanding sessions button To prevent the icon from moving down a little bit Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com> * yarn run lint:style --fix Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com>
2022-05-23 14:42:31 +03:00
margin: 5px 0; // TODO: Use a variable
2019-11-13 19:59:22 +03:00
}
2019-11-12 18:26:26 +03:00
2019-11-13 19:59:22 +03:00
.mx_UserInfo_profile {
text-align: center;
h2 {
display: flex;
font-size: $font-18px;
line-height: $font-25px;
2019-11-13 19:59:22 +03:00
flex: 1;
justify-content: center;
span {
// limit to 2 lines, show an ellipsis if it overflows
// this looks webkit specific but is supported by Firefox 68+
display: -webkit-box;
-webkit-box-orient: vertical;
-webkit-line-clamp: 2;
overflow: hidden;
word-break: break-all;
text-overflow: ellipsis;
}
2019-11-13 19:59:22 +03:00
.mx_E2EIcon {
Organize UserInfo.scss (#8461) * .mx_UserInfo_profileField under .mx_UserInfo_memberDetails Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com> * .mx_UserInfo_container:not(.mx_UserInfo_separator) under .mx_UserInfo_container Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com> * reorganize structure of .mx_UserInfo_avatar - 1 .mx_UserInfo_avatar > div > div * Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com> * reorganize structure of .mx_UserInfo_avatar - 2 .mx_UserInfo_avatar > div > div Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com> * reorganize structure of .mx_UserInfo_avatar - 3 .mx_UserInfo_avatar > div Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com> * reorganize structure of .mx_UserInfo_avatar - 4 - .mx_BaseAvatar_initial - .mx_BaseAvatar Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com> * reorganize structure of .mx_UserInfo_avatar - 5 Move .mx_BaseAvatar_initial under .mx_BaseAvatar Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com> * Replace a wildcard with className Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com> * Specify className Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com> * .mx_UserInfo.mx_BaseCard.mx_UserInfo_smallAvatar Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com> * Use variables Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com> * Fix position of the E2E icon of expanding sessions button To prevent the icon from moving down a little bit Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com> * yarn run lint:style --fix Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com>
2022-05-23 14:42:31 +03:00
margin-top: 3px; // visual vertical centering to the top line of text. TODO: Use a variable
margin-inline-end: $spacing-4; // margin from displayName
min-width: 18px; // convince flexbox to not collapse it
2019-11-13 19:59:22 +03:00
}
}
2019-11-12 18:26:26 +03:00
2019-11-13 19:59:22 +03:00
.mx_UserInfo_profileStatus {
Organize UserInfo.scss (#8461) * .mx_UserInfo_profileField under .mx_UserInfo_memberDetails Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com> * .mx_UserInfo_container:not(.mx_UserInfo_separator) under .mx_UserInfo_container Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com> * reorganize structure of .mx_UserInfo_avatar - 1 .mx_UserInfo_avatar > div > div * Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com> * reorganize structure of .mx_UserInfo_avatar - 2 .mx_UserInfo_avatar > div > div Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com> * reorganize structure of .mx_UserInfo_avatar - 3 .mx_UserInfo_avatar > div Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com> * reorganize structure of .mx_UserInfo_avatar - 4 - .mx_BaseAvatar_initial - .mx_BaseAvatar Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com> * reorganize structure of .mx_UserInfo_avatar - 5 Move .mx_BaseAvatar_initial under .mx_BaseAvatar Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com> * Replace a wildcard with className Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com> * Specify className Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com> * .mx_UserInfo.mx_BaseCard.mx_UserInfo_smallAvatar Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com> * Use variables Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com> * Fix position of the E2E icon of expanding sessions button To prevent the icon from moving down a little bit Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com> * yarn run lint:style --fix Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com>
2022-05-23 14:42:31 +03:00
margin-top: $spacing-12;
2019-11-12 18:26:26 +03:00
}
}
Organize UserInfo.scss (#8461) * .mx_UserInfo_profileField under .mx_UserInfo_memberDetails Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com> * .mx_UserInfo_container:not(.mx_UserInfo_separator) under .mx_UserInfo_container Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com> * reorganize structure of .mx_UserInfo_avatar - 1 .mx_UserInfo_avatar > div > div * Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com> * reorganize structure of .mx_UserInfo_avatar - 2 .mx_UserInfo_avatar > div > div Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com> * reorganize structure of .mx_UserInfo_avatar - 3 .mx_UserInfo_avatar > div Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com> * reorganize structure of .mx_UserInfo_avatar - 4 - .mx_BaseAvatar_initial - .mx_BaseAvatar Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com> * reorganize structure of .mx_UserInfo_avatar - 5 Move .mx_BaseAvatar_initial under .mx_BaseAvatar Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com> * Replace a wildcard with className Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com> * Specify className Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com> * .mx_UserInfo.mx_BaseCard.mx_UserInfo_smallAvatar Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com> * Use variables Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com> * Fix position of the E2E icon of expanding sessions button To prevent the icon from moving down a little bit Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com> * yarn run lint:style --fix Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com>
2022-05-23 14:42:31 +03:00
.mx_UserInfo_memberDetails {
.mx_UserInfo_profileField {
display: flex;
justify-content: center;
align-items: center;
Organize UserInfo.scss (#8461) * .mx_UserInfo_profileField under .mx_UserInfo_memberDetails Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com> * .mx_UserInfo_container:not(.mx_UserInfo_separator) under .mx_UserInfo_container Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com> * reorganize structure of .mx_UserInfo_avatar - 1 .mx_UserInfo_avatar > div > div * Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com> * reorganize structure of .mx_UserInfo_avatar - 2 .mx_UserInfo_avatar > div > div Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com> * reorganize structure of .mx_UserInfo_avatar - 3 .mx_UserInfo_avatar > div Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com> * reorganize structure of .mx_UserInfo_avatar - 4 - .mx_BaseAvatar_initial - .mx_BaseAvatar Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com> * reorganize structure of .mx_UserInfo_avatar - 5 Move .mx_BaseAvatar_initial under .mx_BaseAvatar Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com> * Replace a wildcard with className Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com> * Specify className Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com> * .mx_UserInfo.mx_BaseCard.mx_UserInfo_smallAvatar Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com> * Use variables Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com> * Fix position of the E2E icon of expanding sessions button To prevent the icon from moving down a little bit Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com> * yarn run lint:style --fix Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com>
2022-05-23 14:42:31 +03:00
margin: 6px 0; // TODO: Use a variable
.mx_UserInfo_roleDescription {
display: flex;
justify-content: center;
align-items: center;
// try to make it the same height as the dropdown
margin: 11px 0 12px 0;
}
.mx_Field {
margin: 0;
}
}
2019-11-12 18:26:26 +03:00
}
2019-11-13 19:59:22 +03:00
.mx_UserInfo_field {
line-height: $font-16px;
2019-11-13 20:00:35 +03:00
&.mx_UserInfo_destructive {
color: $alert;
2019-11-13 20:00:35 +03:00
}
2019-11-13 19:59:22 +03:00
}
2019-11-13 19:59:22 +03:00
.mx_UserInfo_statusMessage {
$statusLineHeight: 16px;
$statusNumberOfLines: 3;
font-size: $font-11px;
line-height: $statusLineHeight;
2019-11-13 19:59:22 +03:00
opacity: 0.5;
overflow: hidden;
word-break: break-word;
text-overflow: ellipsis;
display: -webkit-box;
max-height: calc($statusLineHeight * $statusNumberOfLines);
-webkit-line-clamp: $statusNumberOfLines;
-webkit-box-orient: vertical;
2019-11-13 19:59:22 +03:00
}
.mx_AutoHideScrollbar {
flex: 1 1 0;
2019-11-13 19:59:22 +03:00
}
2019-11-13 19:59:22 +03:00
.mx_UserInfo_devices {
.mx_UserInfo_device {
display: flex;
margin: $spacing-8 0;
2019-11-19 14:51:37 +03:00
2019-11-13 19:59:22 +03:00
&.mx_UserInfo_device_verified {
.mx_UserInfo_device_trusted {
color: $accent;
2019-11-13 19:59:22 +03:00
}
}
&.mx_UserInfo_device_unverified {
.mx_UserInfo_device_trusted {
color: $alert;
2019-11-13 19:59:22 +03:00
}
}
.mx_UserInfo_device_name {
flex: 1;
margin: 0 5px;
2019-11-19 14:51:37 +03:00
word-break: break-word;
2019-11-13 19:59:22 +03:00
}
}
2019-11-13 19:59:22 +03:00
// both for icon in expand button and device item
.mx_E2EIcon {
// don't squeeze
flex: 0 0 auto;
margin: 0;
2019-11-13 19:59:22 +03:00
width: 12px;
height: 12px;
}
2019-11-13 19:59:22 +03:00
.mx_UserInfo_expand {
column-gap: 5px; // cf: mx_UserInfo_device_name
margin-bottom: 11px;
Organize UserInfo.scss (#8461) * .mx_UserInfo_profileField under .mx_UserInfo_memberDetails Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com> * .mx_UserInfo_container:not(.mx_UserInfo_separator) under .mx_UserInfo_container Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com> * reorganize structure of .mx_UserInfo_avatar - 1 .mx_UserInfo_avatar > div > div * Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com> * reorganize structure of .mx_UserInfo_avatar - 2 .mx_UserInfo_avatar > div > div Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com> * reorganize structure of .mx_UserInfo_avatar - 3 .mx_UserInfo_avatar > div Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com> * reorganize structure of .mx_UserInfo_avatar - 4 - .mx_BaseAvatar_initial - .mx_BaseAvatar Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com> * reorganize structure of .mx_UserInfo_avatar - 5 Move .mx_BaseAvatar_initial under .mx_BaseAvatar Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com> * Replace a wildcard with className Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com> * Specify className Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com> * .mx_UserInfo.mx_BaseCard.mx_UserInfo_smallAvatar Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com> * Use variables Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com> * Fix position of the E2E icon of expanding sessions button To prevent the icon from moving down a little bit Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com> * yarn run lint:style --fix Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com>
2022-05-23 14:42:31 +03:00
align-items: initial; // Cancel the default property
}
}
Organize UserInfo.scss (#8461) * .mx_UserInfo_profileField under .mx_UserInfo_memberDetails Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com> * .mx_UserInfo_container:not(.mx_UserInfo_separator) under .mx_UserInfo_container Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com> * reorganize structure of .mx_UserInfo_avatar - 1 .mx_UserInfo_avatar > div > div * Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com> * reorganize structure of .mx_UserInfo_avatar - 2 .mx_UserInfo_avatar > div > div Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com> * reorganize structure of .mx_UserInfo_avatar - 3 .mx_UserInfo_avatar > div Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com> * reorganize structure of .mx_UserInfo_avatar - 4 - .mx_BaseAvatar_initial - .mx_BaseAvatar Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com> * reorganize structure of .mx_UserInfo_avatar - 5 Move .mx_BaseAvatar_initial under .mx_BaseAvatar Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com> * Replace a wildcard with className Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com> * Specify className Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com> * .mx_UserInfo.mx_BaseCard.mx_UserInfo_smallAvatar Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com> * Use variables Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com> * Fix position of the E2E icon of expanding sessions button To prevent the icon from moving down a little bit Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com> * yarn run lint:style --fix Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com>
2022-05-23 14:42:31 +03:00
&.mx_UserInfo_smallAvatar {
.mx_UserInfo_avatar {
.mx_UserInfo_avatar_transition {
max-width: 72px;
margin: 0 auto;
}
2020-01-27 20:17:05 +03:00
Organize UserInfo.scss (#8461) * .mx_UserInfo_profileField under .mx_UserInfo_memberDetails Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com> * .mx_UserInfo_container:not(.mx_UserInfo_separator) under .mx_UserInfo_container Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com> * reorganize structure of .mx_UserInfo_avatar - 1 .mx_UserInfo_avatar > div > div * Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com> * reorganize structure of .mx_UserInfo_avatar - 2 .mx_UserInfo_avatar > div > div Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com> * reorganize structure of .mx_UserInfo_avatar - 3 .mx_UserInfo_avatar > div Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com> * reorganize structure of .mx_UserInfo_avatar - 4 - .mx_BaseAvatar_initial - .mx_BaseAvatar Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com> * reorganize structure of .mx_UserInfo_avatar - 5 Move .mx_BaseAvatar_initial under .mx_BaseAvatar Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com> * Replace a wildcard with className Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com> * Specify className Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com> * .mx_UserInfo.mx_BaseCard.mx_UserInfo_smallAvatar Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com> * Use variables Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com> * Fix position of the E2E icon of expanding sessions button To prevent the icon from moving down a little bit Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com> * yarn run lint:style --fix Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com>
2022-05-23 14:42:31 +03:00
.mx_UserInfo_avatar_transition_child {
.mx_BaseAvatar {
.mx_BaseAvatar_initial {
font-size: 40px !important; // override the other override because here the avatar is smaller
}
}
}
}
2020-01-27 20:17:05 +03:00
}
}