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

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

Added profile basic ui

  • Property mode set to 100644
File size: 5.7 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    }
140}
141
142.owo-del{
143    a{
144        &:hover{
145            color: red;
146        }
147    }
148}
149
150.workout-aside{
151    width: 100%;
152    @media (min-width: @screen-m){
153        max-width: 300px;
154        padding-left: 1.5em;
155        border-left:1px solid @color-main-light;
156    }
157}
158
159
160
161.aside-profile {
162    margin-bottom: 1em;
163    img {
164        width: 80px;
165        height: 80px;
166        object-fit: cover;
167        border-radius: 50%;
168    }
169    h2 {
170        font-weight: 400;
171        .font-size(18);
172         margin: 0 0 .5em 0;
173    }
174    ul {
175        list-style-type: none;
176        margin:0;
177        padding:0;
178        .font-size(13);
179        color: @color-main-dark;
180    }
181}
182
183
184
185/* Week report */
186.svg-cotent {
187    svg {
188        width: 100%;
189        height: 100%;
190    }
191
192    .label {
193        .font-size(13);
194        text-anchor: middle;
195    }
196    .tick {
197        .font-size(13);
198    }
199
200}
201
202/* dashboard graphics*/
203.x-axis path, .x-axis line {
204    fill: none;
205    stroke: none;
206}
207
208.bar {
209    fill: #f8b5be;
210    &:hover {
211        fill: #ee4056;
212    }
213}
214
215.current {
216    fill: #ee4056;
217}
218
219
220
221.week-stats {
222    border: 1px solid @color-main-light;
223    background-color: fade(@color-main-light, 10%);
224    padding: .75em;
225    border-radius: 4px;
226    margin-bottom: 2em;
227    h3 {
228        margin: 0;
229        .font-size(14);
230        & + p {
231            margin: .25em 0 2em 0;
232            color: @color-main-medium;
233            .font-size(13);
234        }
235    }
236}
237
238.workout-activity-summary {
239    list-style-type: none;
240    padding: 0;
241    margin: 0;
242    background-color: fade(@color-main, 80%);
243    margin-bottom: .75em;
244    li {
245        color: @color-main-light;
246        border-bottom: 1px solid @color-main-medium;
247        padding: .75em 1em;
248        display: flex;
249        justify-content: space-between;
250        &:last-child {
251            margin-bottom: 0;
252            border: none;
253        }
254        span {
255            &:first-child {
256                font-weight: bold;
257            }
258        }
259    }
260}
261
262.workout-activity-tree {
263    list-style-type: none;
264    padding: 0;
265    margin: 0;
266    transition:all 250ms ease-in-out;
267    .font-size(13);
268    >li {
269        margin-bottom: .5em;
270        padding-bottom: .5em;
271        border-bottom: 1px solid @color-main-light;
272    }
273    a {
274        text-decoration: none;
275        display: block;
276        color: @color-app;
277        &:hover{
278            color: @color-main;
279        }
280
281        &.viewing-year {
282            color: @color-main;
283            font-weight: 700;
284            margin-bottom: .5em;
285            .font-size(16);
286        }
287        &.viewing-month {
288            background-color: @color-main-light;
289            color: @color-main;
290            font-weight: 700;
291        }
292    }
293}
294
295
296.workout-activity-tree-year {
297    list-style-type: none;
298    padding: 0;
299    margin: 0;
300    >li {
301        display: block;
302        margin-bottom: .5em;
303    }
304    a {
305        display: flex;
306        justify-content: space-between;
307        padding: .5em;
308        background-color: @color-main-xtralight;
309        color: @color-main-dark;
310        &:hover {
311            background-color: @color-main-light;
312        }
313    }
314}
315
316
Note: See TracBrowser for help on using the repository browser.