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

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

Updated ui for profile basic interface

  • Property mode set to 100644
File size: 5.8 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/* Week report */
190.svg-cotent {
191    svg {
192        width: 100%;
193        height: 100%;
194    }
195
196    .label {
197        .font-size(13);
198        text-anchor: middle;
199    }
200    .tick {
201        .font-size(13);
202    }
203
204}
205
206/* dashboard graphics*/
207.x-axis path, .x-axis line {
208    fill: none;
209    stroke: none;
210}
211
212.bar {
213    fill: #f8b5be;
214    &:hover {
215        fill: #ee4056;
216    }
217}
218
219.current {
220    fill: #ee4056;
221}
222
223
224
225.week-stats {
226    border: 1px solid @color-main-light;
227    background-color: fade(@color-main-light, 10%);
228    padding: .75em;
229    border-radius: 4px;
230    margin-bottom: 2em;
231    h3 {
232        margin: 0;
233        .font-size(14);
234        & + p {
235            margin: .25em 0 2em 0;
236            color: @color-main-medium;
237            .font-size(13);
238        }
239    }
240}
241
242.workout-activity-summary {
243    list-style-type: none;
244    padding: 0;
245    margin: 0;
246    background-color: fade(@color-main, 80%);
247    margin-bottom: .75em;
248    li {
249        color: @color-main-light;
250        border-bottom: 1px solid @color-main-medium;
251        padding: .75em 1em;
252        display: flex;
253        justify-content: space-between;
254        &:last-child {
255            margin-bottom: 0;
256            border: none;
257        }
258        span {
259            &:first-child {
260                font-weight: bold;
261            }
262        }
263    }
264}
265
266.workout-activity-tree {
267    list-style-type: none;
268    padding: 0;
269    margin: 0;
270    transition:all 250ms ease-in-out;
271    .font-size(13);
272    >li {
273        margin-bottom: .5em;
274        padding-bottom: .5em;
275        border-bottom: 1px solid @color-main-light;
276    }
277    a {
278        text-decoration: none;
279        display: block;
280        color: @color-app;
281        &:hover{
282            color: @color-main;
283        }
284
285        &.viewing-year {
286            color: @color-main;
287            font-weight: 700;
288            margin-bottom: .5em;
289            .font-size(16);
290        }
291        &.viewing-month {
292            background-color: @color-main-light;
293            color: @color-main;
294            font-weight: 700;
295        }
296    }
297}
298
299
300.workout-activity-tree-year {
301    list-style-type: none;
302    padding: 0;
303    margin: 0;
304    >li {
305        display: block;
306        margin-bottom: .5em;
307    }
308    a {
309        display: flex;
310        justify-content: space-between;
311        padding: .5em;
312        background-color: @color-main-xtralight;
313        color: @color-main-dark;
314        &:hover {
315            background-color: @color-main-light;
316        }
317    }
318}
319
320
Note: See TracBrowser for help on using the repository browser.