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

Commit 3bfb170

Browse files
author
Nick Litwin
committed
Finish my-challenges css above mobile
1 parent 32c28b3 commit 3bfb170

File tree

8 files changed

+82
-11
lines changed

8 files changed

+82
-11
lines changed

app/my-dashboard/my-challenges/my-challenges.jade

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ header(ng-hide="vm.loading")
44
.section-loading(ng-show="vm.loading")
55

66
section.noChallenges(ng-if="!vm.userHasChallenges && !vm.loading")
7-
h3 Prove your skills
7+
h3 Prove your skills!
88

99
.tracks
1010
.track
@@ -19,6 +19,10 @@ section.noChallenges(ng-if="!vm.userHasChallenges && !vm.loading")
1919
.data-science-icon-outline
2020
p Data Science
2121

22+
.track
23+
.copilot-icon-outline
24+
p Co-Pilot
25+
2226
p.info Hey, whatever your like might be—Design, Development, or Data Science—we have it! Explore the Challenges section and show us what you’re made of!
2327

2428
a(ng-href="https://www.{{DOMAIN}}/challenges/") View Challenges

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

Lines changed: 37 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,10 @@
33
.my-challenges {
44
.section-title {
55
margin-bottom: 27px;
6+
@media only screen and (min-width: 900px) {
7+
font-size: 28px;
8+
margin-bottom: 60px;
9+
}
610
}
711

812
.section-loading {
@@ -14,26 +18,42 @@
1418
flex-direction: column;
1519
align-items: center;
1620
color: #3D3D3D;
21+
padding-left: 20px;
22+
padding-right: 20px;
1723

1824
h3 {
1925
margin-bottom: 20px;
2026
@include sofia-pro-extra-light;
2127
font-size: 18px;
2228
text-transform: uppercase;
29+
@media only screen and (min-width: 900px) {
30+
font-size: 28px;
31+
margin-bottom: 30px;
32+
}
2333
}
2434

2535
.tracks {
2636
display: flex;
2737
flex-direction: row;
2838
justify-content: space-between;
29-
width: 260px;
39+
min-width: 260px;
40+
@media only screen and (min-width: 450px) {
41+
min-width: 350px;
42+
}
3043

3144
.track {
3245
div:first-child {
3346
margin: 0 auto 10px;
3447
@include background-image-size(44px, 43px);
3548
}
3649

50+
&:last-child {
51+
display: none;
52+
@media only screen and (min-width: 450px) {
53+
display: block;
54+
}
55+
}
56+
3757
p {
3858
@include sofia-pro-medium;
3959
font-size: 12px;
@@ -49,22 +69,36 @@
4969
.data-science-icon-outline {
5070
@include data-icon-outline;
5171
}
72+
.copilot-icon-outline {
73+
@include copilot-icon-outline;
74+
}
5275
}
5376

5477
.info {
55-
width: 260px;
78+
max-width: 650px;
5679
margin-top: 50px;
5780
@include sofia-pro-light;
58-
font-size: 15.4px;
81+
font-size: 15px;
5982
line-height: 22.4px;
6083
text-align: center;
84+
@media only screen and (min-width: 900px) {
85+
max-width: 856px;
86+
margin-top: 90px;
87+
font-size: 22px;
88+
line-height: 32px;
89+
}
6190
}
6291

6392
a {
6493
margin-top: 20px;
6594
margin-bottom: 40px;
6695
@include button-l;
6796
text-decoration: none;
97+
@media only screen and (min-width: 900px) {
98+
@include button-xl;
99+
margin-top: 30px;
100+
margin-bottom: 90px;
101+
}
68102
}
69103
}
70104

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

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,6 @@
1616
width: 100%;
1717
}
1818

19-
.programs {
20-
@media only screen and (max-width: 450px) {
21-
padding-top: 10px;
22-
}
23-
}
24-
2519
.section-title {
2620
@include sofia-pro-bold;
2721
font-size: 22px;

assets/css/my-dashboard/programs.scss

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,9 @@
1616
flex-direction: column;
1717
align-items: center;
1818
width: 300px;
19+
@media only screen and (max-width: 450px) {
20+
padding-top: 10px;
21+
}
1922

2023
img {
2124
width: 100%;

assets/css/partials/_mixins.scss

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -204,17 +204,23 @@
204204

205205
@mixin develop-icon-outline {
206206
background-image: url(/images/ico-track-develop-outline.svg);
207+
background-repeat: no-repeat;
207208
}
208209

209210
@mixin design-icon-outline {
210211
background-image: url(/images/ico-track-design-outline.svg);
212+
background-repeat: no-repeat;
211213
}
212214

213215
@mixin data-icon-outline {
214216
background-image: url(/images/ico-track-data-outline.svg);
217+
background-repeat: no-repeat;
215218
}
216219

217-
220+
@mixin copilot-icon-outline {
221+
background-image: url(/images/ico-track-co_pilot-outline.svg);
222+
background-repeat: no-repeat;
223+
}
218224

219225
// UI REFRESH STYLES
220226
@mixin ui-submit-button {
Lines changed: 10 additions & 0 deletions
Loading

assets/images/ico-track-co_pilot.svg

Lines changed: 10 additions & 0 deletions
Loading

assets/images/ico-track-data.svg

Lines changed: 10 additions & 0 deletions
Loading

0 commit comments

Comments
 (0)