Skip to content

Commit 65e656b

Browse files
authored
Merge pull request topcoder-archive#1051 from Colinh84/issue_1047
Issue 1047: Update dashboard mobile CSS styling
2 parents dacee19 + d7f81d6 commit 65e656b

File tree

3 files changed

+12
-15
lines changed

3 files changed

+12
-15
lines changed

assets/css/directives/challenge-tile.scss

Lines changed: 7 additions & 6 deletions
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

Lines changed: 3 additions & 5 deletions
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

Lines changed: 2 additions & 4 deletions
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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy