Skip to content

Commit

Permalink
bugfix: update mobile css styles, fix menu
Browse files Browse the repository at this point in the history
  • Loading branch information
kamilmysliwiec committed Apr 20, 2018
1 parent b6a7d9d commit 44a2437
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 4 deletions.
3 changes: 2 additions & 1 deletion src/app/homepage/homepage.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,8 @@ export class HomepageComponent implements OnInit, AfterViewInit {
ngOnInit(): void {
this.router.events.filter(e => e instanceof NavigationEnd).subscribe(() => {
this.previousWidth = window.innerWidth;
this.checkWindowWidth(window.innerWidth);
this.isSidebarOpened = false;
this.cd.detectChanges();
});
}

Expand Down
13 changes: 12 additions & 1 deletion src/app/homepage/menu/menu.component.scss
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,18 @@
@include transform(translateX(0));
}
@include media(large) { width: 300px; }
@include media(medium) { padding: 20px 25px 20px 25px; }
@include media(normal) {
&.opened {
z-index: 1000000;
box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}
}
@include media(medium) {
padding: 20px 25px 20px 25px;
}
@include media(small) {
width: 100%;
}
}

.nav-item {
Expand Down
4 changes: 2 additions & 2 deletions src/app/shared/components/tabs/tabs.component.scss
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
top: 0;
bottom: 0;

@include media(medium) {
/*@include media(medium) {
position: static;
margin: 15px -20px -15px;
Expand All @@ -15,7 +15,7 @@
display: inline-block;
margin: 0 !important;
}
}
}*/
}

.tab {
Expand Down

0 comments on commit 44a2437

Please sign in to comment.