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

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

update profile header

  • Property mode set to 100644
File size: 7.9 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            }
259            &.max {
260                background-color: @color-app;
261            }
262            &.min {
263                background-color: #1395CA;
264                margin-right: .5em;
265            }
266
267            &.avg {
268                background-color: #17C898;
269                margin-right: .5em;
270            }
271        }
272    }
273    li {
274        margin-bottom: 2em;
275        margin-right: 1em;
276        color: @color-main-medium;
277        .font-size(15);
278        &.important {
279            .font-size(21);
280            color: @color-main;
281        }
282    }
283}
284
285
286
287/* Week report */
288.svg-cotent {
289    svg {
290        width: 100%;
291        height: 100%;
292    }
293
294    .label {
295        .font-size(13);
296        text-anchor: middle;
297    }
298    .tick {
299        .font-size(13);
300    }
301
302}
303
304/* dashboard graphics*/
305.x-axis path, .x-axis line {
306    fill: none;
307    stroke: none;
308}
309
310.bar {
311    fill: #f8b5be;
312    &:hover {
313        fill: #ee4056;
314    }
315}
316
317.current {
318    fill: #ee4056;
319}
320
321
322
323.week-stats {
324    border: 1px solid @color-main-light;
325    background-color: fade(@color-main-light, 10%);
326    padding: .75em;
327    border-radius: 4px;
328    margin-bottom: 2em;
329    h3 {
330        margin: 0;
331        .font-size(14);
332        & + p {
333            margin: .25em 0 2em 0;
334            color: @color-main-medium;
335            .font-size(13);
336        }
337    }
338}
339
340.workout-activity-summary {
341    list-style-type: none;
342    padding: 0;
343    margin: 0;
344    background-color: fade(@color-main, 80%);
345    margin-bottom: .75em;
346    li {
347        color: @color-main-light;
348        border-bottom: 1px solid @color-main-medium;
349        padding: .75em 1em;
350        display: flex;
351        justify-content: space-between;
352        &:last-child {
353            margin-bottom: 0;
354            border: none;
355        }
356        span {
357            &:first-child {
358                font-weight: bold;
359            }
360        }
361    }
362}
363
364.workout-activity-tree {
365    list-style-type: none;
366    padding: 0;
367    margin: 0;
368    transition:all 250ms ease-in-out;
369    .font-size(13);
370    >li {
371        margin-bottom: .5em;
372        padding-bottom: .5em;
373        border-bottom: 1px solid @color-main-light;
374    }
375    a {
376        text-decoration: none;
377        display: block;
378        color: @color-app;
379        &:hover{
380            color: @color-main;
381        }
382
383        &.viewing-year {
384            color: @color-main;
385            font-weight: 700;
386            margin-bottom: .5em;
387            .font-size(16);
388        }
389        &.viewing-month {
390            background-color: @color-main-light;
391            color: @color-main;
392            font-weight: 700;
393        }
394    }
395}
396
397
398.workout-activity-tree-year {
399    list-style-type: none;
400    padding: 0;
401    margin: 0;
402    >li {
403        display: block;
404        margin-bottom: .5em;
405    }
406    a {
407        display: flex;
408        justify-content: space-between;
409        padding: .5em;
410        background-color: @color-main-xtralight;
411        color: @color-main-dark;
412        &:hover {
413            background-color: @color-main-light;
414        }
415    }
416}
417
418
Note: See TracBrowser for help on using the repository browser.