signal-desktop/stylesheets/components/LeftPaneSearchInput.scss

124 lines
2.5 KiB
SCSS
Raw Normal View History

2023-01-03 11:55:46 -08:00
// Copyright 2021 Signal Messenger, LLC
2021-11-01 13:43:02 -05:00
// SPDX-License-Identifier: AGPL-3.0-only
.LeftPaneSearchInput {
2022-02-14 12:57:11 -05:00
&__input--with-children.module-SearchInput__input--with-children {
2023-04-20 10:03:43 -07:00
padding-inline-start: 50px;
2021-11-01 13:43:02 -05:00
}
&__in-conversation-pill {
@include button-reset;
@include rounded-corners;
align-items: center;
bottom: 4px;
2021-11-01 13:43:02 -05:00
display: flex;
flex-direction: row;
2023-04-20 10:03:43 -07:00
inset-inline-start: 3px;
padding-block: 0;
padding-inline: 0 3px;
2021-11-01 13:43:02 -05:00
position: absolute;
top: 4px;
2021-11-01 13:43:02 -05:00
@include light-theme {
2022-01-27 17:12:26 -05:00
background-color: $color-gray-25;
2021-11-01 13:43:02 -05:00
}
@include dark-theme {
2022-01-27 17:12:26 -05:00
background-color: $color-gray-80;
2021-11-01 13:43:02 -05:00
}
&__x-button {
height: 16px;
2023-04-20 10:03:43 -07:00
margin-inline-start: 2px;
2021-11-01 13:43:02 -05:00
width: 16px;
@include light-theme {
2023-05-04 11:04:22 -07:00
@include color-svg('../images/icons/v3/x/x.svg', $color-gray-60);
2021-11-01 13:43:02 -05:00
}
@include dark-theme {
2023-05-04 11:04:22 -07:00
@include color-svg('../images/icons/v3/x/x.svg', $color-gray-25);
2021-11-01 13:43:02 -05:00
}
@include light-theme {
&:hover,
&:focus,
&:active {
background: $color-ultramarine;
}
}
@include dark-theme {
&:hover,
&:focus,
&:active {
background: $color-ultramarine-light;
}
}
}
}
.module-left-pane--width-narrow & {
2022-02-14 12:57:11 -05:00
&__container {
display: none;
}
2021-11-01 13:43:02 -05:00
}
2024-11-13 14:24:00 -06:00
&__FilterButton {
@include button-reset;
flex-shrink: 0;
padding: 4px;
margin-inline-end: 8px;
border-radius: 4px;
&:not(.LeftPaneSearchInput__FilterButton--pressed):hover {
@include light-theme {
background-color: $color-black-alpha-06;
}
@include dark-theme {
background-color: $color-white-alpha-06;
}
}
&:focus {
outline: none;
@include keyboard-mode {
box-shadow:
0 0 0 2px $color-white,
0 0 0 4px $color-ultramarine;
}
}
&::before {
content: '';
display: block;
width: 20px;
height: 20px;
@include light-theme {
@include color-svg(
'../images/icons/v3/filter/filter.svg',
$color-black
);
}
@include dark-theme {
@include color-svg(
'../images/icons/v3/filter/filter.svg',
$color-gray-15
);
}
}
&--pressed {
border-radius: 9999px;
background: $color-accent-blue;
&::before {
@include color-svg(
'../images/icons/v3/filter/filter.svg',
$color-white
);
}
}
}
&__FilterLabel {
@include sr-only;
}
2021-11-01 13:43:02 -05:00
}