signal-desktop/stylesheets/components/Select.scss

63 lines
1.4 KiB
SCSS
Raw Normal View History

// Copyright 2021 Signal Messenger, LLC
// SPDX-License-Identifier: AGPL-3.0-only
2024-11-15 23:09:31 +00:00
@use '../mixins';
@use '../variables';
2021-06-01 20:45:43 +00:00
.module-select {
position: relative;
select {
2024-11-15 23:09:31 +00:00
@include mixins.font-body-2;
2021-06-01 20:45:43 +00:00
-webkit-appearance: none;
border-radius: 4px;
2024-11-15 23:09:31 +00:00
border: 1px solid variables.$color-gray-25;
2021-06-01 20:45:43 +00:00
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%;
2024-11-15 23:09:31 +00:00
@include mixins.dark-theme {
background-color: variables.$color-gray-90;
border-color: variables.$color-gray-60;
color: variables.$color-gray-05;
2021-06-01 20:45:43 +00:00
}
2024-11-15 23:09:31 +00:00
@include mixins.keyboard-mode {
2021-06-01 20:45:43 +00:00
&:focus {
2024-11-15 23:09:31 +00:00
border: 3px solid variables.$color-ultramarine;
2021-06-01 20:45:43 +00:00
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;
2024-11-15 23:09:31 +00:00
@include mixins.light-theme {
@include mixins.color-svg(
2023-05-04 18:04:22 +00:00
'../images/icons/v3/dropdown/dropdown-compact-light.svg',
2024-11-15 23:09:31 +00:00
variables.$color-gray-60
2023-05-04 18:04:22 +00:00
);
}
2021-06-01 20:45:43 +00:00
2024-11-15 23:09:31 +00:00
@include mixins.dark-theme {
@include mixins.color-svg(
2023-05-04 18:04:22 +00:00
'../images/icons/v3/dropdown/dropdown-compact-light.svg',
2024-11-15 23:09:31 +00:00
variables.$color-gray-15
2023-05-04 18:04:22 +00:00
);
2021-06-01 20:45:43 +00:00
}
}
}