signal-desktop/stylesheets/components/MediaQualitySelector.scss

137 lines
2.5 KiB
SCSS
Raw Normal View History

2021-06-25 16:08:16 +00:00
// Copyright 2021 Signal Messenger, LLC
// SPDX-License-Identifier: AGPL-3.0-only
.MediaQualitySelector {
&__popper {
@extend %module-composition-popper;
2023-04-20 17:03:43 +00:00
padding-block: 12px;
padding-inline: 16px;
2021-06-25 16:08:16 +00:00
width: auto;
}
&__title {
@include font-body-1-bold;
margin-bottom: 12px;
}
&__button {
@include button-reset();
align-items: center;
2022-06-15 17:53:08 +00:00
border-radius: 4px;
2021-06-25 16:08:16 +00:00
display: flex;
height: 32px;
justify-content: center;
width: 32px;
2022-06-15 17:53:08 +00:00
@include keyboard-mode {
&:focus {
outline: 2px solid $color-ultramarine;
}
}
2022-06-15 17:53:08 +00:00
outline: none;
2021-06-25 16:08:16 +00:00
&::after {
content: '';
display: block;
flex-shrink: 0;
2023-05-04 18:04:22 +00:00
height: 20px;
width: 20px;
2021-06-25 16:08:16 +00:00
@include light-theme {
2023-05-04 18:04:22 +00:00
@include color-svg(
'../images/icons/v3/quality/quality-standard.svg',
$color-gray-75
);
2021-06-25 16:08:16 +00:00
}
@include dark-theme {
2023-05-04 18:04:22 +00:00
@include color-svg(
'../images/icons/v3/quality/quality-standard.svg',
$color-gray-15
);
2021-06-25 16:08:16 +00:00
}
}
&--hq {
&::after {
@include light-theme {
@include color-svg(
2023-05-04 18:04:22 +00:00
'../images/icons/v3/quality/quality-high.svg',
2021-06-25 16:08:16 +00:00
$color-gray-75
);
}
@include dark-theme {
@include color-svg(
2023-05-04 18:04:22 +00:00
'../images/icons/v3/quality/quality-high.svg',
2021-06-25 16:08:16 +00:00
$color-gray-15
);
}
}
}
&--active {
opacity: 1;
@include light-theme() {
background-color: $color-gray-05;
}
@include dark-theme() {
background-color: $color-gray-75;
}
}
}
&__option {
@include button-reset();
align-items: center;
border-radius: 6px;
display: flex;
height: 42px;
2023-04-20 17:03:43 +00:00
margin-block: 2px;
margin-inline: 0;
2021-06-25 16:08:16 +00:00
min-width: 200px;
&--checkmark {
height: 12px;
2023-04-20 17:03:43 +00:00
margin-block: 0;
margin-inline: 6px;
2021-06-25 16:08:16 +00:00
width: 16px;
}
&--selected {
2023-05-04 18:04:22 +00:00
@include color-svg(
'../images/icons/v3/check/check-compact.svg',
$color-ultramarine
);
2021-06-25 16:08:16 +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,
2021-06-25 16:08:16 +00:00
&:focus,
&:active {
border-radius: 6px;
box-shadow: 0 0 1px 1px $color-ultramarine;
outline: none;
}
}
}