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