Skip to content

Commit

Permalink
Better responsiveness
Browse files Browse the repository at this point in the history
  • Loading branch information
j-f1 committed Jun 23, 2017
1 parent 4d983e2 commit 9dd156e
Showing 1 changed file with 25 additions and 8 deletions.
33 changes: 25 additions & 8 deletions css/default.scss
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,16 @@ $lighter-accent-color: #006FFF;
$lighter-accent-color-hover: #008B68;
$darker-accent-color: #1F00FF;
$padding: 18px;
$body-margin: 0 20%;

@media (max-width: 768px) {
$body-margin: 0 1em !global;
@mixin mobile {
@media (max-width: 768px) {
@content;
}
}
@mixin desktop {
@media (min-width: 769px) {
@content;
}
}

body{
Expand Down Expand Up @@ -80,13 +86,24 @@ footer{
@extend .no-linky;
}
}
.content{
margin: $body-margin;
}
.call-to-action{
margin: $body-margin;

.call-to-action {
flex: 1;
}
@include mobile {
.content, .call-to-action {
margin: 1em;
}
}

@include desktop {
.content, .call-to-action {
min-width: 725px;
width: 60%;
margin: 1em auto;
}
}

.logo {
position: absolute;
height: 36px;
Expand Down

0 comments on commit 9dd156e

Please sign in to comment.