2018-04-11 23:23:35 +00:00
|
|
|
/*
|
|
|
|
Copyright 2015, 2016 OpenMarket Ltd
|
|
|
|
|
|
|
|
Licensed under the Apache License, Version 2.0 (the "License");
|
|
|
|
you may not use this file except in compliance with the License.
|
|
|
|
You may obtain a copy of the License at
|
|
|
|
|
|
|
|
http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
|
|
|
|
Unless required by applicable law or agreed to in writing, software
|
|
|
|
distributed under the License is distributed on an "AS IS" BASIS,
|
|
|
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
|
|
See the License for the specific language governing permissions and
|
|
|
|
limitations under the License.
|
|
|
|
*/
|
|
|
|
|
|
|
|
.mx_SearchBar {
|
2023-05-15 11:58:59 +00:00
|
|
|
/* use `min-height` rather than height, to allow room for the text to wrap if the window is narrow */
|
|
|
|
min-height: 56px;
|
2018-04-11 23:23:35 +00:00
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
2019-01-15 15:20:04 +00:00
|
|
|
border-bottom: 1px solid $primary-hairline-color;
|
2018-04-11 23:23:35 +00:00
|
|
|
|
2019-01-15 15:20:04 +00:00
|
|
|
.mx_SearchBar_input {
|
2023-05-15 11:58:59 +00:00
|
|
|
--size-button-search: 37px; /* size of the search button inside `input` element */
|
|
|
|
|
2022-07-27 13:39:29 +00:00
|
|
|
/* border: 1px solid $input-border-color; */
|
|
|
|
/* font-size: $font-15px; */
|
2019-01-15 15:20:04 +00:00
|
|
|
flex: 1 1 0;
|
|
|
|
margin-left: 22px;
|
2023-05-15 11:58:59 +00:00
|
|
|
|
|
|
|
/* do not allow the input element to shrink below the width needed for the placeholder 'Search…'
|
|
|
|
and the search button */
|
|
|
|
min-width: calc(7em + var(--size-button-search));
|
|
|
|
|
|
|
|
input {
|
|
|
|
box-sizing: border-box; /* include padding value into width calculation */
|
|
|
|
}
|
2019-01-15 15:20:04 +00:00
|
|
|
}
|
2018-04-11 23:23:35 +00:00
|
|
|
|
2019-01-15 15:20:04 +00:00
|
|
|
.mx_SearchBar_searchButton {
|
|
|
|
cursor: pointer;
|
2023-05-15 11:58:59 +00:00
|
|
|
width: var(--size-button-search);
|
|
|
|
height: var(--size-button-search);
|
2021-11-11 13:37:29 +00:00
|
|
|
background-color: $accent;
|
2019-02-27 10:42:05 +00:00
|
|
|
mask: url("$(res)/img/feather-customised/search-input.svg");
|
2019-01-15 15:20:04 +00:00
|
|
|
mask-repeat: no-repeat;
|
|
|
|
mask-position: center;
|
|
|
|
}
|
2018-04-11 23:23:35 +00:00
|
|
|
|
2019-12-07 12:45:28 +00:00
|
|
|
.mx_SearchBar_buttons {
|
2023-05-15 11:58:59 +00:00
|
|
|
display: inherit; /* flex */
|
|
|
|
min-width: 0; /* have the close button displayed even on a very narrow timeline */
|
2019-12-07 12:45:28 +00:00
|
|
|
}
|
|
|
|
|
2019-01-15 15:20:04 +00:00
|
|
|
.mx_SearchBar_button {
|
|
|
|
border: 0;
|
|
|
|
margin: 0 0 0 22px;
|
|
|
|
padding: 5px;
|
2020-03-31 14:26:23 +00:00
|
|
|
font-size: $font-15px;
|
2019-01-15 15:20:04 +00:00
|
|
|
cursor: pointer;
|
2021-08-12 09:27:12 +00:00
|
|
|
color: $primary-content;
|
2021-11-11 13:37:29 +00:00
|
|
|
border-bottom: 2px solid $accent;
|
2023-04-21 14:16:00 +00:00
|
|
|
font-weight: var(--font-semi-bold);
|
2023-05-15 11:58:59 +00:00
|
|
|
word-break: break-all; /* prevent the input area and cancel button from being overlapped by BaseCard */
|
2019-01-15 15:20:04 +00:00
|
|
|
}
|
2018-04-11 23:23:35 +00:00
|
|
|
|
2019-01-15 15:20:04 +00:00
|
|
|
.mx_SearchBar_unselected {
|
|
|
|
color: $input-darker-fg-color;
|
|
|
|
border-color: transparent;
|
|
|
|
}
|
2018-04-11 23:23:35 +00:00
|
|
|
|
2019-01-15 15:20:04 +00:00
|
|
|
.mx_SearchBar_cancel {
|
2021-11-11 13:37:29 +00:00
|
|
|
background-color: $alert;
|
2018-12-31 23:22:40 +00:00
|
|
|
mask: url("$(res)/img/cancel.svg");
|
2019-01-15 15:20:04 +00:00
|
|
|
mask-repeat: no-repeat;
|
|
|
|
mask-position: center;
|
2019-01-16 10:14:19 +00:00
|
|
|
mask-size: 14px;
|
|
|
|
padding: 9px;
|
2019-01-15 15:20:04 +00:00
|
|
|
margin: 0 12px 0 3px;
|
|
|
|
cursor: pointer;
|
|
|
|
}
|
2018-04-11 23:23:35 +00:00
|
|
|
}
|