Skip to content

Commit

Permalink
feat(app): responsive layout enhancements
Browse files Browse the repository at this point in the history
  • Loading branch information
tomastrajan committed Jan 2, 2018
1 parent bd9341d commit 68338ad
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 3 deletions.
5 changes: 4 additions & 1 deletion src/app/app.component.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
<mat-toolbar color="primary">
<span class="title" routerLink=""><span>HF</span> HAKAFAKA</span>
<span class="title" routerLink="">
<span class="logo">HF</span> <span class="title-long">HAKAFAKA</span>
</span>
<span class="spacer"></span>
<button mat-button
class="nav-button"
*ngFor="let item of menu"
[routerLink]="item.path"
routerLinkActive="active">
Expand Down
20 changes: 19 additions & 1 deletion src/app/app.component.scss
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
@import 'styles-responsive';

:host {
height: 100%;
display: flex;
Expand All @@ -12,11 +14,19 @@
outline: 0;
cursor: pointer;

span {
.logo {
padding: 10px 18px 10px 15px;
letter-spacing: -5px;
margin: 0 10px 0 0;
}

.title-long {
display: none;

@include for-size($size-tablet-landscape-up) {
display: inline;
}
}
}

.spacer {
Expand All @@ -28,6 +38,14 @@
margin: 0 0 0 10px;
}

.nav-button {
display: none;

@include for-size($size-tablet-landscape-up) {
display: block;
}
}

mat-progress-bar {
position: absolute;
top: 64px;
Expand Down
2 changes: 1 addition & 1 deletion src/app/app.component.scss-theme.scss
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
}

.title {
span {
.logo {
border: 2px solid mat-color($primary, default-contrast);
}
}
Expand Down

0 comments on commit 68338ad

Please sign in to comment.