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

Commit e807a3b

Browse files
devversionThomasBurleson
authored andcommitted
fix(autocomplete): use global stylesheet for demo (#9930)
fix(demo): autocomplete to use global stylesheet for demo
1 parent f664930 commit e807a3b

File tree

4 files changed

+4
-31
lines changed

4 files changed

+4
-31
lines changed

docs/app/css/style.css

Lines changed: 0 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -818,34 +818,6 @@ docs-demo .doc-demo-content {
818818
margin-bottom: 0;
819819
}
820820

821-
/* ---------------------
822-
* Demo Workarounds
823-
*
824-
* Necessary for component demos that append DOM subtrees outside of the demo app.
825-
* Because our docs build prepends CSS classes onto custom demo styles provided for developers,
826-
* these styles are needed for the docs website.
827-
*/
828-
.autocomplete-custom-template li {
829-
border-bottom: 1px solid #ccc;
830-
height: auto;
831-
padding-top: 8px;
832-
padding-bottom: 8px;
833-
white-space: normal;
834-
}
835-
.autocomplete-custom-template li:last-child {
836-
border-bottom-width: 0;
837-
}
838-
.autocomplete-custom-template .item-title,
839-
.autocomplete-custom-template .item-metadata {
840-
display: block;
841-
line-height: 2;
842-
}
843-
.autocomplete-custom-template .item-title md-icon {
844-
height: 18px;
845-
width: 18px;
846-
}
847-
848-
849821
/* Styles for Windows High Contrast mode */
850822
@media screen and (-ms-high-contrast: active) {
851823
a {

docs/app/js/demo.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@ angular.module('docsApp')
6969
case "index.html" : return "HTML";
7070
case "script.js" : return "JS";
7171
case "style.css" : return "CSS";
72+
case "style.global.css" : return "CSS";
7273
default : return name;
7374
}
7475
}

src/components/autocomplete/demoCustomTemplate/index.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,10 @@
2020
<span> {{item.name}} </span>
2121
</span>
2222
<span class="item-metadata">
23-
<span class="item-metastat">
23+
<span>
2424
<strong>{{item.watchers}}</strong> watchers
2525
</span>
26-
<span class="item-metastat">
26+
<span>
2727
<strong>{{item.forks}}</strong> forks
2828
</span>
2929
</span>

src/components/autocomplete/demoCustomTemplate/style.css renamed to src/components/autocomplete/demoCustomTemplate/style.global.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,4 @@
1616
.autocomplete-custom-template .item-title md-icon {
1717
height: 18px;
1818
width: 18px;
19-
}
19+
}

0 commit comments

Comments
 (0)