Set desc class on the div instead of the span to simplify CSS
This commit is contained in:
parent
0415e0d882
commit
c2bd786734
2 changed files with 6 additions and 6 deletions
|
@ -763,7 +763,7 @@ a {
|
||||||
clear: both;
|
clear: both;
|
||||||
}
|
}
|
||||||
|
|
||||||
.search-results .desc {
|
.search-results .desc > span {
|
||||||
white-space: nowrap;
|
white-space: nowrap;
|
||||||
text-overflow: ellipsis;
|
text-overflow: ellipsis;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
|
@ -784,7 +784,7 @@ a {
|
||||||
flex-flow: row wrap;
|
flex-flow: row wrap;
|
||||||
}
|
}
|
||||||
|
|
||||||
.search-results .result-name, .search-results > a > div > div:nth-child(2), .search-results .result-description {
|
.search-results .result-name, .search-results div.desc, .search-results .result-description {
|
||||||
width: 50%;
|
width: 50%;
|
||||||
}
|
}
|
||||||
.search-results .result-name {
|
.search-results .result-name {
|
||||||
|
@ -1754,10 +1754,10 @@ details.undocumented[open] > summary::before {
|
||||||
border-bottom: 1px solid #aaa9;
|
border-bottom: 1px solid #aaa9;
|
||||||
padding: 5px 0px;
|
padding: 5px 0px;
|
||||||
}
|
}
|
||||||
.search-results .result-name, .search-results > a > div > div:nth-child(2), .search-results .result-description {
|
.search-results .result-name, .search-results div.desc, .search-results .result-description {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
}
|
}
|
||||||
.search-results > a > div > div:nth-child(2), .search-results .result-description {
|
.search-results div.desc, .search-results .result-description {
|
||||||
padding-left: 2em;
|
padding-left: 2em;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -994,8 +994,8 @@ window.initSearch = function(rawSearchIndex) {
|
||||||
("<span class=\"alias\"><b>" + item.alias + " </b></span><span " +
|
("<span class=\"alias\"><b>" + item.alias + " </b></span><span " +
|
||||||
"class=\"grey\"><i> - see </i></span>") : "") +
|
"class=\"grey\"><i> - see </i></span>") : "") +
|
||||||
item.displayPath + "<span class=\"" + type + "\">" +
|
item.displayPath + "<span class=\"" + type + "\">" +
|
||||||
name + "</span></div><div>" +
|
name + "</span></div><div class=\"desc\">" +
|
||||||
"<span class=\"desc\">" + item.desc +
|
"<span>" + item.desc +
|
||||||
" </span></div></div></a>";
|
" </span></div></div></a>";
|
||||||
});
|
});
|
||||||
output += "</div>";
|
output += "</div>";
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue