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

Commit 686b5dd

Browse files
jshbrnttjelbourn
authored andcommitted
Add GitHub link to site header (#77)
1 parent 313f505 commit 686b5dd

File tree

3 files changed

+22
-2
lines changed

3 files changed

+22
-2
lines changed

src/app/shared/navbar/navbar.html

+6-1
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,10 @@
88
</a>
99
<a md-button routerLink="components">Components</a>
1010
<a md-button routerLink="guides">Guides</a>
11+
<a md-button href="https://github.com/angular/material2" aria-label="GitHub Repository">
12+
<img class="docs-github-logo"
13+
src="../../../assets/img/homepage/github-circle-white-transparent.svg"
14+
alt="GitHub">
15+
GitHub
16+
</a>
1117
</nav>
12-

src/app/shared/navbar/navbar.scss

+15-1
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,23 @@
11
.docs-navbar {
2+
display: flex;
3+
flex-wrap: wrap;
24
padding: 8px 16px;
5+
6+
> .mat-button {
7+
&:last-child {
8+
margin-left: auto;
9+
}
10+
}
311
}
412

513
.docs-angular-logo {
6-
margin: 0 4px 3px 0;
714
height: 26px;
15+
margin: 0 4px 3px 0;
16+
vertical-align: middle;
17+
}
18+
19+
.docs-github-logo {
20+
height: 21px;
21+
margin: 0 7px 2px 0;
822
vertical-align: middle;
923
}
Loading

0 commit comments

Comments
 (0)