Skip to content
This repository was archived by the owner on Apr 8, 2025. It is now read-only.

Commit 740b73e

Browse files
committed
CSS: clean up some classes
There were some values hard-coded in the html attributes, but we already were setting them in our css. Also, search__backdrop was basically the same as search__outer__wrapper
1 parent 1d2df4d commit 740b73e

File tree

5 files changed

+9
-21
lines changed

5 files changed

+9
-21
lines changed

sphinx_search/static/css/rtd_sphinx_search.css

+1-13
Original file line numberDiff line numberDiff line change
@@ -2,26 +2,14 @@
22
position: fixed;
33
top: 0;
44
left: 0;
5-
width: 100%;
6-
height: 100%;
7-
z-index: 700;
8-
}
9-
10-
/* Backdrop */
11-
12-
.search__backdrop {
13-
/* Positioning */
14-
position: fixed;
15-
top: 0;
16-
left: 0;
17-
z-index: 500;
185

196
/* Display and box model */
207
width: 100%;
218
height: 100%;
229
display: none;
2310

2411
/* Other */
12+
z-index: 700;
2513
background-color: rgba(0, 0, 0, 0.502);
2614
}
2715

sphinx_search/static/css/rtd_sphinx_search.min.css

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

sphinx_search/static/js/rtd_sphinx_search.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -540,15 +540,15 @@ const fetchAndGenerateResults = (search_url, projectName) => {
540540
*/
541541
const generateAndReturnInitialHtml = () => {
542542
let initialHtml =
543-
'<div class="search__outer__wrapper search__backdrop"> \
543+
'<div class="search__outer__wrapper"> \
544544
<div class="search__outer"> \
545545
<div class="search__cross" title="Close"> \
546546
<!--?xml version="1.0" encoding="UTF-8"?--> \
547-
<svg class="search__cross__img" width="15px" height="15px" enable-background="new 0 0 612 612" version="1.1" viewBox="0 0 612 612" xml:space="preserve" xmlns="http://www.w3.org/2000/svg"> \
547+
<svg class="search__cross__img" enable-background="new 0 0 612 612" version="1.1" viewBox="0 0 612 612" xml:space="preserve" xmlns="http://www.w3.org/2000/svg"> \
548548
<polygon points="612 36.004 576.52 0.603 306 270.61 35.478 0.603 0 36.004 270.52 306.01 0 576 35.478 611.4 306 341.41 576.52 611.4 612 576 341.46 306.01"></polygon> \
549549
</svg> \
550550
</div> \
551-
<input class="search__outer__input" placeholder="Search ..."> \
551+
<input class="search__outer__input" placeholder="Search..."> \
552552
<span class="bar"></span> \
553553
</div> \
554554
<div class="rtd__search__credits"> \

0 commit comments

Comments
 (0)