File tree 3 files changed +15
-20
lines changed
3 files changed +15
-20
lines changed Original file line number Diff line number Diff line change 796
796
display : inline-block;
797
797
}
798
798
799
- .result-name span .primitive ::after {
800
- content : ' (primitive type)' ;
801
- font-style : italic;
802
- }
803
-
804
- .result-name span .keyword ::after {
805
- content : ' (keyword)' ;
806
- font-style : italic;
807
- }
808
-
809
799
body .blur > : not (# help ) {
810
800
filter : blur (8px );
811
801
-webkit-filter : blur (8px );
Original file line number Diff line number Diff line change @@ -975,26 +975,32 @@ window.initSearch = function(rawSearchIndex) {
975
975
output = "<div class=\"search-results " + extraClass + "\">" ;
976
976
977
977
array . forEach ( function ( item ) {
978
- var name , type ;
979
-
980
- name = item . name ;
981
- type = itemTypes [ item . ty ] ;
982
-
983
978
if ( item . is_alias !== true ) {
984
979
if ( duplicates [ item . fullPath ] ) {
985
980
return ;
986
981
}
987
982
duplicates [ item . fullPath ] = true ;
988
983
}
984
+
985
+ var name = item . name ;
986
+ var type = itemTypes [ item . ty ] ;
987
+
989
988
length += 1 ;
990
989
990
+ var extra = "" ;
991
+ if ( type === "primitive" ) {
992
+ extra = " <i>(primitive type)</i>" ;
993
+ } else if ( type === "keyword" ) {
994
+ extra = " <i>(keyword)</i>" ;
995
+ }
996
+
991
997
output += "<a class=\"result-" + type + "\" href=\"" + item . href + "\">" +
992
998
"<div><div class=\"result-name\">" +
993
999
( item . is_alias === true ?
994
1000
( "<span class=\"alias\"><b>" + item . alias + " </b></span><span " +
995
1001
"class=\"grey\"><i> - see </i></span>" ) : "" ) +
996
1002
item . displayPath + "<span class=\"" + type + "\">" +
997
- name + "</span></div><div class=\"desc\">" +
1003
+ name + extra + "</span></div><div class=\"desc\">" +
998
1004
"<span>" + item . desc +
999
1005
" </span></div></div></a>" ;
1000
1006
} ) ;
Original file line number Diff line number Diff line change @@ -5,7 +5,6 @@ wait-for: "#titles"
5
5
// Note: The two next assert commands could be merged as one but readability would be
6
6
// less good.
7
7
//
8
- // Checking that the CSS is displaying " (keyword)"...
9
- assert: (".result-name span.keyword::after", {"content": '" (keyword)"'})
10
- // ... in italic.
11
- assert: (".result-name span.keyword::after", {"font-style": "italic"})
8
+ // Checking that the CSS is displaying " (keyword)" in italic.
9
+ assert: (".result-name span.keyword > i", "(keyword)")
10
+ assert: (".result-name span.keyword", "CookieMonster (keyword)")
You can’t perform that action at this time.
0 commit comments