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

Commit 43fa2c3

Browse files
authoredFeb 18, 2017
Merge pull request #1017 from shubhendusaurabh/issue-994
fixed #994 challenge cards in mobile
2 parents ababeda + f475776 commit 43fa2c3

File tree

2 files changed

+11
-2
lines changed

2 files changed

+11
-2
lines changed
 

‎assets/css/directives/challenge-tile.scss

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,7 @@ challenge-tile .challenge.tile-view {
111111
flex-direction: column;
112112
align-items: center;
113113
justify-content: center;
114+
padding: 12px 0;
114115
flex: 2;
115116
}
116117

@@ -280,6 +281,12 @@ challenge-tile .challenge.tile-view {
280281
}
281282

282283

284+
@media only screen and (max-width: 768px) {
285+
.active-challenge {
286+
height: auto;
287+
margin: auto;
288+
}
289+
}
283290
.completed-challenge {
284291
height: 390px;
285292
display: flex;

‎assets/css/my-dashboard/my-challenges.scss

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,10 @@
131131
}
132132

133133
.challenges {
134-
@include horizontal-scroll;
134+
display: flex;
135+
flex-direction: column;
136+
justify-content: center;
137+
margin-left: 0;
135138

136139
&.tile-view, &.list-view {
137140
@media only screen and (min-width: 768px) {
@@ -168,7 +171,6 @@
168171
margin-bottom: 15px;
169172
@media only screen and (max-width: 767px) {
170173
display: inline-block;
171-
margin-left: 15px;
172174

173175
&:first-child {
174176
margin-left: 0;

0 commit comments

Comments
 (0)
This repository has been archived.