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

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

update img map on workout

  • Property mode set to 100644
File size: 4.4 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.aside-profile {
157    margin-bottom: 2em;
158    img {
159        width: 80px;
160        height: 80px;
161        object-fit: cover;
162        border-radius: 50%;
163    }
164    h2 {
165        font-weight: 400;
166        .font-size(18);
167         margin: 0 0 .5em 0;
168    }
169    ul {
170        list-style-type: none;
171        margin:0;
172        padding:0;
173        .font-size(13);
174        color: @color-main-dark;
175    }
176}
177
178
179
180.workout-activity-tree {
181    list-style-type: none;
182    padding: 0;
183    margin: 0;
184    transition:all 250ms ease-in-out;
185    .font-size(13);
186    >li {
187        margin-bottom: .5em;
188        padding-bottom: .5em;
189        border-bottom: 1px solid @color-main-light;
190    }
191    a {
192        text-decoration: none;
193        display: block;
194        color: @color-app;
195        &:hover{
196            color: @color-main;
197        }
198
199        &.viewing-year {
200            color: @color-main;
201            font-weight: 700;
202            margin-bottom: .5em;
203        }
204        &.viewing-month {
205            background-color: @color-main-light;
206            color: @color-main;
207            font-weight: 700;
208        }
209    }
210}
211
212
213.workout-activity-tree-year {
214    list-style-type: none;
215    padding: 0;
216    margin: 0;
217    >li {
218        display: block;
219        margin-bottom: .5em;
220    }
221    a {
222        display: flex;
223        justify-content: space-between;
224        padding: .5em;
225        background-color: @color-main-xtralight;
226        color: @color-main-dark;
227        &:hover {
228            background-color: @color-main-light;
229        }
230    }
231}
232
233
Note: See TracBrowser for help on using the repository browser.