Skip to content
This repository was archived by the owner on Sep 11, 2024. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
83 changes: 28 additions & 55 deletions res/css/views/right_panel/_UserInfo.pcss
Original file line number Diff line number Diff line change
Expand Up @@ -41,35 +41,17 @@ limitations under the License.
}
}

h2 {
font-size: $font-18px;
font-weight: var(--cpd-font-weight-semibold);
margin: 18px 0 0 0;
}

.mx_UserInfo_container {
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;
}
}
padding: var(--cpd-space-4x) 0;
margin: 0 var(--cpd-space-4x);

.mx_UserInfo_container_verifyButton {
margin-top: $spacing-8;
}
}

.mx_UserInfo_separator {
border-bottom: 1px solid $separator;
& + .mx_UserInfo_container {
border-top: 1px solid $separator;
}
}

.mx_UserInfo_memberDetailsContainer {
Expand All @@ -94,7 +76,7 @@ limitations under the License.
margin: $spacing-24 $spacing-32 0 $spacing-32;

.mx_UserInfo_avatar_transition {
max-width: 30vh;
max-width: 120px;
aspect-ratio: 1 / 1;
margin: 0 auto;
transition: 0.5s;
Expand All @@ -112,7 +94,7 @@ limitations under the License.
}
}

h3 {
h2 {
text-transform: uppercase;
color: $tertiary-content;
font: var(--cpd-font-heading-sm-semibold);
Expand All @@ -125,41 +107,36 @@ limitations under the License.
}

.mx_UserInfo_profile {
text-align: center;

h2 {
display: flex;
font-size: $font-17px;
h1 {
font-size: $font-20px;
line-height: $font-25px;
flex: 1;
justify-content: center;
/* We reverse things here so for accessible technologies the name comes before the e2e shield */
flex-direction: row-reverse;

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;
}

.mx_E2EIcon {
margin-top: 3px; /* visual vertical centering to the top line of text. */
margin-inline-end: $spacing-4; /* margin from displayName */
min-width: 18px; /* convince flexbox to not collapse it */
/* 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;

/* E2E icon wrapper */
.mx_Flex > span {
display: inline-block;
}
}

.mx_UserInfo_profileStatus {
margin-top: $spacing-12;
margin: var(--cpd-space-1x) 0;
}
}

.mx_PresenceLabel {
font: var(--cpd-font-body-sm-regular);
opacity: 1;
}

.mx_UserInfo_memberDetails {
.mx_UserInfo_profileField {
display: flex;
Expand All @@ -184,10 +161,6 @@ limitations under the License.

.mx_UserInfo_field {
line-height: $font-16px;

&.mx_UserInfo_destructive {
color: $alert;
}
}

.mx_UserInfo_statusMessage {
Expand Down
4 changes: 4 additions & 0 deletions res/css/views/rooms/_PresenceLabel.pcss
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,7 @@ limitations under the License.
font-size: $font-11px;
opacity: 0.5;
}

.mx_PresenceLabel_online {
color: var(--cpd-color-text-success-primary);
}
Loading