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

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

update dashboard layout ui

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