signal-desktop/stylesheets/components/ProfileEditor.scss

110 lines
1.9 KiB
SCSS
Raw Normal View History

2021-07-19 19:26:06 +00:00
// Copyright 2021 Signal Messenger, LLC
// SPDX-License-Identifier: AGPL-3.0-only
.ProfileEditor {
&__icon {
&--container {
align-items: center;
display: flex;
font-size: 24px;
height: 32px;
justify-content: center;
width: 32px;
}
&::after {
-webkit-mask-size: 100%;
content: '';
display: block;
height: 24px;
width: 24px;
@include light-theme {
background-color: $color-gray-75;
}
@include dark-theme {
background-color: $color-gray-15;
}
}
&--name {
&::after {
-webkit-mask: url(../images/icons/v2/profile-outline-20.svg) no-repeat
center;
}
}
&--username {
&::after {
-webkit-mask: url(../images/icons/v2/at-24.svg) no-repeat center;
}
}
2021-07-19 19:26:06 +00:00
&--bio {
&::after {
-webkit-mask: url(../images/icons/v2/compose-outline-24.svg) no-repeat
center;
}
}
}
&__about-input {
&__icon {
left: 4px;
}
&__input--with-icon {
padding-left: 32px;
}
}
&__row {
padding-left: 0;
padding-right: 0;
}
&__divider {
border-style: solid;
2021-08-06 21:35:25 +00:00
border-bottom: none;
@include light-theme {
border-color: $color-gray-15;
}
@include dark-theme {
border-color: $color-gray-75;
}
2021-07-19 19:26:06 +00:00
}
&__error {
@include font-body-2;
margin: 16px 0;
color: $color-accent-red;
}
2021-07-19 19:26:06 +00:00
&__info {
@include font-body-2;
2021-08-06 00:17:05 +00:00
margin: 16px 0;
2021-08-06 21:35:25 +00:00
@include light-theme {
color: $color-gray-60;
}
@include dark-theme {
color: $color-gray-25;
}
a {
2021-11-20 15:41:32 +00:00
font-weight: 600;
2021-08-06 21:35:25 +00:00
text-decoration: none;
}
2021-11-12 01:17:29 +00:00
// To account for missing error section - 16px previous margin, 34px for
// 16px margin of error plus 18px line height.
&--no-error {
margin-bottom: 50px;
}
2021-07-19 19:26:06 +00:00
}
}