Skip to content
This repository was archived by the owner on Dec 4, 2017. It is now read-only.

Commit 04fa71f

Browse files
committed
Move styles from sample.css to heroes.component.css, document changes to heroes.component.css in the tutorial.
Edited tutorial to reflect the removal of `sample.css` and the change to `heroes.component.css`. Remove reference to `/public/docs/_examples/toh-6/ts/index.css` from `/public/docs/_examples/toh-6/ts/index.html`.
1 parent e2919de commit 04fa71f

File tree

4 files changed

+15
-31
lines changed

4 files changed

+15
-31
lines changed

public/docs/_examples/toh-6/ts/app/heroes.component.css

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
/* #docregion */
12
.selected {
23
background-color: #CFD8DC !important;
34
color: white;
@@ -57,3 +58,10 @@ button {
5758
button:hover {
5859
background-color: #cfd8dc;
5960
}
61+
/* #docregion additions */
62+
.error {color:red;}
63+
button.delete-button{
64+
float:right;
65+
background-color: gray !important;
66+
color:white;
67+
}

public/docs/_examples/toh-6/ts/index.html

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
<meta name="viewport" content="width=device-width, initial-scale=1">
77

88
<link rel="stylesheet" href="styles.css">
9-
<link rel="stylesheet" href="sample.css">
109

1110
<!-- Polyfill(s) for older browsers -->
1211
<script src="node_modules/core-js/client/shim.min.js"></script>

public/docs/_examples/toh-6/ts/sample.css

Lines changed: 0 additions & 24 deletions
This file was deleted.

public/docs/ts/latest/tutorial/toh-pt6.jade

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -316,7 +316,9 @@ block add-new-hero-via-detail-comp
316316
The user can *delete* an existing hero by clicking a delete button next to the hero's name.
317317
Add the following to the heroes component HTML right after the hero name in the repeated `<li>` tag:
318318
+makeExample('app/heroes.component.html', 'delete')
319-
319+
:marked
320+
Add the following CSS to the bottom of `heroes.component.css`.
321+
+makeExcerpt('toh-6/ts/app/heroes.component.css', 'additions', '')(format=".")
320322
:marked
321323
Now let's fix-up the `HeroesComponent` to support the *add* and *delete* actions used in the template.
322324
Let's start with *add*.
@@ -548,7 +550,6 @@ block filetree
548550
.file typings ...
549551
.file index.html
550552
.file package.json
551-
.file sample.css (new)
552553
.file styles.css
553554
.file systemjs.config.json
554555
.file tsconfig.json
@@ -573,20 +574,20 @@ block file-summary
573574
`toh-6/ts/app/app.component.ts,
574575
toh-6/ts/app/heroes.component.ts,
575576
toh-6/ts/app/heroes.component.html,
577+
toh-6/ts/app/heroes.component.css,
576578
toh-6/ts/app/hero-detail.component.ts,
577579
toh-6/ts/app/hero-detail.component.html,
578580
toh-6/ts/app/hero.service.ts,
579-
toh-6/ts/app/in-memory-data.service.ts,
580-
toh-6/ts/sample.css`,
581+
toh-6/ts/app/in-memory-data.service.ts`,
581582
null,
582583
`app.comp...ts,
583584
heroes.comp...ts,
584585
heroes.comp...html,
586+
heroes.comp...css,
585587
hero-detail.comp...ts,
586588
hero-detail.comp...html,
587589
hero.service.ts,
588-
in-memory-data.service.ts,
589-
sample.css`
590+
in-memory-data.service.ts`
590591
)
591592

592593
+makeTabs(

0 commit comments

Comments
 (0)