signal-desktop/stylesheets/components/LeftPaneSearchInput.scss

137 lines
2.9 KiB
SCSS
Raw Normal View History

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