2021-12-01 02:14:25 +00:00
|
|
|
// Copyright 2021 Signal Messenger, LLC
|
|
|
|
// SPDX-License-Identifier: AGPL-3.0-only
|
|
|
|
|
|
|
|
.ContextMenu {
|
2022-08-03 20:54:02 +00:00
|
|
|
&__container {
|
|
|
|
align-items: center;
|
|
|
|
display: flex;
|
|
|
|
justify-content: center;
|
|
|
|
}
|
|
|
|
|
2021-12-01 02:14:25 +00:00
|
|
|
&__popper {
|
|
|
|
@extend %module-composition-popper;
|
|
|
|
margin: 0;
|
2023-04-20 17:03:43 +00:00
|
|
|
padding-block: 6px;
|
|
|
|
padding-inline: 0px;
|
2021-12-01 02:14:25 +00:00
|
|
|
width: auto;
|
2022-07-21 00:07:09 +00:00
|
|
|
|
|
|
|
&--single-item {
|
|
|
|
padding: 0;
|
|
|
|
}
|
2021-12-01 02:14:25 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
&__title {
|
|
|
|
@include font-body-1-bold;
|
|
|
|
margin-bottom: 12px;
|
|
|
|
}
|
|
|
|
|
|
|
|
&__button {
|
|
|
|
@include button-reset();
|
|
|
|
}
|
|
|
|
|
|
|
|
&__option {
|
|
|
|
@include button-reset();
|
|
|
|
@include font-body-2;
|
|
|
|
@include dark-theme {
|
|
|
|
color: $color-gray-05;
|
|
|
|
}
|
|
|
|
|
|
|
|
align-items: center;
|
|
|
|
display: flex;
|
|
|
|
justify-content: space-between;
|
|
|
|
min-width: 150px;
|
2022-08-10 18:37:19 +00:00
|
|
|
width: 100%;
|
2021-12-01 02:14:25 +00:00
|
|
|
|
|
|
|
&--container {
|
|
|
|
display: flex;
|
2023-05-04 18:04:22 +00:00
|
|
|
align-items: center;
|
2023-11-13 14:56:48 +00:00
|
|
|
padding-block: 7px;
|
|
|
|
padding-inline: 12px;
|
|
|
|
&--with-selection {
|
|
|
|
padding-inline-start: 8px;
|
|
|
|
padding-inline-end: 24px;
|
|
|
|
&::before {
|
|
|
|
content: '';
|
|
|
|
width: 16px;
|
|
|
|
height: 16px;
|
|
|
|
margin-inline-end: 8px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
&--selected::before {
|
|
|
|
@include light-theme {
|
|
|
|
@include color-svg(
|
|
|
|
'../images/icons/v3/check/check.svg',
|
|
|
|
$color-black
|
|
|
|
);
|
|
|
|
}
|
|
|
|
@include dark-theme {
|
|
|
|
@include color-svg(
|
|
|
|
'../images/icons/v3/check/check.svg',
|
|
|
|
$color-white
|
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|
2021-12-01 02:14:25 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
&--icon {
|
|
|
|
height: 16px;
|
2023-04-20 17:03:43 +00:00
|
|
|
margin-inline-end: 8px;
|
2021-12-01 02:14:25 +00:00
|
|
|
width: 16px;
|
|
|
|
}
|
|
|
|
|
2023-11-13 14:56:48 +00:00
|
|
|
&--container--with-selection &--icon {
|
|
|
|
margin-inline-end: 12px;
|
2021-12-01 02:14:25 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
&--title {
|
|
|
|
@include font-body-2;
|
|
|
|
}
|
|
|
|
|
|
|
|
&--description {
|
|
|
|
@include font-subtitle;
|
|
|
|
}
|
|
|
|
|
|
|
|
&:hover {
|
|
|
|
@include light-theme() {
|
|
|
|
background-color: $color-gray-05;
|
|
|
|
}
|
|
|
|
|
|
|
|
@include dark-theme() {
|
|
|
|
background-color: $color-gray-65;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&--focused,
|
|
|
|
&:focus,
|
|
|
|
&:active {
|
2022-07-21 00:07:09 +00:00
|
|
|
@include keyboard-mode {
|
|
|
|
box-shadow: 0 0 1px 1px $color-ultramarine;
|
|
|
|
outline: none;
|
|
|
|
}
|
2021-12-01 02:14:25 +00:00
|
|
|
}
|
|
|
|
}
|
2023-11-13 14:56:48 +00:00
|
|
|
&__popper--single-item &__option--container {
|
2023-04-20 17:03:43 +00:00
|
|
|
padding-block: 12px;
|
2022-07-21 00:07:09 +00:00
|
|
|
}
|
2023-11-13 14:56:48 +00:00
|
|
|
&__popper--single-item &__divider {
|
2022-10-18 17:12:02 +00:00
|
|
|
border-style: solid;
|
|
|
|
border-width: 0 0 1px 0;
|
|
|
|
margin-top: 2px;
|
|
|
|
margin-bottom: 2px;
|
|
|
|
|
|
|
|
@include light-theme {
|
|
|
|
border-color: $color-gray-15;
|
|
|
|
}
|
|
|
|
|
|
|
|
@include dark-theme {
|
|
|
|
border-color: $color-gray-65;
|
|
|
|
}
|
|
|
|
}
|
2021-12-01 02:14:25 +00:00
|
|
|
}
|