Skip to content
This repository was archived by the owner on Mar 4, 2025. It is now read-only.

Issue 1047: Update dashboard mobile CSS styling #1051

Merged
merged 1 commit into from
Feb 21, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 7 additions & 6 deletions assets/css/directives/challenge-tile.scss
Original file line number Diff line number Diff line change
Expand Up @@ -281,12 +281,6 @@ challenge-tile .challenge.tile-view {
}


@media only screen and (max-width: 768px) {
.active-challenge {
height: auto;
margin: auto;
}
}
.completed-challenge {
height: 390px;
display: flex;
Expand Down Expand Up @@ -378,6 +372,13 @@ challenge-tile .challenge.tile-view {
}
}

@media only screen and (max-width: 768px) {
.active-challenge, .completed-challenge {
height: auto;
margin: auto;
}
}

.past-design-details {
img {
height: 200px;
Expand Down
8 changes: 3 additions & 5 deletions assets/css/my-challenges/my-challenges.scss
Original file line number Diff line number Diff line change
Expand Up @@ -179,11 +179,9 @@
margin-bottom: 13px;
@media only screen and (max-width: 767px) {
display: inline-block;
margin-left: 15px;

&:first-child {
margin-left: 0;
}
margin-left: auto;
margin-right: auto;
margin-bottom: 15px;
}
@media only screen and (min-width: 768px) {
&:nth-child(2n + 1) {
Expand Down
6 changes: 2 additions & 4 deletions assets/css/my-dashboard/my-challenges.scss
Original file line number Diff line number Diff line change
Expand Up @@ -171,10 +171,8 @@
margin-bottom: 15px;
@media only screen and (max-width: 767px) {
display: inline-block;

&:first-child {
margin-left: 0;
}
margin-left: auto;
margin-right: auto;
}
@media only screen and (min-width: 768px) {
&:nth-child(2n + 1) {
Expand Down