source: OpenWorkouts-current/ow/static/less/modules/workout.less @ 978575d

currentfeature/docs
Last change on this file since 978575d was 978575d, checked in by Segundo Fdez <segun.2@…>, 5 years ago

update map on workout detail

  • Property mode set to 100644
File size: 8.1 KB
Line 
1.workout-content {
2    padding: 2em  1em;
3    @media (min-width: @screen-s){
4        padding: 2em 6em;
5    }
6     @media (min-width: @screen-m){
7        display: flex;
8        justify-content:space-between;
9    }
10}
11
12/* list mode */
13.workout-list {
14    margin-right: 2em;
15    width: 100%;
16    >h2{
17        font-weight: 300;
18        margin: 0 0 1.5em;
19    }
20    /* provisional layout, replace this with grid layout system based on final content */
21}
22
23/* Module resume on dashboard workouts */
24.workout-resume {
25    padding: 1.5em 0;
26    position: relative;
27    max-width: 700px;
28    @media (min-width: @screen-m){
29        padding-left: 2em;
30        border-left: 1px solid @color-main-light;
31        transition: all 250ms ease-in-out;
32    }
33    &:hover{
34        border-color: @color-main;
35        .workout-title{
36            &:before{
37                color: @color-main;
38            }
39        }
40    }
41    ul{
42        padding: 0;
43        list-style-type: none;
44        .font-size(13);
45        a{
46            display: block;
47            text-decoration: none;
48        }
49    }
50}
51.bike{
52    &:before{
53        display: block;
54        //position: absolute;
55        content: "";
56        width: 30px;
57        height: 30px;
58        //left:-3.25em;
59        //top: 1.6em;
60        background-image: url('../media/img/bike.svg');
61        background-size: 100%;
62    }
63}
64
65.workout-title{
66    .font-size(14);
67    margin: 0 0 0em 0;
68    position: relative;
69    &:before{
70        transition: all 250ms ease-in-out;
71        content: "▶";
72        position: absolute;
73        left: -3.25em;
74        top:.35em;
75        color:@color-main-light;
76        .font-size(10);
77    }
78    a{
79        color: @color-main;
80        text-decoration: none;
81        &:hover {
82            color: @color-app;
83        }
84    }
85}
86
87.workout-info {
88    display: flex;
89    align-items:center;
90    margin: .25em 0;
91    li{
92        color: @color-main-medium;
93        &:after{
94            content: "|";
95            margin:0 .5em;
96        }
97        &:last-child{
98            &:after{
99                content: "";
100                margin:0;
101            }
102        }
103    }
104}
105
106.workout-map {
107    margin-top: 1em;
108    img {
109        width: 100%;
110    }
111}
112
113.workout-intro {
114    .font-size(13);
115    color: @color-main;
116}
117
118.workout-options{
119    display: inline-block;
120    border:1px solid @color-main-light;
121    margin-bottom: 0;
122    border-radius: 4px;
123    padding: 0;
124    width: auto;
125    background-color: white;
126    li{
127        display: inline-block;
128        border-right: 1px solid @color-main-light;
129        &:last-child{
130            border-right:none;
131        }
132    }
133    a{
134        display: block;
135        color: @color-main-medium;
136        padding: .5em .75em;
137        text-decoration: none;
138        &:hover{
139            color: @color-main;
140        }
141        &.is-active {
142            background-color: @color-main-medium;
143            color: white;
144        }
145    }
146}
147
148.owo-del{
149    a{
150        &:hover{
151            color: red;
152        }
153    }
154}
155
156.workout-aside{
157    width: 100%;
158    @media (min-width: @screen-m){
159        max-width: 300px;
160        padding-left: 1.5em;
161        border-left:1px solid @color-main-light;
162    }
163}
164
165
166
167.aside-profile {
168    margin-bottom: 1em;
169    img {
170        width: 80px;
171        height: 80px;
172        object-fit: cover;
173        border-radius: 50%;
174    }
175    h2 {
176        font-weight: 400;
177        .font-size(18);
178         margin: 0 0 .5em 0;
179    }
180    ul {
181        list-style-type: none;
182        margin:0;
183        padding:0;
184        .font-size(13);
185        color: @color-main-dark;
186    }
187}
188
189
190
191/* Workout detail */
192#map {
193    height: 400px;
194    @media (min-width: @screen-s){
195        height: calc(100vh - 380px);
196    }
197}
198
199.workout-detail {
200    padding: 0em  1em;
201    @media (min-width: @screen-s){
202        max-width: 1280px;
203        margin: 0 auto;
204    }
205     @media (min-width: @screen-m){
206        display: flex;
207        justify-content:space-between;
208    }
209}
210
211.workout-detail-resume {
212    max-width: 500px;
213    margin-bottom: 2em;
214    padding-top: 2em;
215    @media (min-width: @screen-m){
216        margin-right: 6em;
217    }
218    h3 {
219        margin-top: 0;
220        margin-bottom: .5em;
221        & + div {
222            .font-size(14);
223            color: @color-main-medium;
224            line-height: 1.35em;
225        }
226    }
227    .workout-options {
228        .font-size(13);
229    }
230}
231
232.workout-detail-info {
233    max-width: 600px;
234    @media (min-width: @screen-m){
235        border-right: 1px solid @color-main-light;
236        border-left: 1px solid @color-main-light;
237        padding:2em 1em 2em 2em;
238    }
239    ul {
240        list-style-type: none;
241        padding:0;
242        margin: 0;
243        display: flex;
244        justify-content:space-between;
245        flex-flow: row wrap;
246        span {
247            display: block;
248            .font-size(13);
249            color: @color-main-medium;
250            margin-bottom: .25em;
251            &.min,
252            &.avg,
253            &.max {
254                display: inline-block;
255                color: white;
256                padding: .5em .85em;
257                border-radius: 3px;
258                background-color: @color-main-light;
259                color: @color-main-medium;
260            }
261
262            /* color for future features */
263            // &.max {
264            //     background-color: @color-app;
265            // }
266            // &.min {
267            //     background-color: #1395CA;
268            //     margin-right: .5em;
269            // }
270
271            // &.avg {
272            //     background-color: #17C898;
273            //     margin-right: .5em;
274            // }
275        }
276    }
277    li {
278        margin-bottom: 1em;
279        margin-right: 1em;
280        color: @color-main-medium;
281        .font-size(15);
282        &.important {
283            .font-size(21);
284            color: @color-main;
285        }
286    }
287}
288
289
290
291/* Week report */
292.svg-cotent {
293    svg {
294        width: 100%;
295        height: 100%;
296    }
297
298    .label {
299        .font-size(13);
300        text-anchor: middle;
301    }
302    .tick {
303        .font-size(13);
304    }
305
306}
307
308/* dashboard graphics*/
309.x-axis path, .x-axis line {
310    fill: none;
311    stroke: none;
312}
313
314.bar {
315    fill: #f8b5be;
316    &:hover {
317        fill: #ee4056;
318    }
319}
320
321.current {
322    fill: #ee4056;
323}
324
325
326
327.week-stats {
328    border: 1px solid @color-main-light;
329    background-color: fade(@color-main-light, 10%);
330    padding: .75em;
331    border-radius: 4px;
332    margin-bottom: 2em;
333    h3 {
334        margin: 0;
335        .font-size(14);
336        & + p {
337            margin: .25em 0 2em 0;
338            color: @color-main-medium;
339            .font-size(13);
340        }
341    }
342}
343
344.workout-activity-summary {
345    list-style-type: none;
346    padding: 0;
347    margin: 0;
348    background-color: fade(@color-main, 80%);
349    margin-bottom: .75em;
350    li {
351        color: @color-main-light;
352        border-bottom: 1px solid @color-main-medium;
353        padding: .75em 1em;
354        display: flex;
355        justify-content: space-between;
356        &:last-child {
357            margin-bottom: 0;
358            border: none;
359        }
360        span {
361            &:first-child {
362                font-weight: bold;
363            }
364        }
365    }
366}
367
368.workout-activity-tree {
369    list-style-type: none;
370    padding: 0;
371    margin: 0;
372    transition:all 250ms ease-in-out;
373    .font-size(13);
374    >li {
375        margin-bottom: .5em;
376        padding-bottom: .5em;
377        border-bottom: 1px solid @color-main-light;
378    }
379    a {
380        text-decoration: none;
381        display: block;
382        color: @color-app;
383        &:hover{
384            color: @color-main;
385        }
386
387        &.viewing-year {
388            color: @color-main;
389            font-weight: 700;
390            margin-bottom: .5em;
391            .font-size(16);
392        }
393        &.viewing-month {
394            background-color: @color-main-light;
395            color: @color-main;
396            font-weight: 700;
397        }
398    }
399}
400
401
402.workout-activity-tree-year {
403    list-style-type: none;
404    padding: 0;
405    margin: 0;
406    >li {
407        display: block;
408        margin-bottom: .5em;
409    }
410    a {
411        display: flex;
412        justify-content: space-between;
413        padding: .5em;
414        background-color: @color-main-xtralight;
415        color: @color-main-dark;
416        &:hover {
417            background-color: @color-main-light;
418        }
419    }
420}
421
422
Note: See TracBrowser for help on using the repository browser.