mirror of
https://github.com/rust-lang/rust.git
synced 2025-05-14 02:49:40 +00:00
Rollup merge of #85631 - GuillaumeGomez:move-keywrod-primitive-css-dom, r=jsha
Move keyword primitive css dom Fixes #85569. r? ``@jsha``
This commit is contained in:
commit
0f3c98ad51
@ -796,16 +796,6 @@ a {
|
|||||||
display: inline-block;
|
display: inline-block;
|
||||||
}
|
}
|
||||||
|
|
||||||
.result-name span.primitive::after {
|
|
||||||
content: ' (primitive type)';
|
|
||||||
font-style: italic;
|
|
||||||
}
|
|
||||||
|
|
||||||
.result-name span.keyword::after {
|
|
||||||
content: ' (keyword)';
|
|
||||||
font-style: italic;
|
|
||||||
}
|
|
||||||
|
|
||||||
body.blur > :not(#help) {
|
body.blur > :not(#help) {
|
||||||
filter: blur(8px);
|
filter: blur(8px);
|
||||||
-webkit-filter: blur(8px);
|
-webkit-filter: blur(8px);
|
||||||
|
@ -975,26 +975,32 @@ window.initSearch = function(rawSearchIndex) {
|
|||||||
output = "<div class=\"search-results " + extraClass + "\">";
|
output = "<div class=\"search-results " + extraClass + "\">";
|
||||||
|
|
||||||
array.forEach(function(item) {
|
array.forEach(function(item) {
|
||||||
var name, type;
|
|
||||||
|
|
||||||
name = item.name;
|
|
||||||
type = itemTypes[item.ty];
|
|
||||||
|
|
||||||
if (item.is_alias !== true) {
|
if (item.is_alias !== true) {
|
||||||
if (duplicates[item.fullPath]) {
|
if (duplicates[item.fullPath]) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
duplicates[item.fullPath] = true;
|
duplicates[item.fullPath] = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
var name = item.name;
|
||||||
|
var type = itemTypes[item.ty];
|
||||||
|
|
||||||
length += 1;
|
length += 1;
|
||||||
|
|
||||||
|
var extra = "";
|
||||||
|
if (type === "primitive") {
|
||||||
|
extra = " <i>(primitive type)</i>";
|
||||||
|
} else if (type === "keyword") {
|
||||||
|
extra = " <i>(keyword)</i>";
|
||||||
|
}
|
||||||
|
|
||||||
output += "<a class=\"result-" + type + "\" href=\"" + item.href + "\">" +
|
output += "<a class=\"result-" + type + "\" href=\"" + item.href + "\">" +
|
||||||
"<div><div class=\"result-name\">" +
|
"<div><div class=\"result-name\">" +
|
||||||
(item.is_alias === true ?
|
(item.is_alias === true ?
|
||||||
("<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 class=\"desc\">" +
|
name + extra + "</span></div><div class=\"desc\">" +
|
||||||
"<span>" + item.desc +
|
"<span>" + item.desc +
|
||||||
" </span></div></div></a>";
|
" </span></div></div></a>";
|
||||||
});
|
});
|
||||||
|
@ -5,7 +5,6 @@ wait-for: "#titles"
|
|||||||
// Note: The two next assert commands could be merged as one but readability would be
|
// Note: The two next assert commands could be merged as one but readability would be
|
||||||
// less good.
|
// less good.
|
||||||
//
|
//
|
||||||
// Checking that the CSS is displaying " (keyword)"...
|
// Checking that the CSS is displaying " (keyword)" in italic.
|
||||||
assert: (".result-name span.keyword::after", {"content": '" (keyword)"'})
|
assert: (".result-name span.keyword > i", "(keyword)")
|
||||||
// ... in italic.
|
assert: (".result-name span.keyword", "CookieMonster (keyword)")
|
||||||
assert: (".result-name span.keyword::after", {"font-style": "italic"})
|
|
||||||
|
Loading…
Reference in New Issue
Block a user