signal-desktop/stylesheets/components/ChatColorPicker.scss

89 lines
1.6 KiB
SCSS
Raw Normal View History

2021-05-28 16:15:17 +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-05-28 16:15:17 +00:00
.ChatColorPicker {
$bubble-size: 52px;
2021-05-28 16:15:17 +00:00
2021-06-01 23:37:12 +00:00
&__container {
max-width: 748px;
2023-04-20 17:03:43 +00:00
margin-block: 0;
margin-inline: auto;
2021-06-01 23:37:12 +00:00
hr {
2024-11-15 23:09:31 +00:00
@include mixins.light-theme {
border-color: variables.$color-gray-15;
2021-06-01 23:37:12 +00:00
}
2024-11-15 23:09:31 +00:00
@include mixins.dark-theme {
border-color: variables.$color-gray-75;
2021-06-01 23:37:12 +00:00
}
}
}
2023-05-01 19:05:39 +00:00
&__modal__body.module-Modal__body {
overflow-x: hidden;
}
2021-05-28 16:15:17 +00:00
&__bubbles {
align-items: center;
display: grid;
grid-gap: 24px;
grid-template-columns: repeat(auto-fit, $bubble-size);
justify-content: center;
2023-04-20 17:03:43 +00:00
margin-block: 20px;
margin-inline: 0;
2021-05-28 16:15:17 +00:00
}
&__bubble {
align-items: center;
display: flex;
justify-content: center;
2024-11-15 23:09:31 +00:00
@include mixins.color-bubble($bubble-size);
2021-05-28 16:15:17 +00:00
&--selected {
2024-11-15 23:09:31 +00:00
border-color: variables.$color-gray-75;
2021-05-28 16:15:17 +00:00
2024-11-15 23:09:31 +00:00
@include mixins.dark-theme {
border-color: variables.$color-white;
2021-05-28 16:15:17 +00:00
}
2021-06-01 23:37:12 +00:00
}
2021-05-28 16:15:17 +00:00
2021-06-01 23:37:12 +00:00
&:focus {
2024-11-15 23:09:31 +00:00
border-color: variables.$color-ultramarine;
2021-06-01 23:37:12 +00:00
outline: none;
2021-05-28 16:15:17 +00:00
}
2021-06-01 23:37:12 +00:00
&--custom-selected {
&::after {
content: '';
display: block;
height: 24px;
width: 24px;
2024-11-15 23:09:31 +00:00
@include mixins.color-svg(
'../images/icons/v3/more/more.svg',
variables.$color-gray-05
);
2021-05-28 16:15:17 +00:00
}
}
&--custom {
2024-11-15 23:09:31 +00:00
background-color: variables.$color-gray-05;
}
2021-05-28 16:15:17 +00:00
}
&__add-icon {
2024-11-15 23:09:31 +00:00
@include mixins.color-svg(
'../images/icons/v3/plus/plus.svg',
variables.$color-gray-90
);
& {
display: block;
height: 24px;
width: 24px;
}
2021-05-28 16:15:17 +00:00
}
}