From: Kai Moritz Date: Sat, 16 May 2020 06:47:21 +0000 (+0200) Subject: 5: Add In-app Navigation X-Git-Url: https://juplo.de/gitweb/?p=examples%2Fangular-tour-of-heroes;a=commitdiff_plain;h=f9d9f8e0a51904e667e23aab273b82c992ad300e 5: Add In-app Navigation f) Added minor HTML-fixes and missing CSS --- diff --git a/src/app/hero-detail/hero-detail.component.css b/src/app/hero-detail/hero-detail.component.css index e69de29..835a13d 100644 --- a/src/app/hero-detail/hero-detail.component.css +++ b/src/app/hero-detail/hero-detail.component.css @@ -0,0 +1,30 @@ +/* HeroDetailComponent's private CSS styles */ +label { + display: inline-block; + width: 3em; + margin: .5em 0; + color: #607D8B; + font-weight: bold; +} +input { + height: 2em; + font-size: 1em; + padding-left: .4em; +} +button { + margin-top: 20px; + font-family: Arial; + background-color: #eee; + border: none; + padding: 5px 10px; + border-radius: 4px; + cursor: pointer; +} +button:hover { + background-color: #cfd8dc; +} +button:disabled { + background-color: #eee; + color: #ccc; + cursor: auto; +} diff --git a/src/app/hero-detail/hero-detail.component.html b/src/app/hero-detail/hero-detail.component.html index 29f8495..540f0f0 100644 --- a/src/app/hero-detail/hero-detail.component.html +++ b/src/app/hero-detail/hero-detail.component.html @@ -5,8 +5,9 @@

{{hero.name | uppercase}} Details

id: {{hero.id}}
- - +