File tree Expand file tree Collapse file tree 8 files changed +22
-8
lines changed
Expand file tree Collapse file tree 8 files changed +22
-8
lines changed Original file line number Diff line number Diff line change 2323 $warn : map-get ($theme , warn );
2424 $background : map-get ($theme , background );
2525 $foreground : map-get ($theme , foreground );
26+ $next-theme : mat-palette ($mat-red );
2627
2728 .docs-app-background {
2829 background : mat-color ($background , background );
4142 color : mat-color ($primary , default-contrast );
4243 }
4344
45+ .is-next-version {
46+ background : mat-color ($next-theme , 900 ) !important ;
47+ }
48+
4449 @include component-category-list-theme ($theme );
4550 @include component-list-theme ($theme );
4651 @include component-viewer-sidenav-theme ($theme );
Original file line number Diff line number Diff line change 1- < header class ="docs-header-background ">
1+ < header class ="docs-header-background "
2+ [class.is-next-version] ="isNextVersion ">
23 < div class ="docs-header-section ">
34 < div class ="docs-header-headline ">
45 < h1 class ="mat-h1 "> Angular Material</ h1 >
Original file line number Diff line number Diff line change @@ -11,6 +11,8 @@ import {ComponentPageTitle} from '../page-title/page-title';
1111 styleUrls : [ './homepage.scss' ]
1212} )
1313export class Homepage implements OnInit {
14+ isNextVersion = location . hostname . startsWith ( 'next.material.angular.io' ) ;
15+
1416 constructor ( public _componentPageTitle : ComponentPageTitle ) { }
1517
1618 ngOnInit ( ) : void {
Original file line number Diff line number Diff line change 1- < footer class ="docs-footer ">
1+ < footer class ="docs-footer "
2+ [class.is-next-version] ="isNextVersion ">
23 < div class ="docs-footer-list ">
34 < div class ="docs-footer-logo ">
45 < div class ="footer-logo ">
Original file line number Diff line number Diff line change @@ -7,6 +7,8 @@ import {materialVersion} from '../version/version';
77 styleUrls : [ './footer.scss' ]
88} )
99export class Footer {
10+ isNextVersion = location . hostname . startsWith ( 'next.material.angular.io' ) ;
11+
1012 version = materialVersion ;
1113}
1214
Original file line number Diff line number Diff line change 11<!-- TODO: figure out if the <nav> should go inside of a <header> element. -->
2- < nav class ="docs-navbar-header ">
2+ < nav class ="docs-navbar-header "
3+ [class.is-next-version] ="isNextVersion ">
34 < a mat-button class ="docs-button " routerLink ="/ " aria-label ="Angular Material ">
45 < img class ="docs-angular-logo "
56 src ="../../../assets/img/homepage/angular-white-transparent.svg "
Original file line number Diff line number Diff line change @@ -14,6 +14,8 @@ const SECTIONS_KEYS = Object.keys(SECTIONS);
1414 styleUrls : [ './navbar.scss' ]
1515} )
1616export class NavBar {
17+ isNextVersion = location . hostname . startsWith ( 'next.material.angular.io' ) ;
18+
1719 get sections ( ) {
1820 return SECTIONS ;
1921 }
You can’t perform that action at this time.
0 commit comments