signal-desktop/stylesheets/components/EditUsernameModalBody.scss

129 lines
2.4 KiB
SCSS
Raw Normal View History

2022-10-18 17:12:02 +00:00
// Copyright 2022 Signal Messenger, LLC
// SPDX-License-Identifier: AGPL-3.0-only
.EditUsernameModalBody {
&__header {
display: flex;
flex-direction: column;
align-items: center;
&__large-at {
display: flex;
align-items: center;
justify-content: center;
width: 64px;
height: 64px;
border-radius: 32px;
margin-top: 21px;
margin-bottom: 16px;
@include light-theme {
background-color: $color-gray-04;
}
@include dark-theme {
background-color: $color-gray-65;
}
&::after {
display: block;
width: 36px;
height: 36px;
content: '';
@include light-theme {
2023-05-04 18:04:22 +00:00
@include color-svg('../images/icons/v3/at/at.svg', $color-gray-75);
2022-10-18 17:12:02 +00:00
}
@include dark-theme {
2023-05-04 18:04:22 +00:00
@include color-svg('../images/icons/v3/at/at.svg', $color-gray-15);
2022-10-18 17:12:02 +00:00
}
}
}
&__preview {
margin-bottom: 2px;
}
}
&__divider {
width: 2px;
height: 20px;
2023-04-20 17:03:43 +00:00
margin-block: 0;
margin-inline: 12px;
2022-10-18 17:12:02 +00:00
@include light-theme {
background-color: $color-gray-20;
}
@include dark-theme {
background-color: $color-gray-45;
}
}
&__discriminator {
user-select: none;
}
&__error {
@include font-body-2;
2023-04-20 17:03:43 +00:00
margin-block: 16px;
margin-inline: 0;
2022-10-18 17:12:02 +00:00
color: $color-accent-red;
}
&__info {
@include font-body-2;
2023-04-20 17:03:43 +00:00
margin-block: 16px;
margin-inline: 0;
2022-10-18 17:12:02 +00:00
@include light-theme {
color: $color-gray-60;
}
@include dark-theme {
color: $color-gray-25;
}
// To account for missing error section - 16px previous margin, 34px for
// 16px margin of error plus 18px line height.
&--no-error {
margin-bottom: 50px;
}
}
&__learn-more-button {
@include button-reset;
color: $color-accent-blue;
}
&__learn-more {
&__title.module-Modal__title {
display: flex;
align-items: center;
}
&__hashtag {
display: inline-block;
width: 20px;
height: 20px;
2023-04-20 17:03:43 +00:00
margin-inline-end: 12px;
2022-10-18 17:12:02 +00:00
-webkit-mask-size: 100%;
content: '';
@include light-theme {
background-color: $color-gray-75;
}
@include dark-theme {
background-color: $color-gray-15;
}
-webkit-mask: url(../images/icons/v2/hashtag-24.svg) no-repeat center;
}
}
}