signal-desktop/stylesheets/components/AvatarEditor.scss

103 lines
2 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
2024-11-15 23:09:31 +00:00
@use '../mixins';
@use '../variables';
2021-08-06 00:17:05 +00:00
.AvatarEditor {
&__top-buttons {
display: flex;
}
&__button {
2024-11-15 23:09:31 +00:00
@include mixins.button-reset;
& {
align-items: center;
border-radius: 8px;
display: flex;
flex-direction: column;
font-size: 9px;
justify-content: center;
line-height: 14px;
margin-block: 0;
margin-inline: 8px;
min-height: 44px;
min-width: 60px;
padding-block: 0;
padding-inline: 8px;
}
@include mixins.light-theme {
background-color: variables.$color-gray-05;
color: variables.$color-black;
2021-08-06 00:17:05 +00:00
}
2024-11-15 23:09:31 +00:00
@include mixins.dark-theme {
background-color: variables.$color-gray-65;
color: variables.$color-gray-05;
2021-08-06 00:17:05 +00:00
}
&::before {
content: '';
display: block;
height: 18px;
width: 18px;
}
@mixin button-icon($icon) {
2024-11-15 23:09:31 +00:00
@include mixins.light-theme {
@include mixins.color-svg($icon, variables.$color-black);
2021-08-06 00:17:05 +00:00
}
2024-11-15 23:09:31 +00:00
@include mixins.dark-theme {
@include mixins.color-svg($icon, variables.$color-gray-05);
2021-08-06 00:17:05 +00:00
}
}
&--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 {
2024-11-15 23:09:31 +00:00
box-shadow: 0 0 0 2px variables.$color-ultramarine;
2021-08-06 00:17:05 +00:00
}
}
&__avatars {
display: flex;
flex-wrap: wrap;
gap: 9px;
}
&__divider {
border: none;
2024-11-15 23:09:31 +00:00
border-bottom: 1px solid variables.$color-gray-15;
2021-08-06 00:17:05 +00:00
margin-bottom: 24px;
margin-top: 20px;
2024-11-15 23:09:31 +00:00
@include mixins.light-theme {
border-color: variables.$color-gray-15;
2021-08-06 00:17:05 +00:00
}
2024-11-15 23:09:31 +00:00
@include mixins.dark-theme {
border-color: variables.$color-gray-75;
2021-08-06 00:17:05 +00:00
}
}
&__preview {
align-items: center;
display: flex;
flex-direction: column;
justify-content: center;
width: 100%;
}
&__avatar-selector-title {
2024-11-15 23:09:31 +00:00
@include mixins.font-body-1-bold;
2021-08-06 00:17:05 +00:00
margin-bottom: 14px;
}
}