xref: /aosp_15_r20/external/tinyxml2/docs/search/search.css (revision 7485b22521f577cf944e5687361548d8993d8d2c)
1*7485b225SElliott Hughes/*---------------- Search Box positioning */
2*7485b225SElliott Hughes
3*7485b225SElliott Hughes#main-menu > li:last-child {
4*7485b225SElliott Hughes    /* This <li> object is the parent of the search bar */
5*7485b225SElliott Hughes    display: flex;
6*7485b225SElliott Hughes    justify-content: center;
7*7485b225SElliott Hughes    align-items: center;
8*7485b225SElliott Hughes    height: 36px;
9*7485b225SElliott Hughes    margin-right: 1em;
10*7485b225SElliott Hughes}
11*7485b225SElliott Hughes
12*7485b225SElliott Hughes/*---------------- Search box styling */
13*7485b225SElliott Hughes
14*7485b225SElliott Hughes.SRPage * {
15*7485b225SElliott Hughes    font-weight: normal;
16*7485b225SElliott Hughes    line-height: normal;
17*7485b225SElliott Hughes}
18*7485b225SElliott Hughes
19*7485b225SElliott Hughesdark-mode-toggle {
20*7485b225SElliott Hughes    margin-left: 5px;
21*7485b225SElliott Hughes    display: flex;
22*7485b225SElliott Hughes    float: right;
23*7485b225SElliott Hughes}
24*7485b225SElliott Hughes
25*7485b225SElliott Hughes#MSearchBox {
26*7485b225SElliott Hughes    display: inline-block;
27*7485b225SElliott Hughes    white-space : nowrap;
28*7485b225SElliott Hughes    background: var(--search-background-color);
29*7485b225SElliott Hughes    border-radius: 0.65em;
30*7485b225SElliott Hughes    box-shadow: var(--search-box-shadow);
31*7485b225SElliott Hughes    z-index: 102;
32*7485b225SElliott Hughes}
33*7485b225SElliott Hughes
34*7485b225SElliott Hughes#MSearchBox .left {
35*7485b225SElliott Hughes    display: inline-block;
36*7485b225SElliott Hughes    vertical-align: middle;
37*7485b225SElliott Hughes    height: 1.4em;
38*7485b225SElliott Hughes}
39*7485b225SElliott Hughes
40*7485b225SElliott Hughes#MSearchSelect {
41*7485b225SElliott Hughes    display: inline-block;
42*7485b225SElliott Hughes    vertical-align: middle;
43*7485b225SElliott Hughes    width: 20px;
44*7485b225SElliott Hughes    height: 19px;
45*7485b225SElliott Hughes    background-image: var(--search-magnification-select-image);
46*7485b225SElliott Hughes    margin: 0 0 0 0.3em;
47*7485b225SElliott Hughes    padding: 0;
48*7485b225SElliott Hughes}
49*7485b225SElliott Hughes
50*7485b225SElliott Hughes#MSearchSelectExt {
51*7485b225SElliott Hughes    display: inline-block;
52*7485b225SElliott Hughes    vertical-align: middle;
53*7485b225SElliott Hughes    width: 10px;
54*7485b225SElliott Hughes    height: 19px;
55*7485b225SElliott Hughes    background-image: var(--search-magnification-image);
56*7485b225SElliott Hughes    margin: 0 0 0 0.5em;
57*7485b225SElliott Hughes    padding: 0;
58*7485b225SElliott Hughes}
59*7485b225SElliott Hughes
60*7485b225SElliott Hughes
61*7485b225SElliott Hughes#MSearchField {
62*7485b225SElliott Hughes    display: inline-block;
63*7485b225SElliott Hughes    vertical-align: middle;
64*7485b225SElliott Hughes    width: 7.5em;
65*7485b225SElliott Hughes    height: 19px;
66*7485b225SElliott Hughes    margin: 0 0.15em;
67*7485b225SElliott Hughes    padding: 0;
68*7485b225SElliott Hughes    line-height: 1em;
69*7485b225SElliott Hughes    border:none;
70*7485b225SElliott Hughes    color: var(--search-foreground-color);
71*7485b225SElliott Hughes    outline: none;
72*7485b225SElliott Hughes    font-family: var(--font-family-search);
73*7485b225SElliott Hughes    -webkit-border-radius: 0px;
74*7485b225SElliott Hughes    border-radius: 0px;
75*7485b225SElliott Hughes    background: none;
76*7485b225SElliott Hughes}
77*7485b225SElliott Hughes
78*7485b225SElliott Hughes@media(hover: none) {
79*7485b225SElliott Hughes    /* to avoid zooming on iOS */
80*7485b225SElliott Hughes    #MSearchField {
81*7485b225SElliott Hughes        font-size: 16px;
82*7485b225SElliott Hughes    }
83*7485b225SElliott Hughes}
84*7485b225SElliott Hughes
85*7485b225SElliott Hughes#MSearchBox .right {
86*7485b225SElliott Hughes    display: inline-block;
87*7485b225SElliott Hughes    vertical-align: middle;
88*7485b225SElliott Hughes    width: 1.4em;
89*7485b225SElliott Hughes    height: 1.4em;
90*7485b225SElliott Hughes}
91*7485b225SElliott Hughes
92*7485b225SElliott Hughes#MSearchClose {
93*7485b225SElliott Hughes    display: none;
94*7485b225SElliott Hughes    font-size: inherit;
95*7485b225SElliott Hughes    background : none;
96*7485b225SElliott Hughes    border: none;
97*7485b225SElliott Hughes    margin: 0;
98*7485b225SElliott Hughes    padding: 0;
99*7485b225SElliott Hughes    outline: none;
100*7485b225SElliott Hughes
101*7485b225SElliott Hughes}
102*7485b225SElliott Hughes
103*7485b225SElliott Hughes#MSearchCloseImg {
104*7485b225SElliott Hughes    padding: 0.3em;
105*7485b225SElliott Hughes    margin: 0;
106*7485b225SElliott Hughes}
107*7485b225SElliott Hughes
108*7485b225SElliott Hughes.MSearchBoxActive #MSearchField {
109*7485b225SElliott Hughes    color: var(--search-active-color);
110*7485b225SElliott Hughes}
111*7485b225SElliott Hughes
112*7485b225SElliott Hughes
113*7485b225SElliott Hughes
114*7485b225SElliott Hughes/*---------------- Search filter selection */
115*7485b225SElliott Hughes
116*7485b225SElliott Hughes#MSearchSelectWindow {
117*7485b225SElliott Hughes    display: none;
118*7485b225SElliott Hughes    position: absolute;
119*7485b225SElliott Hughes    left: 0; top: 0;
120*7485b225SElliott Hughes    border: 1px solid var(--search-filter-border-color);
121*7485b225SElliott Hughes    background-color: var(--search-filter-background-color);
122*7485b225SElliott Hughes    z-index: 10001;
123*7485b225SElliott Hughes    padding-top: 4px;
124*7485b225SElliott Hughes    padding-bottom: 4px;
125*7485b225SElliott Hughes    -moz-border-radius: 4px;
126*7485b225SElliott Hughes    -webkit-border-top-left-radius: 4px;
127*7485b225SElliott Hughes    -webkit-border-top-right-radius: 4px;
128*7485b225SElliott Hughes    -webkit-border-bottom-left-radius: 4px;
129*7485b225SElliott Hughes    -webkit-border-bottom-right-radius: 4px;
130*7485b225SElliott Hughes    -webkit-box-shadow: 5px 5px 5px rgba(0, 0, 0, 0.15);
131*7485b225SElliott Hughes}
132*7485b225SElliott Hughes
133*7485b225SElliott Hughes.SelectItem {
134*7485b225SElliott Hughes    font: 8pt var(--font-family-search);
135*7485b225SElliott Hughes    padding-left:  2px;
136*7485b225SElliott Hughes    padding-right: 12px;
137*7485b225SElliott Hughes    border: 0px;
138*7485b225SElliott Hughes}
139*7485b225SElliott Hughes
140*7485b225SElliott Hughesspan.SelectionMark {
141*7485b225SElliott Hughes    margin-right: 4px;
142*7485b225SElliott Hughes    font-family: var(--font-family-monospace);
143*7485b225SElliott Hughes    outline-style: none;
144*7485b225SElliott Hughes    text-decoration: none;
145*7485b225SElliott Hughes}
146*7485b225SElliott Hughes
147*7485b225SElliott Hughesa.SelectItem {
148*7485b225SElliott Hughes    display: block;
149*7485b225SElliott Hughes    outline-style: none;
150*7485b225SElliott Hughes    color: var(--search-filter-foreground-color);
151*7485b225SElliott Hughes    text-decoration: none;
152*7485b225SElliott Hughes    padding-left:   6px;
153*7485b225SElliott Hughes    padding-right: 12px;
154*7485b225SElliott Hughes}
155*7485b225SElliott Hughes
156*7485b225SElliott Hughesa.SelectItem:focus,
157*7485b225SElliott Hughesa.SelectItem:active {
158*7485b225SElliott Hughes    color: var(--search-filter-foreground-color);
159*7485b225SElliott Hughes    outline-style: none;
160*7485b225SElliott Hughes    text-decoration: none;
161*7485b225SElliott Hughes}
162*7485b225SElliott Hughes
163*7485b225SElliott Hughesa.SelectItem:hover {
164*7485b225SElliott Hughes    color: var(--search-filter-highlight-text-color);
165*7485b225SElliott Hughes    background-color: var(--search-filter-highlight-bg-color);
166*7485b225SElliott Hughes    outline-style: none;
167*7485b225SElliott Hughes    text-decoration: none;
168*7485b225SElliott Hughes    cursor: pointer;
169*7485b225SElliott Hughes    display: block;
170*7485b225SElliott Hughes}
171*7485b225SElliott Hughes
172*7485b225SElliott Hughes/*---------------- Search results window */
173*7485b225SElliott Hughes
174*7485b225SElliott Hughesiframe#MSearchResults {
175*7485b225SElliott Hughes    /*width: 60ex;*/
176*7485b225SElliott Hughes    height: 15em;
177*7485b225SElliott Hughes}
178*7485b225SElliott Hughes
179*7485b225SElliott Hughes#MSearchResultsWindow {
180*7485b225SElliott Hughes    display: none;
181*7485b225SElliott Hughes    position: absolute;
182*7485b225SElliott Hughes    left: 0; top: 0;
183*7485b225SElliott Hughes    border: 1px solid var(--search-results-border-color);
184*7485b225SElliott Hughes    background-color: var(--search-results-background-color);
185*7485b225SElliott Hughes    z-index:10000;
186*7485b225SElliott Hughes    width: 300px;
187*7485b225SElliott Hughes    height: 400px;
188*7485b225SElliott Hughes    overflow: auto;
189*7485b225SElliott Hughes}
190*7485b225SElliott Hughes
191*7485b225SElliott Hughes/* ----------------------------------- */
192*7485b225SElliott Hughes
193*7485b225SElliott Hughes
194*7485b225SElliott Hughes#SRIndex {
195*7485b225SElliott Hughes    clear:both;
196*7485b225SElliott Hughes}
197*7485b225SElliott Hughes
198*7485b225SElliott Hughes.SREntry {
199*7485b225SElliott Hughes    font-size: 10pt;
200*7485b225SElliott Hughes    padding-left: 1ex;
201*7485b225SElliott Hughes}
202*7485b225SElliott Hughes
203*7485b225SElliott Hughes.SRPage .SREntry {
204*7485b225SElliott Hughes    font-size: 8pt;
205*7485b225SElliott Hughes    padding: 1px 5px;
206*7485b225SElliott Hughes}
207*7485b225SElliott Hughes
208*7485b225SElliott Hughesdiv.SRPage {
209*7485b225SElliott Hughes    margin: 5px 2px;
210*7485b225SElliott Hughes    background-color: var(--search-results-background-color);
211*7485b225SElliott Hughes}
212*7485b225SElliott Hughes
213*7485b225SElliott Hughes.SRChildren {
214*7485b225SElliott Hughes    padding-left: 3ex; padding-bottom: .5em
215*7485b225SElliott Hughes}
216*7485b225SElliott Hughes
217*7485b225SElliott Hughes.SRPage .SRChildren {
218*7485b225SElliott Hughes    display: none;
219*7485b225SElliott Hughes}
220*7485b225SElliott Hughes
221*7485b225SElliott Hughes.SRSymbol {
222*7485b225SElliott Hughes    font-weight: bold;
223*7485b225SElliott Hughes    color: var(--search-results-foreground-color);
224*7485b225SElliott Hughes    font-family: var(--font-family-search);
225*7485b225SElliott Hughes    text-decoration: none;
226*7485b225SElliott Hughes    outline: none;
227*7485b225SElliott Hughes}
228*7485b225SElliott Hughes
229*7485b225SElliott Hughesa.SRScope {
230*7485b225SElliott Hughes    display: block;
231*7485b225SElliott Hughes    color: var(--search-results-foreground-color);
232*7485b225SElliott Hughes    font-family: var(--font-family-search);
233*7485b225SElliott Hughes    font-size: 8pt;
234*7485b225SElliott Hughes    text-decoration: none;
235*7485b225SElliott Hughes    outline: none;
236*7485b225SElliott Hughes}
237*7485b225SElliott Hughes
238*7485b225SElliott Hughesa.SRSymbol:focus, a.SRSymbol:active,
239*7485b225SElliott Hughesa.SRScope:focus, a.SRScope:active {
240*7485b225SElliott Hughes    text-decoration: underline;
241*7485b225SElliott Hughes}
242*7485b225SElliott Hughes
243*7485b225SElliott Hughesspan.SRScope {
244*7485b225SElliott Hughes    padding-left: 4px;
245*7485b225SElliott Hughes    font-family: var(--font-family-search);
246*7485b225SElliott Hughes}
247*7485b225SElliott Hughes
248*7485b225SElliott Hughes.SRPage .SRStatus {
249*7485b225SElliott Hughes    padding: 2px 5px;
250*7485b225SElliott Hughes    font-size: 8pt;
251*7485b225SElliott Hughes    font-style: italic;
252*7485b225SElliott Hughes    font-family: var(--font-family-search);
253*7485b225SElliott Hughes}
254*7485b225SElliott Hughes
255*7485b225SElliott Hughes.SRResult {
256*7485b225SElliott Hughes    display: none;
257*7485b225SElliott Hughes}
258*7485b225SElliott Hughes
259*7485b225SElliott Hughesdiv.searchresults {
260*7485b225SElliott Hughes    margin-left: 10px;
261*7485b225SElliott Hughes    margin-right: 10px;
262*7485b225SElliott Hughes}
263*7485b225SElliott Hughes
264*7485b225SElliott Hughes/*---------------- External search page results */
265*7485b225SElliott Hughes
266*7485b225SElliott Hughes.pages b {
267*7485b225SElliott Hughes   color: white;
268*7485b225SElliott Hughes   padding: 5px 5px 3px 5px;
269*7485b225SElliott Hughes   background-image: var(--nav-gradient-active-image-parent);
270*7485b225SElliott Hughes   background-repeat: repeat-x;
271*7485b225SElliott Hughes   text-shadow: 0 1px 1px #000000;
272*7485b225SElliott Hughes}
273*7485b225SElliott Hughes
274*7485b225SElliott Hughes.pages {
275*7485b225SElliott Hughes    line-height: 17px;
276*7485b225SElliott Hughes    margin-left: 4px;
277*7485b225SElliott Hughes    text-decoration: none;
278*7485b225SElliott Hughes}
279*7485b225SElliott Hughes
280*7485b225SElliott Hughes.hl {
281*7485b225SElliott Hughes    font-weight: bold;
282*7485b225SElliott Hughes}
283*7485b225SElliott Hughes
284*7485b225SElliott Hughes#searchresults {
285*7485b225SElliott Hughes    margin-bottom: 20px;
286*7485b225SElliott Hughes}
287*7485b225SElliott Hughes
288*7485b225SElliott Hughes.searchpages {
289*7485b225SElliott Hughes    margin-top: 10px;
290*7485b225SElliott Hughes}
291*7485b225SElliott Hughes
292