signal-desktop/stylesheets/components/Select.scss

58 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 {
border: 2px solid $color-gray-60;
border-radius: 2px;
2023-04-20 17:03:43 +00:00
/* stylelint-disable-next-line liberty/use-logical-spec */
2021-06-01 20:45:43 +00:00
border-right: 0;
border-top: 0;
content: ' ';
display: block;
height: 10px;
pointer-events: none;
position: absolute;
2023-04-20 17:03:43 +00:00
inset-inline-end: 15px;
2021-06-01 20:45:43 +00:00
top: 14px;
transform-origin: center;
transform: rotate(-45deg);
width: 10px;
@include dark-theme {
border-color: $color-gray-15;
}
}
}