2019-03-20 08:42:53 +00:00
|
|
|
.search {
|
|
|
|
position: relative;
|
2019-03-29 05:45:32 +00:00
|
|
|
min-width: 40px;
|
2023-12-15 09:51:39 +00:00
|
|
|
height: 36px;
|
|
|
|
|
|
|
|
input {
|
2024-03-02 07:51:55 +00:00
|
|
|
background-color: var(--material-background);
|
2023-12-15 09:51:39 +00:00
|
|
|
border-radius: 5px;
|
2024-03-02 07:51:55 +00:00
|
|
|
// Overwrite input style on Windows
|
|
|
|
border: var(--material-border-quinary) !important;
|
2023-12-15 09:51:39 +00:00
|
|
|
color: var(--fill-primary);
|
|
|
|
flex: 1 0;
|
2024-01-12 07:59:37 +00:00
|
|
|
margin: 6px 0px;
|
2023-12-15 09:51:39 +00:00
|
|
|
min-width: 40px;
|
|
|
|
padding: 3px 7px;
|
|
|
|
|
|
|
|
&::placeholder {
|
|
|
|
color: var(--fill-tertiary);
|
|
|
|
opacity: 1.0;
|
|
|
|
}
|
|
|
|
|
2024-03-02 07:51:55 +00:00
|
|
|
@media not (-moz-platform: windows) {
|
|
|
|
@include focus-ring;
|
2023-12-15 09:51:39 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.search-cancel-button {
|
|
|
|
position: absolute;
|
2024-01-10 16:22:18 +00:00
|
|
|
inset-inline-end: 0;
|
2023-12-15 09:51:39 +00:00
|
|
|
width: 14px;
|
|
|
|
height: 14px;
|
2024-01-10 16:22:18 +00:00
|
|
|
padding-inline: 5px 8px;
|
|
|
|
padding-block: 5px;
|
|
|
|
margin-inline: 0 4px;
|
|
|
|
margin-block: 6px;
|
2023-12-15 09:51:39 +00:00
|
|
|
cursor: default;
|
|
|
|
background: url(resource://gre-resources/searchfield-cancel.svg) no-repeat center/contain;
|
|
|
|
background-size: unset;
|
|
|
|
}
|
2019-03-20 08:42:53 +00:00
|
|
|
}
|
|
|
|
|
2023-12-15 09:51:39 +00:00
|
|
|
search-textbox {
|
|
|
|
appearance: none;
|
2023-10-18 12:16:08 +00:00
|
|
|
background: var(--material-background);
|
|
|
|
border-radius: 5px;
|
|
|
|
border: var(--material-border-quinary);
|
|
|
|
color: var(--fill-primary);
|
2024-01-10 16:22:18 +00:00
|
|
|
padding: 0;
|
|
|
|
padding-inline-end: 6px;
|
2023-10-18 12:16:08 +00:00
|
|
|
|
|
|
|
&::placeholder {
|
|
|
|
color: var(--fill-tertiary);
|
|
|
|
opacity: 1.0;
|
|
|
|
}
|
|
|
|
|
2024-03-02 07:51:55 +00:00
|
|
|
@media not (-moz-platform: windows) {
|
|
|
|
@include focus-ring(false, focus);
|
2023-10-18 12:16:08 +00:00
|
|
|
}
|
2019-03-20 08:42:53 +00:00
|
|
|
}
|
|
|
|
|
2023-12-15 09:51:39 +00:00
|
|
|
:is(search-textbox)::part(search-sign),
|
|
|
|
:is(search-textbox)::part(search-icon) {
|
|
|
|
@include svgicon-menu("magnifier", "universal", "16");
|
|
|
|
color: var(--fill-secondary);
|
2024-01-10 16:34:36 +00:00
|
|
|
// right: 2px padding + 8px dropmarker width + 4px padding + 6px padding
|
|
|
|
// Use explicit left/right padding here because this element is flipped in RTL (see below)
|
|
|
|
padding: 6px 4px 6px 6px;
|
2024-01-09 19:11:25 +00:00
|
|
|
margin: 0px;
|
|
|
|
width: auto; // override fx115 default width
|
|
|
|
display: block; // override fx115 display:none on macOS
|
2023-12-15 09:51:39 +00:00
|
|
|
}
|
2024-01-10 16:34:36 +00:00
|
|
|
|
|
|
|
:is(search-textbox):-moz-locale-dir(rtl)::part(search-sign),
|
|
|
|
:is(search-textbox):-moz-locale-dir(rtl)::part(search-icon) {
|
|
|
|
transform: scaleX(-1);
|
|
|
|
}
|