-
Notifications
You must be signed in to change notification settings - Fork 395
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
48 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
<app-navbar class="mat-elevation-z6"></app-navbar> | ||
<router-outlet></router-outlet> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,39 @@ | ||
material-docs-app { | ||
display: flex; | ||
flex-direction: column; | ||
position: absolute; | ||
top: 0; | ||
top: 56px; | ||
bottom: 0; | ||
left: 0; | ||
right: 0; | ||
display: flex; | ||
flex-direction: column; | ||
} | ||
|
||
app-navbar { | ||
position: fixed; | ||
top: 0; | ||
left: 0; | ||
right: 0; | ||
z-index: 2; | ||
} | ||
|
||
material-docs-app > app-component-sidenav { | ||
flex: 1 1 auto; | ||
flex: 1; | ||
} | ||
|
||
// Target last-child as it will be the output of the router-outlet within the app's container. | ||
material-docs-app > :last-child { | ||
material-docs-app > app-homepage, | ||
material-docs-app > app-guides, | ||
material-docs-app > guide-viewer { | ||
overflow-y: auto; | ||
} | ||
|
||
app-navbar { | ||
position: relative; | ||
z-index: 10; | ||
@media (max-width: 720px) { | ||
material-docs-app { | ||
top: 92px; | ||
} | ||
|
||
material-docs-app > app-homepage, | ||
material-docs-app > app-guides, | ||
material-docs-app > guide-viewer { | ||
overflow-y: visible; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters