signal-desktop/stylesheets/components/SearchInput.scss

106 lines
1.9 KiB
SCSS
Raw Normal View History

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 {
2022-02-14 17:57:11 +00:00
margin: {
left: 16px;
right: 16px;
bottom: 8px;
2021-05-11 00:50:43 +00:00
}
2022-02-14 17:57:11 +00:00
position: relative;
2021-05-11 00:50:43 +00:00
}
&__icon {
height: 16px;
left: 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;
padding-left: 16px;
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;
padding-left: 30px;
padding-right: 5px;
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 {
padding-right: 30px;
}
}
&__cancel {
height: 18px;
position: absolute;
right: 8px;
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
}