signal-desktop/stylesheets/components/ChatColorPicker.scss

78 lines
1.4 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
.ChatColorPicker {
$bubble-size: 40px;
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 {
@include light-theme {
border-color: $color-gray-15;
}
@include dark-theme {
border-color: $color-gray-75;
}
}
}
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;
@include color-bubble($bubble-size);
&--selected {
border-color: $color-gray-75;
@include dark-theme {
border-color: $color-white;
}
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 {
border-color: $color-ultramarine;
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;
2023-05-04 18:04:22 +00:00
@include color-svg('../images/icons/v3/more/more.svg', $color-gray-05);
2021-05-28 16:15:17 +00:00
}
}
&--custom {
background-color: $color-gray-05;
}
2021-05-28 16:15:17 +00:00
}
&__add-icon {
2023-05-04 18:04:22 +00:00
@include color-svg('../images/icons/v3/plus/plus.svg', $color-gray-90);
2021-05-28 16:15:17 +00:00
display: block;
height: 24px;
width: 24px;
}
}