Skip to content
This repository has been archived by the owner on Mar 7, 2023. It is now read-only.

Commit

Permalink
Fix mobile design
Browse files Browse the repository at this point in the history
  • Loading branch information
jbuget committed Mar 16, 2017
1 parent 3532883 commit bc4d5fd
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 6 deletions.
1 change: 1 addition & 0 deletions live/app/styles/components/course-list.scss
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@

@media (min-width: 992px) {
flex-direction: row;
flex-wrap: wrap;
}
}

Expand Down
38 changes: 32 additions & 6 deletions live/app/styles/index.scss
Original file line number Diff line number Diff line change
Expand Up @@ -89,32 +89,58 @@ $challenges-title-color: #3d68ff;
}

.index-page-challenges__container {
padding: 70px 90px; // take into account course-item margin-bottom (5px)
margin: 0 auto;
max-width: 1200px;
display: flex;
flex-direction: column;
padding: 80px 0 70px 0;

@media (min-width: 992px) {
margin: 0 auto;
flex-direction: row;
padding: 70px 90px;
}
}

.index-page-challenges__presentation {
font-family: $font-raleway;
color: $white;
max-width: 300px;
text-align: center;

@media (min-width: 992px) {
max-width: 300px;
text-align: left;
}
}

.index-page-challenges__presentation-title {
font-size: 60px;
font-size: 50px;
font-weight: 800;
margin-top: 0;

@media (min-width: 992px) {
font-size: 60px;
}
}

.index-page-challenges__presentation-text {
font-size: 37px;
font-size:26px;
font-weight: 300;
line-height: 1.2;

@media (min-width: 992px) {
font-size: 37px;
}
}

.index-page-challenges__course-list {
display: flex;
margin-left: auto;
margin: 0 auto;
padding-top: 20px;

@media (min-width: 992px) {
margin-right: 0;
padding-top: 0;
}
}

/* Courses
Expand Down

0 comments on commit bc4d5fd

Please sign in to comment.