signal-desktop/stylesheets/components/SearchInput.scss
2022-01-27 16:12:26 -06:00

64 lines
1.1 KiB
SCSS

// Copyright 2021-2022 Signal Messenger, LLC
// SPDX-License-Identifier: AGPL-3.0-only
.module-SearchInput {
&__container {
border-radius: 8px;
border: none;
margin: 10px 16px;
padding: 5px 12px;
position: relative;
@include font-body-2;
@include light-theme {
background-color: $color-gray-15;
border: solid 1px $color-gray-15;
color: $color-gray-90;
}
@include dark-theme {
background-color: $color-gray-65;
border: solid 1px $color-gray-65;
color: $color-gray-05;
}
&:focus-within {
border: solid 1px $color-ultramarine;
outline: none;
}
}
&__icon {
@include color-svg('../images/icons/v2/search-16.svg', $color-gray-45);
cursor: text;
height: 16px;
left: 8px;
position: absolute;
top: 6px;
width: 16px;
}
&__input {
background: transparent;
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;
}
}
}