This repository was archived by the owner on Dec 18, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 12 files changed +61
-2
lines changed Expand file tree Collapse file tree 12 files changed +61
-2
lines changed Original file line number Diff line number Diff line change 29
29
}
30
30
}
31
31
32
+ .docs-footer {
33
+ background : md-color ($primary );
34
+ color : md-color ($primary , default-contrast );
35
+ }
36
+
32
37
@include docs-site-typography-theme ($theme );
33
38
@include nav-bar-theme ($theme );
34
39
@include component-viewer-sidenav-theme ($theme );
Original file line number Diff line number Diff line change @@ -15,6 +15,7 @@ import {ExampleModule} from './examples/example-module';
15
15
import { SharedModule } from './shared/shared-module' ;
16
16
import { ComponentCategoryList } from './pages/component-category-list/component-category-list' ;
17
17
import { ComponentSidenav } from './pages/component-sidenav/component-sidenav' ;
18
+ import { Footer } from './shared/footer/footer' ;
18
19
import { ComponentPageTitle } from './pages/page-title/page-title' ;
19
20
import { ComponentPageHeader } from './pages/component-page-header/component-page-header' ;
20
21
@@ -30,6 +31,7 @@ import {ComponentPageHeader} from './pages/component-page-header/component-page-
30
31
GuideList ,
31
32
GuideViewer ,
32
33
Homepage ,
34
+ Footer
33
35
] ,
34
36
imports : [
35
37
BrowserModule ,
Original file line number Diff line number Diff line change @@ -15,6 +15,9 @@ <h3>{{category.name}}</h3>
15
15
</ nav >
16
16
</ md-sidenav >
17
17
18
- < component-page-header (toggleSidenav) ="sidenav.toggle() "> </ component-page-header >
19
- < router-outlet > </ router-outlet >
18
+ < div class ="docs-component-sidenav-content ">
19
+ < component-page-header (toggleSidenav) ="sidenav.toggle() "> </ component-page-header >
20
+ < router-outlet > </ router-outlet >
21
+ < app-footer > </ app-footer >
22
+ </ div >
20
23
</ md-sidenav-layout >
Original file line number Diff line number Diff line change @@ -69,3 +69,14 @@ app-component-sidenav {
69
69
}
70
70
}
71
71
}
72
+
73
+ .docs-component-sidenav-content {
74
+ min-height : 100% ;
75
+ display : flex ;
76
+ flex-direction : column ;
77
+
78
+ // The rule will match the element following the router-outlet which will be the routed component.
79
+ router-outlet + * {
80
+ flex-grow : 1 ;
81
+ }
82
+ }
Original file line number Diff line number Diff line change @@ -8,3 +8,5 @@ <h1>Guides</h1>
8
8
{{guide.name}}
9
9
</ a >
10
10
</ md-list >
11
+
12
+ < app-footer > </ app-footer >
Original file line number Diff line number Diff line change
1
+ :host {
2
+ display : flex ;
3
+ flex-direction : column ;
4
+ flex-grow : 1 ;
5
+ }
6
+
1
7
.docs-guide-list-item {
2
8
margin : 50px ;
9
+ flex-grow : 1 ;
3
10
}
11
+
Original file line number Diff line number Diff line change @@ -3,3 +3,5 @@ <h1>{{guide.name}}</h1>
3
3
</ div >
4
4
5
5
< doc-viewer class ="docs-guide-content " [documentUrl] ="guide.document "> </ doc-viewer >
6
+
7
+ < app-footer > </ app-footer >
Original file line number Diff line number Diff line change
1
+ :host {
2
+ display : flex ;
3
+ flex-direction : column ;
4
+ flex-grow : 1 ;
5
+ }
6
+
1
7
.docs-guide-content {
2
8
display : block ;
3
9
margin : 20px 0 0 70px ;
10
+ flex-grow : 1 ;
4
11
}
Original file line number Diff line number Diff line change @@ -54,3 +54,5 @@ <h2>Optimized for Angular</h2>
54
54
< a md-raised-button routerLink ="guide/getting-started "> Get started</ a >
55
55
</ div >
56
56
</ div >
57
+
58
+ < app-footer > </ app-footer >
Original file line number Diff line number Diff line change
1
+ < footer class ="docs-footer ">
2
+ Powered by Google ©2010-2016. Code licensed under an MIT-style License.
3
+ Documentation licensed under CC BY 4.0.
4
+ </ footer >
You can’t perform that action at this time.
0 commit comments