signal-desktop/stylesheets/components/MediaQualitySelector.scss

125 lines
2.3 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;
padding: 12px 16px;
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;
height: 24px;
width: 24px;
@include light-theme {
@include color-svg('../images/icons/v2/sq-24.svg', $color-gray-75);
}
@include dark-theme {
@include color-svg('../images/icons/v2/sq-24.svg', $color-gray-15);
}
}
&--hq {
&::after {
@include light-theme {
@include color-svg(
'../images/icons/v2/hq-outline-24.svg',
$color-gray-75
);
}
@include dark-theme {
@include color-svg(
'../images/icons/v2/hq-solid-24.svg',
$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;
margin: 2px 0;
min-width: 200px;
&--checkmark {
height: 12px;
margin: 0 6px;
width: 16px;
}
&--selected {
@include color-svg('../images/icons/v2/check-24.svg', $color-ultramarine);
}
&--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;
}
}
}