(fuseNavBar) change media steps for folded feature.

This commit is contained in:
mustafahlvc 2017-08-18 16:33:19 +03:00
parent 953f8cf44a
commit 38f83bd905
5 changed files with 12 additions and 7 deletions

View File

@ -5,11 +5,11 @@
<span class="logo-text">FUSE</span>
</div>
<button md-button class="toggle-button-navbar mat-icon-button" fuseNavbar="toggleFold" fxHide.xs>
<button md-button class="toggle-button-navbar mat-icon-button" fuseNavbar="toggleFold" fxHide.lt-lg>
<md-icon>menu</md-icon>
</button>
<button md-button class="toggle-button-navbar mat-icon-button" fuseNavbar="closeBar" fxHide.gt-xs>
<button md-button class="toggle-button-navbar mat-icon-button" fuseNavbar="closeBar" fxHide.gt-md>
<md-icon>arrow_back</md-icon>
</button>

View File

@ -72,7 +72,7 @@ fuse-navbar {
box-shadow: none;
}
@include media-breakpoint('lt-md') {
@include media-breakpoint('lt-lg') {
position: absolute;
top: 0;
bottom: 0;

View File

@ -35,7 +35,7 @@ export class FuseNavbarComponent implements OnInit, OnDestroy
.subscribe((mediaStep) => {
setTimeout(() => {
if ( this.media.isActive('lt-md') )
if ( this.media.isActive('lt-lg') )
{
this.closeBar();
this.deActivateFolded();
@ -60,7 +60,7 @@ export class FuseNavbarComponent implements OnInit, OnDestroy
this.initialized = true;
});
if ( this.media.isActive('lt-md') )
if ( this.media.isActive('lt-lg') )
{
this.closeBar();
this.deActivateFolded();

View File

@ -4,11 +4,11 @@
<div fxFlex fxLayout="row" fxLayoutAlign="start center">
<button md-button class="toggle-button-navbar mat-icon-button" fuseNavbar="openBar" fxHide.gt-sm fxFlex="56px">
<button md-button class="toggle-button-navbar mat-icon-button" fuseNavbar="openBar" fxHide.gt-md>
<md-icon>menu</md-icon>
</button>
<div class="toolbar-separator" fxHide.gt-sm></div>
<div class="toolbar-separator" fxHide.gt-md></div>
<div class="px-16" fxHide.lt-md>
<fuse-shortcuts></fuse-shortcuts>

View File

@ -21,6 +21,11 @@
height: 64px;
}
.toggle-button-navbar {
min-width: 56px;
height: 56px;
}
.toolbar-separator {
height: 64px;
width: 1px;