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

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

update basic layout on workout detail

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