source: OpenWorkouts-current/ow/static/less/modules/workout.less @ 01674ff

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

Update forms and fix detail workout view

  • 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    width: 100%;
194    height: 400px;
195    @media (min-width: @screen-s){
196        height: calc(100vh - 465px);
197    }
198}
199
200.workout-detail {
201    padding: 0em  1em;
202    @media (min-width: @screen-s){
203        max-width: 1280px;
204        margin: 0 auto;
205    }
206     @media (min-width: @screen-m){
207        display: flex;
208        justify-content:space-between;
209    }
210}
211
212.workout-detail-resume {
213    max-width: 500px;
214    margin-bottom: 2em;
215    padding-top: 2em;
216    @media (min-width: @screen-m){
217        margin-right: 6em;
218    }
219    h3 {
220        margin-top: 0;
221        margin-bottom: .5em;
222        & + div {
223            .font-size(14);
224            color: @color-main-medium;
225            line-height: 1.35em;
226        }
227    }
228    .workout-options {
229        .font-size(13);
230    }
231}
232
233.workout-detail-info {
234    max-width: 600px;
235    @media (min-width: @screen-m){
236        border-right: 1px solid @color-main-light;
237        border-left: 1px solid @color-main-light;
238        padding:2em 1em 2em 2em;
239    }
240    ul {
241        list-style-type: none;
242        padding:0;
243        margin: 0;
244        display: flex;
245        justify-content:space-between;
246        flex-flow: row wrap;
247        span {
248            display: block;
249            .font-size(13);
250            color: @color-main-medium;
251            margin-bottom: .25em;
252            &.min,
253            &.avg,
254            &.max {
255                display: inline-block;
256                color: white;
257                padding: .5em .85em;
258                border-radius: 3px;
259                background-color: @color-main-light;
260                color: @color-main-medium;
261            }
262
263            /* color for future features */
264            // &.max {
265            //     background-color: @color-app;
266            // }
267            // &.min {
268            //     background-color: #1395CA;
269            //     margin-right: .5em;
270            // }
271
272            // &.avg {
273            //     background-color: #17C898;
274            //     margin-right: .5em;
275            // }
276        }
277    }
278    li {
279        margin-bottom: 1em;
280        margin-right: 1em;
281        color: @color-main-medium;
282        .font-size(15);
283        &.important {
284            .font-size(21);
285            color: @color-main;
286        }
287    }
288}
289
290
291
292/* Week report */
293.svg-cotent {
294    svg {
295        width: 100%;
296        height: 100%;
297    }
298
299    .label {
300        .font-size(13);
301        text-anchor: middle;
302    }
303    .tick {
304        .font-size(13);
305    }
306
307}
308
309/* dashboard graphics*/
310.x-axis path, .x-axis line {
311    fill: none;
312    stroke: none;
313}
314
315.bar {
316    fill: #f8b5be;
317    &:hover {
318        fill: #ee4056;
319    }
320}
321
322.current {
323    fill: #ee4056;
324}
325
326
327
328.week-stats {
329    border: 1px solid @color-main-light;
330    background-color: fade(@color-main-light, 10%);
331    padding: .75em;
332    border-radius: 4px;
333    margin-bottom: 2em;
334    h3 {
335        margin: 0;
336        .font-size(14);
337        & + p {
338            margin: .25em 0 2em 0;
339            color: @color-main-medium;
340            .font-size(13);
341        }
342    }
343}
344
345.workout-activity-summary {
346    list-style-type: none;
347    padding: 0;
348    margin: 0;
349    background-color: fade(@color-main, 80%);
350    margin-bottom: .75em;
351    li {
352        color: @color-main-light;
353        border-bottom: 1px solid @color-main-medium;
354        padding: .75em 1em;
355        display: flex;
356        justify-content: space-between;
357        &:last-child {
358            margin-bottom: 0;
359            border: none;
360        }
361        span {
362            &:first-child {
363                font-weight: bold;
364            }
365        }
366    }
367}
368
369.workout-activity-tree {
370    list-style-type: none;
371    padding: 0;
372    margin: 0;
373    transition:all 250ms ease-in-out;
374    .font-size(13);
375    >li {
376        margin-bottom: .5em;
377        padding-bottom: .5em;
378        border-bottom: 1px solid @color-main-light;
379    }
380    a {
381        text-decoration: none;
382        display: block;
383        color: @color-app;
384        &:hover{
385            color: @color-main;
386        }
387
388        &.viewing-year {
389            color: @color-main;
390            font-weight: 700;
391            margin-bottom: .5em;
392            .font-size(16);
393        }
394        &.viewing-month {
395            background-color: @color-main-light;
396            color: @color-main;
397            font-weight: 700;
398        }
399    }
400}
401
402
403.workout-activity-tree-year {
404    list-style-type: none;
405    padding: 0;
406    margin: 0;
407    >li {
408        display: block;
409        margin-bottom: .5em;
410    }
411    a {
412        display: flex;
413        justify-content: space-between;
414        padding: .5em;
415        background-color: @color-main-xtralight;
416        color: @color-main-dark;
417        &:hover {
418            background-color: @color-main-light;
419        }
420    }
421}
422
423
Note: See TracBrowser for help on using the repository browser.