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

Commit 483f9a1

Browse files
committed
add logo and link to angular in footer
1 parent 1910483 commit 483f9a1

File tree

4 files changed

+75
-6
lines changed

4 files changed

+75
-6
lines changed

src/_app-theme.scss

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
@import './app/pages/component-viewer/component-viewer-theme';
55
@import './app/pages/component-list/component-list-theme';
66
@import './app/pages/component-category-list/component-category-list-theme';
7+
@import './app/pages/guide-list/guide-list-theme';
78

89
@import './styles/typography-theme';
910
@import './app/shared/navbar/navbar-theme';
@@ -46,4 +47,5 @@
4647
@include nav-bar-theme($theme);
4748
@include example-viewer-theme($theme);
4849
@include footer-theme($theme);
50+
@include guide-list-theme($theme);
4951
}
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
@import '~@angular/material/core/theming/theming';
2+
3+
@mixin guide-list-theme($theme) {
4+
$primary: map-get($theme, primary);
5+
$accent: map-get($theme, accent);
6+
$warn: map-get($theme, warn);
7+
$background: map-get($theme, background);
8+
$foreground: map-get($theme, foreground);
9+
10+
app-guides {
11+
12+
.docs-guide-list-item {
13+
table {
14+
box-shadow: 0 2px 2px rgba(0,0,0,0.24), 0 0 2px rgba(0,0,0,0.12);
15+
}
16+
17+
th {
18+
color: md-color($foreground, secondary-text);
19+
background: rgba(md-color($foreground, secondary-text), .03);
20+
}
21+
22+
td a {
23+
color: md-color($primary);
24+
}
25+
}
26+
}
27+
}
Lines changed: 20 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,27 @@
11
<div class="docs-primary-header">
22
<h1>Guides</h1>
33
</div>
4+
45
<md-list class="docs-guide-list-item">
5-
<a md-list-item
6-
*ngFor="let guide of guideItems.getAllItems()"
7-
[routerLink]="['/guide/', guide.id]">
8-
{{guide.name}}
9-
</a>
6+
<table>
7+
<tbody>
8+
<tr>
9+
<th>Core Guides</th>
10+
</tr>
11+
12+
<tr>
13+
<td>
14+
<a md-list-item
15+
*ngFor="let guide of guideItems.getAllItems()"
16+
[routerLink]="['/guide/', guide.id]">
17+
{{guide.name}}
18+
</a>
19+
</td>
20+
</tr>
21+
</tbody>
22+
</table>
23+
24+
1025
</md-list>
1126

1227
<app-footer></app-footer>

src/app/pages/guide-list/guide-list.scss

Lines changed: 26 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,30 @@
77
.docs-guide-list-item {
88
margin: 50px;
99
flex-grow: 1;
10-
}
1110

11+
table {
12+
border-collapse: collapse;
13+
border-radius: 2px;
14+
border-spacing: 0;
15+
margin: 0 0 32px 0;
16+
width: 100%;
17+
}
18+
19+
table tbody th {
20+
font-weight: 400;
21+
padding: 13px 32px;
22+
text-align: left;
23+
}
24+
25+
td {
26+
padding: 8px 20px;
27+
28+
a {
29+
text-decoration: none;
30+
31+
&:hover {
32+
text-decoration: underline;
33+
}
34+
}
35+
}
36+
}

0 commit comments

Comments
 (0)