Changeset 978575d in OpenWorkouts-current


Ignore:
Timestamp:
Feb 6, 2019, 1:49:51 PM (4 years ago)
Author:
Segundo Fdez <segun.2@…>
Branches:
current, feature/docs, master
Children:
01674ff
Parents:
a3c3baa
Message:

update map on workout detail

Location:
ow
Files:
1 added
1 deleted
6 edited

Legend:

Unmodified
Added
Removed
  • ow/static/css/main.css

    ra3c3baa r978575d  
    345345[hidden] {
    346346  display: none;
     347}
     348/* Leaflet-elevation openworkouts theme */
     349/* background color */
     350.openworkouts-theme.leaflet-control.elevation .background {
     351  background-color: transparent;
     352}
     353/* Axis x and y*/
     354.openworkouts-theme.leaflet-control.elevation .axis line,
     355.openworkouts-theme.leaflet-control.elevation .axis path {
     356  stroke: #959595;
     357}
     358/* selected drag area*/
     359.openworkouts-theme.leaflet-control.elevation .mouse-drag {
     360  fill: rgba(21, 21, 21, 0.1);
     361}
     362/* Icon to show when the chart is collapse */
     363/*
     364.openworkouts-theme.leaflet-control.elevation .elevation-toggle-icon {
     365    background: url(images/elevation-steelblue.png) no-repeat center center;
     366}
     367*/
     368/* Graph color area background */
     369.openworkouts-theme.leaflet-control.elevation .area {
     370  fill: #f8b5be;
     371  stroke: transparent;
     372}
     373/* vertical line to know where are you */
     374.openworkouts-theme.leaflet-control.elevation .mouse-focus-line {
     375  stroke: #151515;
     376}
     377/* graph color line area */
     378/*.leaflet-control.elevation .area {
     379    fill: #f8b5be;
     380}
     381*/
     382/* box with parameters */
     383.mouse-focus-label {
     384  opacity: 0.8;
     385}
     386.mouse-focus-label-text {
     387  font-size: 13px;
     388  font-size: 0.8125rem;
     389  font-family: 'Open Sans', sans-serif;
     390  font-weight: 100 !important;
     391}
     392/*.mouse-focus-label-y {}*/
     393/* Color line on map */
     394.leaflet-interactive {
     395  stroke: #151515;
     396  opacity: 0.6;
     397  stroke-width: 6px;
     398  stroke-linecap: round;
     399}
     400/* indicator on map line*/
     401.openworkouts-theme.height-focus.line {
     402  stroke: #151515;
     403  display: none;
     404  /*fill: #4682b4;*/
     405}
     406/* txt on map */
     407.openworkouts-theme.height-focus-label {
     408  display: none;
     409}
     410/* indicator on map circle */
     411.openworkouts-theme.height-focus.circle-lower {
     412  fill: #151515;
     413  stroke: #EE4056;
     414  stroke-width: 10px;
    347415}
    348416.hidden,
     
    794862  color: #959595;
    795863  margin-bottom: 0.25em;
     864  /* color for future features */
    796865}
    797866.workout-detail-info ul span.min,
     
    802871  padding: 0.5em 0.85em;
    803872  border-radius: 3px;
    804 }
    805 .workout-detail-info ul span.max {
    806   background-color: #EE4056;
    807 }
    808 .workout-detail-info ul span.min {
    809   background-color: #1395CA;
    810   margin-right: 0.5em;
    811 }
    812 .workout-detail-info ul span.avg {
    813   background-color: #17C898;
    814   margin-right: 0.5em;
     873  background-color: #e1e1e1;
     874  color: #959595;
    815875}
    816876.workout-detail-info li {
    817   margin-bottom: 2em;
     877  margin-bottom: 1em;
    818878  margin-right: 1em;
    819879  color: #959595;
  • ow/static/less/main.less

    ra3c3baa r978575d  
    44// Normalize
    55@import "vendors/normalize.less";
     6@import "vendors/leaflet-elevation.less";
     7
    68
    79// Variables
  • ow/static/less/modules/workout.less

    ra3c3baa r978575d  
    256256                padding: .5em .85em;
    257257                border-radius: 3px;
     258                background-color: @color-main-light;
     259                color: @color-main-medium;
    258260            }
    259             &.max {
    260                 background-color: @color-app;
    261             }
    262             &.min {
    263                 background-color: #1395CA;
    264                 margin-right: .5em;
    265             }
    266 
    267             &.avg {
    268                 background-color: #17C898;
    269                 margin-right: .5em;
    270             }
     261
     262            /* color for future features */
     263            // &.max {
     264            //     background-color: @color-app;
     265            // }
     266            // &.min {
     267            //     background-color: #1395CA;
     268            //     margin-right: .5em;
     269            // }
     270
     271            // &.avg {
     272            //     background-color: #17C898;
     273            //     margin-right: .5em;
     274            // }
    271275        }
    272276    }
    273277    li {
    274         margin-bottom: 2em;
     278        margin-bottom: 1em;
    275279        margin-right: 1em;
    276280        color: @color-main-medium;
  • ow/static/less/variables.less

    ra3c3baa r978575d  
    99@color-app-medium: lighten(@color-app, 15%);
    1010@color-app-light: lighten(@color-app, 25%);
     11
     12@color-app-important: #F60002;
    1113
    1214
  • ow/templates/base.pt

    ra3c3baa r978575d  
    3232    </title>
    3333
     34    <metal:css metal:define-slot="css"></metal:css>
     35
    3436    <link rel="stylesheet"
    3537          href="${request.static_url('ow:static/css/main.css')}" />
    36 
    37     <link rel="stylesheet"
    38           href="${request.static_url('ow:static/css/forms.css')}" />
    39 
    40     <link rel="stylesheet"
    41           href="${request.static_url('ow:static/css/openworkouts.css')}" />
    42 
    43     <metal:css metal:define-slot="css"></metal:css>
    4438
    4539    <metal:header-js metal:define-slot="header-js"></metal:header-js>
  • ow/templates/workout.pt

    ra3c3baa r978575d  
    1818    <link rel="stylesheet" tal:condition="context.has_gpx"
    1919          href="${request.static_url('ow:static/components/leaflet-elevation/leaflet-elevation.css')}" />
    20     <link rel="stylesheet"
    21           href="${request.static_url('ow:static/css/leaflet-elevation.css')}" />
    2220  </metal:css>
    2321
Note: See TracChangeset for help on using the changeset viewer.