signal-desktop/stylesheets/components/AboutContactModal.scss

157 lines
3 KiB
SCSS
Raw Normal View History

// Copyright 2024 Signal Messenger, LLC
// SPDX-License-Identifier: AGPL-3.0-only
2024-11-15 23:09:31 +00:00
@use '../mixins';
@use '../variables';
.AboutContactModal {
&__headerTitle.module-Modal__headerTitle {
// No padding between header and avatar
padding-block-end: 0;
}
&__body_inner {
display: flex;
flex-direction: column;
gap: 12px;
padding-inline: 8px;
padding-block-end: 20px;
}
&__row {
display: flex;
flex-direction: row;
gap: 12px;
}
&__row--centered {
justify-content: center;
}
&__title {
2024-11-15 23:09:31 +00:00
@include mixins.font-title-2;
2024-02-16 22:16:13 +00:00
font-weight: 500;
margin: 0;
margin-block-end: 4px;
}
&__row__icon {
display: inline-block;
height: 20px;
width: 20px;
vertical-align: text-top;
flex-shrink: 0;
@mixin about-modal-icon($url) {
2024-11-15 23:09:31 +00:00
@include mixins.light-theme {
@include mixins.color-svg($url, variables.$color-black);
}
2024-11-15 23:09:31 +00:00
@include mixins.dark-theme {
@include mixins.color-svg($url, variables.$color-gray-05);
}
}
&--profile {
@include about-modal-icon('../images/icons/v3/person/person-compact.svg');
}
2024-02-14 20:29:17 +00:00
&--verified {
2024-09-24 21:16:51 +00:00
@include about-modal-icon(
'../images/icons/v3/safety_number/safety_number.svg'
);
2024-02-14 20:29:17 +00:00
}
&--blocked {
@include about-modal-icon('../images/icons/v3/block/block.svg');
}
&--message-request {
@include about-modal-icon('../images/icons/v3/chat/chat-badge.svg');
}
&--no-dms {
@include about-modal-icon('../images/icons/v3/chat/chat-x.svg');
}
&--connections {
@include about-modal-icon(
'../images/icons/v3/connections/connections.svg'
);
}
2024-02-14 20:29:17 +00:00
&--chat-x {
@include about-modal-icon('../images/icons/v3/chat/chat-x.svg');
}
&--person {
@include about-modal-icon(
'../images/icons/v3/person/person-circle-compact.svg'
);
}
&--phone {
@include about-modal-icon('../images/icons/v3/phone/phone-compact.svg');
}
&--group {
@include about-modal-icon('../images/icons/v3/group/group.svg');
}
&--about {
@include about-modal-icon('../images/icons/v3/edit/edit.svg');
}
2024-03-26 19:48:33 +00:00
&--note {
@include about-modal-icon('../images/icons/v3/note/note.svg');
}
}
2024-03-26 19:48:33 +00:00
&__button {
display: flex;
flex-direction: row;
align-items: center;
2024-03-26 19:48:33 +00:00
min-width: 0;
2024-11-15 23:09:31 +00:00
@include mixins.button-reset();
& {
cursor: pointer;
}
&::after {
content: '';
display: inline-block;
height: 20px;
width: 20px;
2024-03-26 19:48:33 +00:00
flex-shrink: 0;
2024-11-15 23:09:31 +00:00
@include mixins.color-svg(
'../images/icons/v3/chevron/chevron-right-bold.svg',
2024-11-15 23:09:31 +00:00
variables.$color-gray-45
);
}
}
2024-02-14 20:29:17 +00:00
&__verified {
2024-11-15 23:09:31 +00:00
@include mixins.button-reset();
& {
cursor: pointer;
}
2024-02-14 20:29:17 +00:00
}
}
2024-03-26 19:48:33 +00:00
.AboutContactModal__TitleWithoutNickname {
2024-11-15 23:09:31 +00:00
color: variables.$color-gray-45;
2024-03-26 19:48:33 +00:00
}
.AboutContactModal__OneLineEllipsis {
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.AboutContactModal__TitleWithoutNickname__Tooltip {
max-width: 300px;
}