This repository was archived by the owner on Dec 18, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 5 files changed +42
-23
lines changed Expand file tree Collapse file tree 5 files changed +42
-23
lines changed Original file line number Diff line number Diff line change 1
- <!-- TODO(jelbourn): turn this into nav tabs -- >
2
- < nav md-tab-nav-bar class ="docs-component-viewer-tabbed-content ">
3
- < a md-tab-link class ="docs-component-viewer-section-tab "
4
- *ngFor ="let section of ['Overview', 'API', 'Examples'] "
5
- [routerLink] ="section.toLowerCase() "
6
- routerLinkActive #rla ="routerLinkActive "
7
- [active] ="rla.isActive "> {{section}}</ a >
8
- </ nav >
1
+ < div class =" docs-component-viewer " >
2
+ < nav md-tab-nav-bar class ="docs-component-viewer-tabbed-content ">
3
+ < a md-tab-link class ="docs-component-viewer-section-tab "
4
+ *ngFor ="let section of ['Overview', 'API', 'Examples'] "
5
+ [routerLink] ="section.toLowerCase() "
6
+ routerLinkActive #rla ="routerLinkActive "
7
+ [active] ="rla.isActive "> {{section}}</ a >
8
+ </ nav >
9
9
10
- < div class ="docs-component-viewer-content ">
11
- < router-outlet > </ router-outlet >
10
+ < div class ="docs-component-viewer-content ">
11
+ < router-outlet > </ router-outlet >
12
+ </ div >
12
13
</ div >
Original file line number Diff line number Diff line change 2
2
3
3
app-component-viewer {
4
4
font-weight : 400 ;
5
- margin : 20px 70px 50px 70px ;
5
+ padding : 20px $content-padding-side 50px ;
6
+
7
+ @media ($mat-xsmall ) {
8
+ padding-left : $content-padding-side-xs ;
9
+ padding-right : $content-padding-side-xs ;
10
+ }
11
+ }
12
+
13
+ .docs-component-viewer {
14
+ margin : 0 auto ;
15
+ max-width : 940px ;
6
16
}
7
17
8
18
.docs-component-viewer-section-tab {
Original file line number Diff line number Diff line change 2
2
< h1 > {{guide.name}}</ h1 >
3
3
</ div >
4
4
5
- < doc-viewer class ="docs-guide-content " [documentUrl] ="guide.document "> </ doc-viewer >
5
+ < div class ="docs-guide-wrapper ">
6
+ < doc-viewer class ="docs-guide-content " [documentUrl] ="guide.document "> </ doc-viewer >
7
+ </ div >
6
8
7
9
< app-footer > </ app-footer >
Original file line number Diff line number Diff line change 1
- @import " ../../../../node_modules/@angular/material/theming" ;
2
-
3
- /* For desktop, the content should be aligned with the page title. */
4
- $guide-content-margin-side : 70px ;
5
- $guide-content-margin-side-xs : 15px ;
1
+ @import ' ../../../styles/constants' ;
6
2
7
3
:host {
8
4
display : flex ;
9
5
flex-direction : column ;
10
6
flex-grow : 1 ;
11
7
}
12
8
13
- .docs-guide-content {
14
- display : block ;
15
- margin : 20px $guide-content-margin-side 0 ;
16
- flex-grow : 1 ;
9
+ .docs-guide-wrapper {
10
+ padding : 20px $content-padding-side 0 ;
17
11
18
12
@media ($mat-xsmall ) {
19
- margin -left : $guide- content-margin -side-xs ;
20
- margin -right : $guide- content-margin -side-xs ;
13
+ padding -left : $content-padding -side-xs ;
14
+ padding -right : $content-padding -side-xs ;
21
15
}
22
16
}
17
+
18
+ .docs-guide-content {
19
+ display : block ;
20
+ margin : 0 auto ;
21
+ max-width : 940px ;
22
+ }
Original file line number Diff line number Diff line change
1
+ @import ' ../../node_modules/@angular/material/theming' ;
2
+
1
3
$small-breakpoint-width : 840px ;
4
+
5
+ /* For desktop, the content should be aligned with the page title. */
6
+ $content-padding-side : 70px ;
7
+ $content-padding-side-xs : 15px ;
You can’t perform that action at this time.
0 commit comments