Skip to content

Commit 29f3d23

Browse files
committed
Style the search box to a single line
1 parent 78b11f5 commit 29f3d23

File tree

1 file changed

+27
-2
lines changed

1 file changed

+27
-2
lines changed

doc/_static/mpl.css

Lines changed: 27 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -260,11 +260,36 @@ div.sphinxsidebar ul ul {
260260
margin-left: 20px;
261261
}
262262

263-
#searchbox input[type=text] {
264-
width: 100%;
263+
div.sphinxsidebar #searchbox input {
264+
border: 1px solid #aaa;
265+
padding: 0.25em;
265266
box-sizing: border-box;
266267
}
267268

269+
div.sphinxsidebar #searchbox form {
270+
display: inline-block;
271+
width: 100%
272+
}
273+
274+
div.sphinxsidebar #searchbox input[type="text"] {
275+
float: left;
276+
width: 80%;
277+
}
278+
279+
div.sphinxsidebar #searchbox input[type="submit"] {
280+
float: left;
281+
width: 20%;
282+
border-left: none;
283+
}
284+
285+
div.sphinxsidebar #searchbox input[type="submit"]:hover {
286+
background: #ddd;
287+
}
288+
289+
div.sphinxsidebar .searchformwrapper {
290+
display: block;
291+
}
292+
268293
p {
269294
margin: 0.8em 0 0.8em 0;
270295
}

0 commit comments

Comments
 (0)