blob: e6d6d3a6833c6319dcf0b8745ef2aa0fe828ed71 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
|
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at <http://mozilla.org/MPL/2.0/>. */
.search-outline {
border: 1px solid var(--theme-toolbar-background);
border-bottom: 1px solid var(--theme-splitter-color);
transition: border-color 200ms ease-in-out;
}
.search-outline:focus-within {
border-color: var(--blue-50);
}
.search-field {
position: relative;
display: flex;
align-items: center;
flex-shrink: 0;
min-height: 24px;
width: 100%;
background-color: var(--theme-toolbar-background);
}
.search-field .img.search {
--icon-mask-size: 12px;
--icon-inset-inline-start: 6px;
position: absolute;
z-index: 1;
top: calc(50% - 8px);
mask-size: var(--icon-mask-size);
background-color: var(--theme-icon-dimmed-color);
pointer-events: none;
}
.search-field.big .img.search {
--icon-mask-size: 16px;
--icon-inset-inline-start: 12px;
}
[dir="ltr"] .search-field .img.search {
left: var(--icon-inset-inline-start);
}
[dir="rtl"] .search-field .img.search {
right: var(--icon-inset-inline-start);
}
.search-field .img.loader {
width: 24px;
height: 24px;
margin-inline-end: 4px;
}
.search-field input {
align-self: stretch;
flex-grow: 1;
height: 24px;
width: 40px;
border: none;
padding: 4px;
padding-inline-start: 28px;
line-height: 16px;
font-family: inherit;
font-size: inherit;
color: var(--theme-body-color);
background-color: transparent;
}
.search-field.big input {
height: 40px;
padding-top: 10px;
padding-bottom: 10px;
padding-inline-start: 40px;
font-size: 14px;
line-height: 20px;
}
.search-field input:focus {
outline: none;
}
.search-field input::placeholder {
color: var(--theme-text-color-alt);
opacity: 1;
}
.search-field-summary {
align-self: center;
padding: 2px 4px;
white-space: nowrap;
text-align: center;
user-select: none;
color: var(--theme-text-color-alt);
/* Avoid layout jumps when we increment the result count quickly. With tabular
numbers, layout will only jump between 9 and 10, 99 and 100, etc. */
font-variant-numeric: tabular-nums;
}
.search-field.big .search-field-summary {
margin-inline-end: 4px;
}
.search-field .search-nav-buttons {
display: flex;
user-select: none;
}
.search-field .search-nav-buttons .nav-btn {
display: flex;
justify-content: center;
align-items: center;
height: 100%;
padding: 4px;
background: transparent;
}
.search-field .search-nav-buttons .nav-btn:hover {
background-color: var(--theme-toolbar-background-hover);
}
.search-field .close-btn {
margin-inline-end: 4px;
}
.search-field.big .close-btn {
margin-inline-end: 8px;
}
.search-field .close-btn::-moz-focus-inner {
border: none;
}
|