File tree 5 files changed +29
-18
lines changed
material.angular.io/src/app/pages
5 files changed +29
-18
lines changed Original file line number Diff line number Diff line change 5
5
font-weight : bold ;
6
6
font-size : 20px ;
7
7
background : none ;
8
-
8
+
9
9
code {
10
10
background : none ;
11
11
}
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -27,13 +27,27 @@ app-component-viewer {
27
27
position : relative ;
28
28
min-height : 500px ;
29
29
30
+ // Display outlet components with toc as flex and switch to
31
+ // vertical direction on small screens
32
+ component-overview , component-api {
33
+ display : flex ;
34
+ align-items : flex-start ;
35
+
36
+ @media (max-width : $small-breakpoint-width ) {
37
+ flex-direction : column ;
38
+ }
39
+ }
40
+
30
41
table-of-contents {
31
42
top : 35px ;
32
43
44
+ // Reposition on top of content on small screens and remove
45
+ // sticky positioning
33
46
@media (max-width : $small-breakpoint-width ) {
34
47
order : -1 ;
35
48
position : inherit ;
36
49
width : auto ;
50
+ padding-left : 0 ;
37
51
}
38
52
}
39
53
}
Original file line number Diff line number Diff line change @@ -47,7 +47,6 @@ export class ComponentViewer {
47
47
@Component ( {
48
48
selector : 'component-overview' ,
49
49
templateUrl : './component-overview.html' ,
50
- styleUrls : [ './component-overview.scss' ] ,
51
50
encapsulation : ViewEncapsulation . None ,
52
51
} )
53
52
export class ComponentOverview implements OnInit {
Original file line number Diff line number Diff line change @@ -23,15 +23,20 @@ $guide-content-margin-side-xs: 15px;
23
23
}
24
24
25
25
.docs-guide-toc-and-content {
26
- display : block ;
26
+ display : flex ;
27
+ align-items : flex-start ;
28
+
27
29
text-align : left ;
28
30
max-width : 940px ;
29
31
margin : 0 auto ;
32
+
33
+ @media (max-width : $small-breakpoint-width ) {
34
+ flex-direction : column ;
35
+ }
30
36
}
31
37
32
38
.docs-guide-content {
33
- display : block ;
34
- float : left ;
39
+ flex-grow : 1 ;
35
40
width : 80% ;
36
41
37
42
@media (max-width : $small-breakpoint-width ) {
@@ -41,10 +46,13 @@ $guide-content-margin-side-xs: 15px;
41
46
42
47
table-of-contents {
43
48
top : 35px ;
44
- float : right ;
45
- width : 15% ;
46
49
50
+ // Reposition on top of content on small screens and remove
51
+ // sticky positioning
47
52
@media (max-width : $small-breakpoint-width ) {
48
- display : none ;
53
+ order : -1 ;
54
+ position : inherit ;
55
+ width : auto ;
56
+ padding-left : 0 ;
49
57
}
50
58
}
You can’t perform that action at this time.
0 commit comments