feat(aio): display API icons in search results

Add API symbols for `let` and `var` so don’t have to translate those types into `const`
Also replace <hr> in search results HTML with ellipses icon.
This commit is contained in:
Ward Bell
2017-04-30 20:42:08 -07:00
committed by Matias Niemelä
parent 0c69903123
commit 79ed0e7121
6 changed files with 48 additions and 23 deletions

View File

@ -4,11 +4,10 @@
@import 'sidenav';
@import 'content-layout';
@import 'search-results';
@import 'top-menu';
@import 'marketing-layout';
@import 'footer';
@import 'layout-global';
@import 'not-found';
@import 'api-page';
@import 'table-of-contents';
@import 'table-of-contents';

View File

@ -17,6 +17,7 @@
@import 'hero';
@import 'announcement-bar';
@import 'banner';
@import 'search-results';
@import 'api-list';
@import 'hr';
@import 'live-example';

View File

@ -61,8 +61,19 @@ aio-search-results {
color: $white;
}
&:visited {
text-decoration: none;
text-decoration: none;
}
span.symbol {
margin-right: 8px;
}
}
.more-items {
content: 'more_horiz';
font-size: 20px;
color: $mediumgray;
padding: 0;
}
@include bp(tiny) {

View File

@ -95,8 +95,16 @@ $api-symbols: (
content: 'K',
background: $purple-600
),
let: (
content: 'K',
background: $purple-600
),
var: (
content: 'K',
background: $purple-600
),
type-alias: (
content: 'T',
background: $light-green-600
)
);
);