diff --git a/aio/content/examples/http/src/app/app.component.html b/aio/content/examples/http/src/app/app.component.html index 21acf52793..dd5ae8926e 100644 --- a/aio/content/examples/http/src/app/app.component.html +++ b/aio/content/examples/http/src/app/app.component.html @@ -1,4 +1,4 @@ -
Contents: "{{contents}}"
diff --git a/aio/content/examples/http/src/app/heroes/heroes.component.css b/aio/content/examples/http/src/app/heroes/heroes.component.css index c2f101fabf..a728e26746 100644 --- a/aio/content/examples/http/src/app/heroes/heroes.component.css +++ b/aio/content/examples/http/src/app/heroes/heroes.component.css @@ -1,88 +1,58 @@ /* HeroesComponent's private CSS styles */ +.search input { + margin: 1rem 0; +} + .heroes { - margin: 0 0 2em 0; list-style-type: none; padding: 0; - width: 15em; } + .heroes li { position: relative; - cursor: pointer; - background-color: #EEE; - margin: .5em; - padding: .3em 0; - height: 1.6em; - border-radius: 4px; - width: 19em; } .heroes li:hover { - color: #607D8B; - background-color: #DDD; left: .1em; } .heroes a { - color: #888; - text-decoration: none; - position: relative; + color: black; display: block; - width: 250px; + font-size: 1.2rem; + background-color: #eee; + margin: .5em 0; + padding: .5em 0; + border-radius: 4px; } .heroes a:hover { - color:#607D8B; + color: #2c3a41; + background-color: #e6e6e6; } .heroes .badge { - display: inline-block; - font-size: small; + padding: .5em .6em; color: white; - padding: 0.8em 0.7em 0 0.7em; - background-color: #607D8B; - line-height: 1em; - position: relative; - left: -1px; - top: -4px; - height: 1.8em; + background-color: #435B60; min-width: 16px; - text-align: right; margin-right: .8em; border-radius: 4px 0 0 4px; } -.button { - background-color: #eee; - border: none; - padding: 5px 10px; - border-radius: 4px; - cursor: pointer; - font-family: Arial, sans-serif; -} - -button:hover { - background-color: #cfd8dc; -} - button.delete { - position: relative; - left: 24em; - top: -32px; - background-color: gray !important; + position: absolute; + right: -8px; + top: 5px; + background-color: gray; color: white; - display: inherit; padding: 5px 8px; width: 2em; } -input { - font-size: 100%; - margin-bottom: 2px; - width: 11em; -} - .heroes input { - position: relative; - top: -3px; - width: 12em; + max-width: 12rem; + padding: .25rem; + position: absolute; + top: 8px; } diff --git a/aio/content/examples/http/src/app/heroes/heroes.component.html b/aio/content/examples/http/src/app/heroes/heroes.component.html index 42d42e4d8f..bc470badae 100644 --- a/aio/content/examples/http/src/app/heroes/heroes.component.html +++ b/aio/content/examples/http/src/app/heroes/heroes.component.html @@ -1,14 +1,14 @@ -Searches when typing stops. Caches for 30 seconds.
- + diff --git a/aio/content/examples/http/src/app/package-search/package-search.component.ts b/aio/content/examples/http/src/app/package-search/package-search.component.ts index ec7df8282e..9d235fad1a 100644 --- a/aio/content/examples/http/src/app/package-search/package-search.component.ts +++ b/aio/content/examples/http/src/app/package-search/package-search.component.ts @@ -8,6 +8,7 @@ import { NpmPackageInfo, PackageSearchService } from './package-search.service'; @Component({ selector: 'app-package-search', templateUrl: './package-search.component.html', + styles: ['input { margin-bottom: .5rem; }'], providers: [ PackageSearchService ] }) export class PackageSearchComponent implements OnInit { diff --git a/aio/content/examples/http/src/app/uploader/uploader.component.html b/aio/content/examples/http/src/app/uploader/uploader.component.html index 2f477ef110..5aa6ea154f 100644 --- a/aio/content/examples/http/src/app/uploader/uploader.component.html +++ b/aio/content/examples/http/src/app/uploader/uploader.component.html @@ -1,12 +1,13 @@ -