signal-desktop/stylesheets/components/ChatColorPicker.scss

80 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;
margin: 0 auto;
hr {
@include light-theme {
border-color: $color-gray-15;
}
@include dark-theme {
border-color: $color-gray-75;
}
}
}
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;
margin: 20px 0;
}
&__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;
@include color-svg(
'../images/icons/v2/more-horiz-24.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 {
@include color-svg('../images/icons/v2/plus-24.svg', $color-gray-90);
display: block;
height: 24px;
width: 24px;
}
2021-06-01 23:37:12 +00:00
// specificity
&__modal__body.module-Modal__body {
overflow-x: hidden;
}
2021-05-28 16:15:17 +00:00
}