-
Notifications
You must be signed in to change notification settings - Fork 357
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feature(layout): sticky footer (and footer-inner) (#212)
* feature(layout): sticky footer (and footer-inner) * removed extra space from selector name * fixed example in nav-list * fixed manage-list example * remove inner footer in layout demos * update(footer): disable lint for multiple selectors
- Loading branch information
1 parent
6cd31f0
commit 59253be
Showing
13 changed files
with
140 additions
and
29 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
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
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
3 changes: 3 additions & 0 deletions
3
src/platform/core/layout/layout-footer/layout-footer.component.html
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 |
---|---|---|
@@ -0,0 +1,3 @@ | ||
<div class="td-layout-footer"> | ||
<ng-content></ng-content> | ||
</div> |
6 changes: 6 additions & 0 deletions
6
src/platform/core/layout/layout-footer/layout-footer.component.scss
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 |
---|---|---|
@@ -0,0 +1,6 @@ | ||
:host { | ||
display: block; | ||
} | ||
.td-layout-footer { | ||
padding: 10px 16px; | ||
} |
11 changes: 11 additions & 0 deletions
11
src/platform/core/layout/layout-footer/layout-footer.component.ts
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 |
---|---|---|
@@ -0,0 +1,11 @@ | ||
import { Component } from '@angular/core'; | ||
|
||
@Component({ | ||
/* tslint:disable-next-line */ | ||
selector: 'td-layout-footer,td-layout-footer-inner', | ||
styleUrls: ['./layout-footer.component.scss' ], | ||
templateUrl: './layout-footer.component.html', | ||
}) | ||
export class TdLayoutFooterComponent { | ||
|
||
} |
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
50 changes: 28 additions & 22 deletions
50
src/platform/core/layout/layout-nav-list/layout-nav-list.component.html
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,29 @@ | ||
<md-sidenav-container fullscreen class="td-layout-nav-list" layout="row" flex> | ||
<md-sidenav opened align="start" mode="side" layout="column" layout-fill class="md-sidenav-left md-whiteframe-z1" flex-gt-xs="none"> | ||
<md-toolbar color="primary" class="md-whiteframe-z1"> | ||
<button md-button (click)="menuClick()" md-icon-button><md-icon class="md-24">menu</md-icon></button> | ||
<md-icon *ngIf="icon">{{icon}}</md-icon> | ||
<md-icon *ngIf="logo" class="md-icon-logo" [svgIcon]="logo"></md-icon> | ||
<span>{{toolbarTitle}}</span> | ||
<ng-content select="[list-toolbar-content]"></ng-content> | ||
</md-toolbar> | ||
<div flex class="list md-content"> | ||
<ng-content select="[list-items]"></ng-content> | ||
</div> | ||
</md-sidenav> | ||
<div layout="column" layout-fill class="md-content content"> | ||
<md-toolbar color="primary" class="md-whiteframe-z1"> | ||
<button md-button (click)="toggle()" md-icon-button hide-gt-xs><md-icon class="md-24">arrow_back</md-icon></button> | ||
<ng-content select="[nav-toolbar-content]"></ng-content> | ||
</md-toolbar> | ||
<div class="md-content" flex> | ||
<ng-content></ng-content> | ||
</div> | ||
<div layout="column" layout-fill> | ||
<div flex layout="column" class="content md-content"> | ||
<md-sidenav-container fullscreen class="td-layout-nav-list" layout="row" flex> | ||
<md-sidenav opened align="start" mode="side" layout="column" layout-fill class="md-sidenav-left md-whiteframe-z1" flex-gt-xs="none"> | ||
<md-toolbar color="primary" class="md-whiteframe-z1"> | ||
<button md-button (click)="menuClick()" md-icon-button><md-icon class="md-24">menu</md-icon></button> | ||
<md-icon *ngIf="icon">{{icon}}</md-icon> | ||
<md-icon *ngIf="logo" class="md-icon-logo" [svgIcon]="logo"></md-icon> | ||
<span>{{toolbarTitle}}</span> | ||
<ng-content select="[list-toolbar-content]"></ng-content> | ||
</md-toolbar> | ||
<div flex class="list md-content"> | ||
<ng-content select="[list-items]"></ng-content> | ||
</div> | ||
</md-sidenav> | ||
<div layout="column" layout-fill class="md-content content"> | ||
<md-toolbar color="primary" class="md-whiteframe-z1"> | ||
<button md-button (click)="toggle()" md-icon-button hide-gt-xs><md-icon class="md-24">arrow_back</md-icon></button> | ||
<ng-content select="[nav-toolbar-content]"></ng-content> | ||
</md-toolbar> | ||
<div class="md-content" flex> | ||
<ng-content></ng-content> | ||
</div> | ||
<ng-content select="td-layout-footer-inner"></ng-content> | ||
</div> | ||
</md-sidenav-container> | ||
</div> | ||
</md-sidenav-container> | ||
<ng-content select="td-layout-footer"></ng-content> | ||
</div> |
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