2023-01-03 19:55:46 +00:00
|
|
|
// Copyright 2021 Signal Messenger, LLC
|
2021-05-11 00:50:43 +00:00
|
|
|
// SPDX-License-Identifier: AGPL-3.0-only
|
|
|
|
|
|
|
|
.module-SearchInput {
|
|
|
|
&__container {
|
2023-04-20 17:03:43 +00:00
|
|
|
margin-inline: 16px;
|
|
|
|
margin-bottom: 8px;
|
2022-02-14 17:57:11 +00:00
|
|
|
position: relative;
|
2021-05-11 00:50:43 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
&__icon {
|
|
|
|
height: 16px;
|
2023-04-20 17:03:43 +00:00
|
|
|
inset-inline-start: 8px;
|
2022-02-14 17:57:11 +00:00
|
|
|
pointer-events: none;
|
2021-05-11 00:50:43 +00:00
|
|
|
position: absolute;
|
|
|
|
top: 6px;
|
|
|
|
width: 16px;
|
2022-02-14 17:57:11 +00:00
|
|
|
|
|
|
|
@include light-theme {
|
|
|
|
@include color-svg('../images/icons/v2/search-16.svg', $color-gray-45);
|
|
|
|
}
|
|
|
|
@include dark-theme {
|
|
|
|
@include color-svg('../images/icons/v2/search-16.svg', $color-gray-25);
|
|
|
|
}
|
2021-05-11 00:50:43 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
&__input {
|
2021-11-12 01:17:29 +00:00
|
|
|
background: transparent;
|
2021-05-11 00:50:43 +00:00
|
|
|
border: none;
|
2023-04-20 17:03:43 +00:00
|
|
|
padding-inline-start: 16px;
|
2021-05-11 00:50:43 +00:00
|
|
|
width: 100%;
|
|
|
|
|
|
|
|
&:placeholder {
|
|
|
|
color: $color-gray-45;
|
|
|
|
}
|
|
|
|
|
|
|
|
@include light-theme {
|
|
|
|
color: $color-black;
|
|
|
|
}
|
|
|
|
|
|
|
|
@include dark-theme {
|
|
|
|
color: $color-gray-05;
|
|
|
|
}
|
|
|
|
|
|
|
|
&:focus {
|
|
|
|
outline: none;
|
|
|
|
}
|
|
|
|
}
|
2022-02-14 17:57:11 +00:00
|
|
|
|
|
|
|
&__input {
|
|
|
|
@include font-body-2;
|
|
|
|
border: solid 1px transparent;
|
|
|
|
border-radius: 8px;
|
|
|
|
height: 28px;
|
2023-04-20 17:03:43 +00:00
|
|
|
padding-inline: 30px 5px;
|
2022-02-14 17:57:11 +00:00
|
|
|
width: 100%;
|
|
|
|
|
|
|
|
@include light-theme {
|
|
|
|
background-color: $color-black-alpha-08;
|
|
|
|
color: $color-gray-90;
|
|
|
|
|
|
|
|
&:placeholder {
|
|
|
|
color: $color-gray-45;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
@include dark-theme {
|
|
|
|
background-color: $color-white-alpha-12;
|
|
|
|
color: $color-gray-05;
|
|
|
|
|
|
|
|
&:placeholder {
|
|
|
|
color: $color-gray-25;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&:focus {
|
2022-06-15 17:53:08 +00:00
|
|
|
@include keyboard-mode {
|
|
|
|
border: solid 1px $color-ultramarine;
|
|
|
|
}
|
2022-02-14 17:57:11 +00:00
|
|
|
outline: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
&--with-text {
|
2023-04-20 17:03:43 +00:00
|
|
|
padding-inline-end: 30px;
|
2022-02-14 17:57:11 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&__cancel {
|
|
|
|
height: 18px;
|
|
|
|
position: absolute;
|
2023-04-20 17:03:43 +00:00
|
|
|
inset-inline-end: 8px;
|
2022-02-14 17:57:11 +00:00
|
|
|
top: 5px;
|
|
|
|
width: 18px;
|
|
|
|
|
|
|
|
@include light-theme {
|
|
|
|
@include color-svg('../images/icons/v2/x-24.svg', $color-gray-60);
|
|
|
|
}
|
|
|
|
@include dark-theme {
|
|
|
|
@include color-svg('../images/icons/v2/x-24.svg', $color-gray-25);
|
|
|
|
}
|
|
|
|
}
|
2021-05-11 00:50:43 +00:00
|
|
|
}
|