Skip to content

Commit

Permalink
Update main layout to be responsive
Browse files Browse the repository at this point in the history
  • Loading branch information
marianzburlea committed Apr 14, 2017
1 parent 1995984 commit 70e8091
Show file tree
Hide file tree
Showing 6 changed files with 41 additions and 2 deletions.
4 changes: 4 additions & 0 deletions src/_component/side/side-desktop.scss
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@
flex-grow: 0;
}

.#{$class}-link {
white-space: nowrap;
}

.#{$class}-title,
.#{$class}-menu {
text-align: left;
Expand Down
4 changes: 2 additions & 2 deletions src/_component/side/side.scss
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
$class: 'side';

@import 'side-smartphone';
// @import 'side-tablet';
// @import 'side-desktop';
@import 'side-tablet';
@import 'side-desktop';
5 changes: 5 additions & 0 deletions src/_layout/main-desktop.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
@media (min-width: 1280px) {
.container {
flex-direction: row;
}
}
23 changes: 23 additions & 0 deletions src/_layout/main-smartphone.scss
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,26 @@ body {
// Set the open sans font for all elements
font-family: 'Open Sans';
}

.page-wrapper {
min-height: 100%;
display: flex;
flex-direction: column;
}

.container {
flex-grow: 1;
background-color: $color-white;
border-radius: $border-radius;
display: flex;
flex-direction: column;

h1:first-child {
margin-top: 0;
}
}

.content {
flex-grow: 1;
padding: 0 2.5rem 2.5rem;
}
5 changes: 5 additions & 0 deletions src/_layout/main-tablet.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
@media (min-width: 768px) {
.container {
flex-direction: column;
}
}
2 changes: 2 additions & 0 deletions src/_layout/main.scss
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
@import 'main-smartphone';
@import 'main-tablet';
@import 'main-desktop';

0 comments on commit 70e8091

Please sign in to comment.