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

Commit 88ffd7d

Browse files
committed
Fix #995 - Stats row in the dashboard (mobile view)
1 parent d1f1dc6 commit 88ffd7d

File tree

3 files changed

+54
-8
lines changed

3 files changed

+54
-8
lines changed

app/directives/responsive-carousel/responsive-carousel.directive.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ import angular from 'angular'
5151
} else {
5252
// we don't need to build carousel for mobile as we show horizontal scroll
5353
// phone
54-
buildCarouselSlide(2)
54+
buildCarouselSlide(3)
5555
}
5656
}
5757

assets/css/directives/responsive-carousel.scss

+11-2
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,10 @@
9696

9797
.slide {
9898
display: inline-block;
99+
100+
@media only screen and (max-width: 767px) {
101+
display: block;
102+
}
99103
}
100104

101105
// .carousel-elem-list {
@@ -107,12 +111,17 @@
107111
position: absolute;
108112
top: 32px;
109113
left: -30px;
110-
@include forward-slash(1px, 60px, 0, 2px, 30deg);
111114
background-color: $gray-light;
112115
@media only screen and (min-width: 768px) {
113116
top: 32px;
114117
left: -18px;
118+
@include forward-slash(1px, 60px, 0, 2px, 30deg);
115119
}
120+
@media only screen and (max-width: 767px) {
121+
top: -30px;
122+
left: 60px;
123+
@include forward-slash(1px, 70px, 0, 2px, 90deg);
124+
}
116125
}
117126
}
118127
}
@@ -121,8 +130,8 @@
121130
display: inline-block;
122131
margin-right: 65px;
123132
padding: 20px 0;
133+
width: 130px;
124134
@media only screen and (min-width: 768px) {
125-
width: 130px;
126135
margin-right: 35px;
127136
padding: 30px 20px;
128137

assets/css/profile/subtrack.scss

+42-5
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
margin: 30px auto 40px;
1717

1818
.nav-right {
19-
padding-top: 15px;
19+
padding-top: 10px;
2020
padding-left: 15px;
2121
i:hover {
2222
cursor: pointer;
@@ -108,6 +108,13 @@
108108
}
109109
}
110110

111+
.page-state-header {
112+
.page-info {
113+
display: flex;
114+
justify-content: center;
115+
}
116+
}
117+
111118
.subtrack-stats {
112119
// @include module-l;
113120
width: 100%;
@@ -183,15 +190,15 @@
183190
h2.detailed {
184191
margin: 30px auto 0;
185192
text-align: center;
186-
@include sofia-pro-medium;
187-
font-size: 18px;
188-
line-height: 21px;
189-
font-weight: bold;
193+
@include sofia-pro-regular;
194+
font-size: 24px;
195+
line-height: 30px;
190196
text-transform: uppercase;
191197
}
192198
ul.vertical-stats {
193199
width: 90%;
194200
margin: 0 auto;
201+
margin-top: 30px;
195202
li {
196203
@include sofia-pro-regular;
197204
font-size: 15px;
@@ -329,10 +336,20 @@
329336
}
330337
}
331338
}
339+
332340
@media (min-width: 768px) {
333341
.profile-subtrack-container {
334342

335343
.content {
344+
.page-info {
345+
display: flex;
346+
justify-content: center;
347+
}
348+
349+
.nav-right {
350+
padding-top: 15px;
351+
}
352+
336353
.nav {
337354
display: flex;
338355
flex-direction: row;
@@ -544,3 +561,23 @@
544561
}
545562

546563
}
564+
565+
@media only screen and (max-width: 767px) {
566+
.profile-subtrack-container {
567+
.content {
568+
.tc-carousel ul {
569+
display: block;
570+
height: auto;
571+
padding-bottom: 40px;
572+
573+
> li {
574+
position: relative;
575+
576+
.slide {
577+
text-align: center;
578+
}
579+
}
580+
}
581+
}
582+
}
583+
}

0 commit comments

Comments
 (0)