Rollup merge of #92610 - GuillaumeGomez:css-class-instead-of-inline-style, r=jsha
Create CSS class instead of using inline style for search results I saw this change in the update you proposed in https://github.com/rust-lang/rust/pull/92404. :) r? ``@jsha``
This commit is contained in:
commit
759b13eb6c
@ -545,6 +545,10 @@ nav.sub {
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.search-loading {
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
#results > table {
|
||||
width: 100%;
|
||||
table-layout: fixed;
|
||||
|
@ -289,8 +289,8 @@ function hideThemeButtonState() {
|
||||
var params = searchState.getQueryStringParams();
|
||||
if (params.search !== undefined) {
|
||||
var search = searchState.outputElement();
|
||||
search.innerHTML = "<h3 style=\"text-align: center;\">" +
|
||||
searchState.loadingText + "</h3>";
|
||||
search.innerHTML = "<h3 class=\"search-loading\">" +
|
||||
searchState.loadingText + "</h3>";
|
||||
searchState.showResults(search);
|
||||
loadSearch();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user