Skip to content
This repository was archived by the owner on Sep 5, 2024. It is now read-only.

fix(demo): autocomplete to use global stylesheet for demo #9930

Merged
merged 1 commit into from
Nov 7, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 0 additions & 28 deletions docs/app/css/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -818,34 +818,6 @@ docs-demo .doc-demo-content {
margin-bottom: 0;
}

/* ---------------------
* Demo Workarounds
*
* Necessary for component demos that append DOM subtrees outside of the demo app.
* Because our docs build prepends CSS classes onto custom demo styles provided for developers,
* these styles are needed for the docs website.
*/
.autocomplete-custom-template li {
border-bottom: 1px solid #ccc;
height: auto;
padding-top: 8px;
padding-bottom: 8px;
white-space: normal;
}
.autocomplete-custom-template li:last-child {
border-bottom-width: 0;
}
.autocomplete-custom-template .item-title,
.autocomplete-custom-template .item-metadata {
display: block;
line-height: 2;
}
.autocomplete-custom-template .item-title md-icon {
height: 18px;
width: 18px;
}


/* Styles for Windows High Contrast mode */
@media screen and (-ms-high-contrast: active) {
a {
Expand Down
1 change: 1 addition & 0 deletions docs/app/js/demo.js
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ angular.module('docsApp')
case "index.html" : return "HTML";
case "script.js" : return "JS";
case "style.css" : return "CSS";
case "style.global.css" : return "CSS";
default : return name;
}
}
Expand Down
4 changes: 2 additions & 2 deletions src/components/autocomplete/demoCustomTemplate/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,10 @@
<span> {{item.name}} </span>
</span>
<span class="item-metadata">
<span class="item-metastat">
<span>
<strong>{{item.watchers}}</strong> watchers
</span>
<span class="item-metastat">
<span>
<strong>{{item.forks}}</strong> forks
</span>
</span>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,4 @@
.autocomplete-custom-template .item-title md-icon {
height: 18px;
width: 18px;
}
}