Skip to content

Commit

Permalink
Improve styling of example app
Browse files Browse the repository at this point in the history
  • Loading branch information
fboeller committed Mar 7, 2021
1 parent 9a47dda commit 1f64950
Show file tree
Hide file tree
Showing 3 changed files with 42 additions and 5 deletions.
5 changes: 5 additions & 0 deletions projects/example-app/src/app/sidebar/sidebar.component.css
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
:host {
display: block;
padding: 10px;
}

.links {
Expand All @@ -11,3 +12,7 @@
.links > a {
display: block;
}

.active-link {
color: blue;
}
22 changes: 17 additions & 5 deletions projects/example-app/src/app/sidebar/sidebar.component.html
Original file line number Diff line number Diff line change
@@ -1,8 +1,20 @@
<h3>Examples</h3>
<div class="links">
<a routerLink="/examples/default">Default</a>
<a routerLink="/examples/custom-default-loading">Custom default loading</a>
<a routerLink="/examples/ngrx">NgRx</a>
<a routerLink="/examples/custom-loading-template">Custom loading template</a>
<a routerLink="/examples/lightweight">Lightweight</a>
<a routerLink="/examples/default" routerLinkActive="active-link">Default</a>
<a
routerLink="/examples/custom-default-loading"
routerLinkActive="active-link"
>
Custom default loading
</a>
<a routerLink="/examples/ngrx" routerLinkActive="active-link">NgRx</a>
<a
routerLink="/examples/custom-loading-template"
routerLinkActive="active-link"
>
Custom loading template
</a>
<a routerLink="/examples/lightweight" routerLinkActive="active-link">
Lightweight
</a>
</div>
20 changes: 20 additions & 0 deletions projects/example-app/src/styles.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
body {
font-family: system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell,
Noto Sans, sans-serif, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial,
sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
}

p {
line-height: 26px;
}

a {
font-weight: 500;
line-height: 20px;
text-decoration: none;
color: rgb(96, 103, 112);
}

a:hover {
color: blue;
}

0 comments on commit 1f64950

Please sign in to comment.