signal-desktop/stylesheets/components/Select.scss

60 lines
1.2 KiB
SCSS
Raw Normal View History

// Copyright 2021 Signal Messenger, LLC
// SPDX-License-Identifier: AGPL-3.0-only
2021-06-01 20:45:43 +00:00
.module-select {
position: relative;
select {
@include font-body-2;
-webkit-appearance: none;
border-radius: 4px;
border: 1px solid $color-gray-25;
cursor: pointer;
height: 40px;
min-width: 124px;
outline: 0;
padding: 10px;
2023-04-20 17:03:43 +00:00
padding-inline: 12px 32px;
2021-06-01 20:45:43 +00:00
text-overflow: ellipsis;
width: 100%;
@include dark-theme {
background-color: $color-gray-90;
border-color: $color-gray-60;
color: $color-gray-05;
}
@include keyboard-mode {
&:focus {
border: 3px solid $color-ultramarine;
line-height: 14px;
2023-04-20 17:03:43 +00:00
padding-inline-start: 10px;
2021-06-01 20:45:43 +00:00
}
}
}
&::after {
content: ' ';
display: block;
2023-05-04 18:04:22 +00:00
height: 16px;
2021-06-01 20:45:43 +00:00
pointer-events: none;
position: absolute;
2023-05-04 18:04:22 +00:00
inset-inline-end: 8px;
top: 11px;
width: 16px;
@include light-theme {
@include color-svg(
'../images/icons/v3/dropdown/dropdown-compact-light.svg',
$color-gray-60
);
}
2021-06-01 20:45:43 +00:00
@include dark-theme {
2023-05-04 18:04:22 +00:00
@include color-svg(
'../images/icons/v3/dropdown/dropdown-compact-light.svg',
$color-gray-15
);
2021-06-01 20:45:43 +00:00
}
}
}