48 lines
1.5 KiB
CSS
48 lines
1.5 KiB
CSS
/*
|
|
Copyright 2019 Adobe. All rights reserved.
|
|
This file is licensed to you 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 REPRESENTATIONS
|
|
OF ANY KIND, either express or implied. See the License for the specific language
|
|
governing permissions and limitations under the License.
|
|
*/
|
|
|
|
.spectrum-Search {
|
|
--spectrum-search-quiet-button-offset: calc(var(--spectrum-actionbutton-m-min-width) / 2 - var(--spectrum-icon-cross-small-width) / 2);
|
|
}
|
|
|
|
.spectrum-Search {
|
|
display: inline-block;
|
|
position: relative;
|
|
}
|
|
|
|
.spectrum-Search-clearButton {
|
|
position: absolute;
|
|
inset-inline-end: 0;
|
|
inset-block-start: 0;
|
|
}
|
|
|
|
.spectrum-Search-input {
|
|
/* Correct the odd appearance of input[type="search"] in Chrome and Safari.*/
|
|
/* Without this, it gets overridden by .spectrum-Textfield */
|
|
-webkit-appearance: none;
|
|
|
|
/* Correct the outline for input[type="search"] style in Safari. */
|
|
outline-offset: -2px;
|
|
|
|
/* Remove the inner padding and cancel buttons for input[type="search"] in Chrome and Safari on macOS. */
|
|
&::-webkit-search-cancel-button,
|
|
&::-webkit-search-decoration {
|
|
-webkit-appearance: none;
|
|
}
|
|
}
|
|
|
|
.spectrum-Search--quiet {
|
|
.spectrum-Search-clearButton {
|
|
transform: translateX(var(--spectrum-search-quiet-button-offset));
|
|
}
|
|
}
|