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

Commit d7f81d6

Browse files
committed
Issue 1047: Update dashboard mobile CSS styling
1 parent 0e67f88 commit d7f81d6

File tree

3 files changed

+12
-15
lines changed

3 files changed

+12
-15
lines changed

assets/css/directives/challenge-tile.scss

+7-6
Original file line numberDiff line numberDiff line change
@@ -281,12 +281,6 @@ challenge-tile .challenge.tile-view {
281281
}
282282

283283

284-
@media only screen and (max-width: 768px) {
285-
.active-challenge {
286-
height: auto;
287-
margin: auto;
288-
}
289-
}
290284
.completed-challenge {
291285
height: 390px;
292286
display: flex;
@@ -378,6 +372,13 @@ challenge-tile .challenge.tile-view {
378372
}
379373
}
380374

375+
@media only screen and (max-width: 768px) {
376+
.active-challenge, .completed-challenge {
377+
height: auto;
378+
margin: auto;
379+
}
380+
}
381+
381382
.past-design-details {
382383
img {
383384
height: 200px;

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

+3-5
Original file line numberDiff line numberDiff line change
@@ -179,11 +179,9 @@
179179
margin-bottom: 13px;
180180
@media only screen and (max-width: 767px) {
181181
display: inline-block;
182-
margin-left: 15px;
183-
184-
&:first-child {
185-
margin-left: 0;
186-
}
182+
margin-left: auto;
183+
margin-right: auto;
184+
margin-bottom: 15px;
187185
}
188186
@media only screen and (min-width: 768px) {
189187
&:nth-child(2n + 1) {

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

+2-4
Original file line numberDiff line numberDiff line change
@@ -171,10 +171,8 @@
171171
margin-bottom: 15px;
172172
@media only screen and (max-width: 767px) {
173173
display: inline-block;
174-
175-
&:first-child {
176-
margin-left: 0;
177-
}
174+
margin-left: auto;
175+
margin-right: auto;
178176
}
179177
@media only screen and (min-width: 768px) {
180178
&:nth-child(2n + 1) {

0 commit comments

Comments
 (0)