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

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

update profile header ui

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