mirror of
https://github.com/element-hq/element-web
synced 2024-11-24 02:05:45 +03:00
9c7d935aae
* Integrate compound design tokens The icons should not be included in this repo, and should live in the compound design token repo, but for simplicity sake at this phase of the integration they will be added here * Delete unused or incorrect - sass variables * Typography pass * Deprecate _font-weights.pcss and use Compound instead * lint fix * Fix snapshot * Fix typography pass feedback * Remove unwanted e2e test cypress tests should test functionality not visual output. And we should not test visual output by inspecting CSS properties * lintfix * Migration script for baseFontSize * Updates after design review * Update font scaling panel to use min/max size * Fix custom font * Fix font slider e2e test * Update custom font * Update new baseFontSizeV2 * Disambiguate heading props * Fix appearance test * change max font size * fix e2ee test * fix tests * test baseFontSize migration code * typescript strict * Migrate baseFontSize account setting * Change assertion for font size * Fix font size controller test
83 lines
2.6 KiB
Text
83 lines
2.6 KiB
Text
/*
|
|
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 {
|
|
/* use `min-height` rather than height, to allow room for the text to wrap if the window is narrow */
|
|
min-height: 56px;
|
|
display: flex;
|
|
align-items: center;
|
|
border-bottom: 1px solid $primary-hairline-color;
|
|
|
|
.mx_SearchBar_input {
|
|
--size-button-search: 37px; /* size of the search button inside `input` element */
|
|
|
|
/* border: 1px solid $input-border-color; */
|
|
/* font-size: $font-15px; */
|
|
flex: 1 1 0;
|
|
margin-left: 22px;
|
|
|
|
/* 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 */
|
|
}
|
|
}
|
|
|
|
.mx_SearchBar_searchButton {
|
|
cursor: pointer;
|
|
width: var(--size-button-search);
|
|
height: var(--size-button-search);
|
|
background-color: $accent;
|
|
mask: url("$(res)/img/feather-customised/search-input.svg");
|
|
mask-repeat: no-repeat;
|
|
mask-position: center;
|
|
}
|
|
|
|
.mx_SearchBar_buttons {
|
|
display: inherit; /* flex */
|
|
min-width: 0; /* have the close button displayed even on a very narrow timeline */
|
|
}
|
|
|
|
.mx_SearchBar_button {
|
|
border: 0;
|
|
margin: 0 0 0 22px;
|
|
padding: 5px;
|
|
font-size: $font-15px;
|
|
cursor: pointer;
|
|
color: $primary-content;
|
|
border-bottom: 2px solid $accent;
|
|
font-weight: var(--cpd-font-weight-semibold);
|
|
word-break: break-all; /* prevent the input area and cancel button from being overlapped by BaseCard */
|
|
}
|
|
|
|
.mx_SearchBar_unselected {
|
|
color: $input-darker-fg-color;
|
|
border-color: transparent;
|
|
}
|
|
|
|
.mx_SearchBar_cancel {
|
|
background-color: $alert;
|
|
mask: url("$(res)/img/cancel.svg");
|
|
mask-repeat: no-repeat;
|
|
mask-position: center;
|
|
mask-size: 14px;
|
|
padding: 9px;
|
|
margin: 0 12px 0 3px;
|
|
cursor: pointer;
|
|
}
|
|
}
|