signal-desktop/stylesheets/components/AvatarEditor.scss

98 lines
1.8 KiB
SCSS
Raw Normal View History

2021-08-06 00:17:05 +00:00
// Copyright 2021 Signal Messenger, LLC
// SPDX-License-Identifier: AGPL-3.0-only
.AvatarEditor {
&__top-buttons {
display: flex;
}
&__button {
@include button-reset;
align-items: center;
border-radius: 8px;
display: flex;
flex-direction: column;
font-size: 9px;
justify-content: center;
line-height: 14px;
2023-04-20 17:03:43 +00:00
margin-block: 0;
margin-inline: 8px;
2021-08-06 00:17:05 +00:00
min-height: 44px;
min-width: 60px;
2023-04-20 17:03:43 +00:00
padding-block: 0;
padding-inline: 8px;
2021-08-06 00:17:05 +00:00
@include light-theme {
background-color: $color-gray-05;
color: $color-black;
}
@include dark-theme {
background-color: $color-gray-65;
color: $color-gray-05;
}
&::before {
content: '';
display: block;
height: 18px;
width: 18px;
}
@mixin button-icon($icon) {
@include light-theme {
@include color-svg($icon, $color-black);
}
@include dark-theme {
@include color-svg($icon, $color-gray-05);
}
}
&--photo::before {
2023-05-05 16:23:43 +00:00
@include button-icon('../images/icons/v3/album/album-tilt.svg');
2021-08-06 00:17:05 +00:00
}
&--text::before {
@include button-icon('../images/icons/v2/text-24.svg');
}
&:focus {
box-shadow: 0 0 0 2px $color-ultramarine;
}
}
&__avatars {
display: flex;
flex-wrap: wrap;
gap: 9px;
}
&__divider {
border: none;
border-bottom: 1px solid $color-gray-15;
margin-bottom: 24px;
margin-top: 20px;
@include light-theme {
border-color: $color-gray-15;
}
@include dark-theme {
border-color: $color-gray-75;
}
}
&__preview {
align-items: center;
display: flex;
flex-direction: column;
justify-content: center;
width: 100%;
}
&__avatar-selector-title {
@include font-body-1-bold;
margin-bottom: 14px;
}
}