source: OpenWorkouts-current/ow/static/css/main.css @ fd6da93

currentfeature/docs
Last change on this file since fd6da93 was fd6da93, checked in by Borja Lopez <borja@…>, 5 years ago

(#56) Add support for different locale/language:

  • Let users choose their lang/locale in the edit profile page
  • Set the currently selected locale as a cookie (following pyramid docs on how to set the locale using the default locale negotiator)
  • Save the locale setting for each user as an attribute on the User model
  • Set the proper locale as a cookie on login
  • Unset the locale cookie on logout

Default available locales for now are en (english) and es (spanish)

  • Property mode set to 100644
File size: 29.7 KB
Line 
1@font-face {
2  font-family: 'Open Sans';
3  font-style: italic;
4  font-weight: 300;
5  src: local('Open Sans Light Italic'), local('OpenSans-LightItalic'), url(https://fonts.gstatic.com/s/opensans/v15/memnYaGs126MiZpBA-UFUKWyV9hrIqY.ttf) format('truetype');
6}
7@font-face {
8  font-family: 'Open Sans';
9  font-style: italic;
10  font-weight: 400;
11  src: local('Open Sans Italic'), local('OpenSans-Italic'), url(https://fonts.gstatic.com/s/opensans/v15/mem6YaGs126MiZpBA-UFUK0Zdcg.ttf) format('truetype');
12}
13@font-face {
14  font-family: 'Open Sans';
15  font-style: italic;
16  font-weight: 700;
17  src: local('Open Sans Bold Italic'), local('OpenSans-BoldItalic'), url(https://fonts.gstatic.com/s/opensans/v15/memnYaGs126MiZpBA-UFUKWiUNhrIqY.ttf) format('truetype');
18}
19@font-face {
20  font-family: 'Open Sans';
21  font-style: normal;
22  font-weight: 300;
23  src: local('Open Sans Light'), local('OpenSans-Light'), url(https://fonts.gstatic.com/s/opensans/v15/mem5YaGs126MiZpBA-UN_r8OUuhs.ttf) format('truetype');
24}
25@font-face {
26  font-family: 'Open Sans';
27  font-style: normal;
28  font-weight: 400;
29  src: local('Open Sans Regular'), local('OpenSans-Regular'), url(https://fonts.gstatic.com/s/opensans/v15/mem8YaGs126MiZpBA-UFVZ0e.ttf) format('truetype');
30}
31@font-face {
32  font-family: 'Open Sans';
33  font-style: normal;
34  font-weight: 700;
35  src: local('Open Sans Bold'), local('OpenSans-Bold'), url(https://fonts.gstatic.com/s/opensans/v15/mem5YaGs126MiZpBA-UN7rgOUuhs.ttf) format('truetype');
36}
37@font-face {
38  font-family: 'Open Sans';
39  font-style: normal;
40  font-weight: 800;
41  src: local('Open Sans ExtraBold'), local('OpenSans-ExtraBold'), url(https://fonts.gstatic.com/s/opensans/v15/mem5YaGs126MiZpBA-UN8rsOUuhs.ttf) format('truetype');
42}
43/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */
44/* Document
45   ========================================================================== */
46/**
47 * 1. Correct the line height in all browsers.
48 * 2. Prevent adjustments of font size after orientation changes in iOS.
49 */
50html {
51  line-height: 1.15;
52  /* 1 */
53  -webkit-text-size-adjust: 100%;
54  /* 2 */
55}
56/* Sections
57   ========================================================================== */
58/**
59 * Remove the margin in all browsers.
60 */
61body {
62  margin: 0;
63}
64/**
65 * Render the `main` element consistently in IE.
66 */
67main {
68  display: block;
69}
70/**
71 * Correct the font size and margin on `h1` elements within `section` and
72 * `article` contexts in Chrome, Firefox, and Safari.
73 */
74h1 {
75  font-size: 2em;
76  margin: 0.67em 0;
77}
78/* Grouping content
79   ========================================================================== */
80/**
81 * 1. Add the correct box sizing in Firefox.
82 * 2. Show the overflow in Edge and IE.
83 */
84hr {
85  box-sizing: content-box;
86  /* 1 */
87  height: 0;
88  /* 1 */
89  overflow: visible;
90  /* 2 */
91}
92/**
93 * 1. Correct the inheritance and scaling of font size in all browsers.
94 * 2. Correct the odd `em` font sizing in all browsers.
95 */
96pre {
97  font-family: monospace, monospace;
98  /* 1 */
99  font-size: 1em;
100  /* 2 */
101}
102/* Text-level semantics
103   ========================================================================== */
104/**
105 * Remove the gray background on active links in IE 10.
106 */
107a {
108  background-color: transparent;
109}
110/**
111 * 1. Remove the bottom border in Chrome 57-
112 * 2. Add the correct text decoration in Chrome, Edge, IE, Opera, and Safari.
113 */
114abbr[title] {
115  border-bottom: none;
116  /* 1 */
117  text-decoration: underline;
118  /* 2 */
119  text-decoration: underline dotted;
120  /* 2 */
121}
122/**
123 * Add the correct font weight in Chrome, Edge, and Safari.
124 */
125b,
126strong {
127  font-weight: bolder;
128}
129/**
130 * 1. Correct the inheritance and scaling of font size in all browsers.
131 * 2. Correct the odd `em` font sizing in all browsers.
132 */
133code,
134kbd,
135samp {
136  font-family: monospace, monospace;
137  /* 1 */
138  font-size: 1em;
139  /* 2 */
140}
141/**
142 * Add the correct font size in all browsers.
143 */
144small {
145  font-size: 80%;
146}
147/**
148 * Prevent `sub` and `sup` elements from affecting the line height in
149 * all browsers.
150 */
151sub,
152sup {
153  font-size: 75%;
154  line-height: 0;
155  position: relative;
156  vertical-align: baseline;
157}
158sub {
159  bottom: -0.25em;
160}
161sup {
162  top: -0.5em;
163}
164/* Embedded content
165   ========================================================================== */
166/**
167 * Remove the border on images inside links in IE 10.
168 */
169img {
170  border-style: none;
171}
172/* Forms
173   ========================================================================== */
174/**
175 * 1. Change the font styles in all browsers.
176 * 2. Remove the margin in Firefox and Safari.
177 */
178button,
179input,
180optgroup,
181select,
182textarea {
183  font-family: inherit;
184  /* 1 */
185  font-size: 100%;
186  /* 1 */
187  line-height: 1.15;
188  /* 1 */
189  margin: 0;
190  /* 2 */
191}
192/**
193 * Show the overflow in IE.
194 * 1. Show the overflow in Edge.
195 */
196button,
197input {
198  /* 1 */
199  overflow: visible;
200}
201/**
202 * Remove the inheritance of text transform in Edge, Firefox, and IE.
203 * 1. Remove the inheritance of text transform in Firefox.
204 */
205button,
206select {
207  /* 1 */
208  text-transform: none;
209}
210/**
211 * Correct the inability to style clickable types in iOS and Safari.
212 */
213button,
214[type="button"],
215[type="reset"],
216[type="submit"] {
217  -webkit-appearance: button;
218}
219/**
220 * Remove the inner border and padding in Firefox.
221 */
222button::-moz-focus-inner,
223[type="button"]::-moz-focus-inner,
224[type="reset"]::-moz-focus-inner,
225[type="submit"]::-moz-focus-inner {
226  border-style: none;
227  padding: 0;
228}
229/**
230 * Restore the focus styles unset by the previous rule.
231 */
232button:-moz-focusring,
233[type="button"]:-moz-focusring,
234[type="reset"]:-moz-focusring,
235[type="submit"]:-moz-focusring {
236  outline: 1px dotted ButtonText;
237}
238/**
239 * Correct the padding in Firefox.
240 */
241fieldset {
242  padding: 0.35em 0.75em 0.625em;
243}
244/**
245 * 1. Correct the text wrapping in Edge and IE.
246 * 2. Correct the color inheritance from `fieldset` elements in IE.
247 * 3. Remove the padding so developers are not caught out when they zero out
248 *    `fieldset` elements in all browsers.
249 */
250legend {
251  box-sizing: border-box;
252  /* 1 */
253  color: inherit;
254  /* 2 */
255  display: table;
256  /* 1 */
257  max-width: 100%;
258  /* 1 */
259  padding: 0;
260  /* 3 */
261  white-space: normal;
262  /* 1 */
263}
264/**
265 * Add the correct vertical alignment in Chrome, Firefox, and Opera.
266 */
267progress {
268  vertical-align: baseline;
269}
270/**
271 * Remove the default vertical scrollbar in IE 10+.
272 */
273textarea {
274  overflow: auto;
275}
276/**
277 * 1. Add the correct box sizing in IE 10.
278 * 2. Remove the padding in IE 10.
279 */
280[type="checkbox"],
281[type="radio"] {
282  box-sizing: border-box;
283  /* 1 */
284  padding: 0;
285  /* 2 */
286}
287/**
288 * Correct the cursor style of increment and decrement buttons in Chrome.
289 */
290[type="number"]::-webkit-inner-spin-button,
291[type="number"]::-webkit-outer-spin-button {
292  height: auto;
293}
294/**
295 * 1. Correct the odd appearance in Chrome and Safari.
296 * 2. Correct the outline style in Safari.
297 */
298[type="search"] {
299  -webkit-appearance: textfield;
300  /* 1 */
301  outline-offset: -2px;
302  /* 2 */
303}
304/**
305 * Remove the inner padding in Chrome and Safari on macOS.
306 */
307[type="search"]::-webkit-search-decoration {
308  -webkit-appearance: none;
309}
310/**
311 * 1. Correct the inability to style clickable types in iOS and Safari.
312 * 2. Change font properties to `inherit` in Safari.
313 */
314::-webkit-file-upload-button {
315  -webkit-appearance: button;
316  /* 1 */
317  font: inherit;
318  /* 2 */
319}
320/* Interactive
321   ========================================================================== */
322/*
323 * Add the correct display in Edge, IE 10+, and Firefox.
324 */
325details {
326  display: block;
327}
328/*
329 * Add the correct display in all browsers.
330 */
331summary {
332  display: list-item;
333}
334/* Misc
335   ========================================================================== */
336/**
337 * Add the correct display in IE 10+.
338 */
339template {
340  display: none;
341}
342/**
343 * Add the correct display in IE 10.
344 */
345[hidden] {
346  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;
415}
416.hidden,
417.hide {
418  display: none;
419}
420body {
421  font-family: 'Open Sans', sans-serif;
422}
423html {
424  box-sizing: border-box;
425}
426*,
427*:before,
428*:after {
429  box-sizing: inherit;
430}
431/* ==========================================================================
432   Wrappers
433   ========================================================================== */
434/**
435 * Common wrappers to use in Scms-site.
436 * To reducing css size you can use extends instead of mixins
437 * to move the selector up to the properties you wish to use.
438 *
439 * Example LESS:
440 * .myclass {
441 *              &:extend(.wrapper);
442 * }
443 */
444.wrapper,
445.wrapper-s,
446.wrapper-l,
447.wrapper-xl,
448.ow-forms {
449  display: block;
450  width: 100%;
451  padding-left: 1rem;
452  padding-right: 1rem;
453  margin: 0 auto;
454}
455@media (min-width: 480px) {
456  .wrapper,
457  .wrapper-s,
458  .wrapper-l,
459  .wrapper-xl,
460  .ow-forms {
461    padding-left: 2rem;
462    padding-right: 2rem;
463  }
464}
465@media (min-width: 800px) {
466  .wrapper,
467  .wrapper-s,
468  .wrapper-l,
469  .wrapper-xl,
470  .ow-forms {
471    padding-left: 4rem;
472    padding-right: 4rem;
473  }
474}
475@media (min-width: 1024px) {
476  .wrapper,
477  .wrapper-s,
478  .wrapper-l,
479  .wrapper-xl,
480  .ow-forms {
481    padding-left: 5rem;
482    padding-right: 5rem;
483  }
484}
485@media (min-width: 1440px) {
486  .wrapper,
487  .wrapper-s,
488  .wrapper-l,
489  .wrapper-xl,
490  .ow-forms {
491    padding-left: 6rem;
492    padding-right: 6rem;
493  }
494}
495@media (min-width: 320px) {
496  .wrapper-s,
497  .ow-forms {
498    max-width: 740px;
499  }
500}
501@media (min-width: 320px) {
502  .wrapper-l {
503    max-width: 1280px;
504  }
505}
506@media (min-width: 320px) {
507  .wrapper-xl {
508    max-width: 1440px;
509  }
510}
511/* Layout */
512.ly-flex {
513  display: flex;
514  justify-content: space-between;
515}
516.ly-flex.ly-center {
517  align-items: center;
518}
519.ly-flex.ly-start {
520  justify-content: flex-start;
521}
522.ly-flex.ly-2 {
523  flex-flow: row wrap;
524}
525.ly-flex.ly-2 > div,
526.ly-flex.ly-2 > li,
527.ly-flex.ly-2 > p,
528.ly-flex.ly-2 > a {
529  width: 50%;
530}
531.ly-flex.ly-2.has-gap > div,
532.ly-flex.ly-2.has-gap > li,
533.ly-flex.ly-2.has-gap > p,
534.ly-flex.ly-2.has-gap > a {
535  width: 48%;
536}
537.ly-flex.ly-3 {
538  flex-flow: row wrap;
539}
540.ly-flex.ly-3 > div,
541.ly-flex.ly-3 > li,
542.ly-flex.ly-3 > p {
543  width: 33%;
544}
545.ly-flex.ly-3.has-gap > div,
546.ly-flex.ly-3.has-gap > li,
547.ly-flex.ly-3.has-gap > p {
548  width: 31%;
549}
550.ly-flex.ly-4 {
551  flex-flow: row wrap;
552}
553.ly-flex.ly-4 > div,
554.ly-flex.ly-4 > li,
555.ly-flex.ly-4 > p {
556  width: 25%;
557}
558.ly-flex.ly-4.has-gap > div,
559.ly-flex.ly-4.has-gap > li,
560.ly-flex.ly-4.has-gap > p {
561  width: 23%;
562}
563.ly-flex-end {
564  align-items: flex-end;
565}
566/* Generic default forms */
567form {
568  width: 100%;
569}
570legend {
571  display: none;
572}
573fieldset {
574  border: none;
575  padding: 0;
576}
577fieldset > div,
578fieldset > p {
579  margin-bottom: 1.5em;
580}
581label {
582  display: block;
583  font-size: 13px;
584  margin-bottom: 0.25em;
585}
586input {
587  width: 100%;
588  padding: 0.5em 0.75em;
589  border: 1px solid transparent;
590  border-radius: 2px;
591}
592.ow-forms label {
593  display: block;
594  margin-bottom: 0.35em;
595  color: #959595;
596}
597.ow-forms textarea {
598  resize: vertical;
599  height: 200px;
600}
601.ow-forms textarea,
602.ow-forms input {
603  width: 100%;
604  padding: 0.65em;
605  border-radius: 4px;
606  border: 1px solid #e1e1e1;
607}
608.ow-forms select {
609  width: 100%;
610}
611/* Generic button */
612.button {
613  box-sizing: border-box;
614  display: inline-block;
615  text-align: center;
616  vertical-align: middle;
617  cursor: pointer;
618  border: 1px solid transparent;
619  text-decoration: none;
620  font-style: normal;
621  white-space: nowrap;
622  text-overflow: ellipsis;
623  padding: 0.3em 1em;
624  margin: 0;
625  position: relative;
626  overflow: hidden;
627  background: #e1e1e1;
628  color: #151515;
629  font-size: 1em;
630  line-height: 1.25;
631  max-width: 100%;
632  width: auto;
633}
634.button-normal {
635  width: auto;
636}
637.button-normal:hover {
638  background-color: #959595;
639  color: white;
640}
641.button-important {
642  background-color: #EE4056;
643}
644.header-content {
645  padding: 1em 1.5em;
646}
647.header-content a {
648  text-decoration: none;
649}
650.header-content .description {
651  margin: 0;
652}
653/* logo ----------------------------------------------------------------------*/
654.logo {
655  font-size: 24px;
656  font-size: 1.5rem;
657  line-height: 1em;
658  font-weight: 800;
659  text-transform: uppercase;
660  margin: 0;
661  display: inline-block;
662}
663.logo span {
664  transition: all 250ms ease-in-out;
665}
666.logo:hover span {
667  color: #EE4056;
668}
669@media (max-width: 800px) {
670  .logo a {
671    content: "";
672    display: inline-block;
673    width: 34px;
674    height: 34px;
675    background-image: url('/static/media/img/logo-openworkouts.png');
676    background-size: 100%;
677    background-repeat: no-repeat;
678  }
679  .logo a span {
680    display: none !important;
681  }
682}
683.logo-open {
684  display: block;
685  color: #EE4056;
686}
687.logo-work,
688.logo-outs {
689  color: #f8b5be;
690}
691/* menu navigation -----------------------------------------------------------*/
692.nav-site {
693  font-size: 13px;
694  font-size: 0.8125rem;
695}
696.nav-site ul {
697  list-style-type: none;
698  padding: 0;
699  margin: 0;
700  display: flex;
701  flex-direction: row;
702  justify-content: space-between;
703  align-items: center;
704}
705.nav-site li {
706  border-left: 1px solid #e1e1e1;
707  flex-grow: 1;
708  text-align: center;
709  /* this is for the dashboard li element */
710}
711.nav-site li:first-child {
712  display: none;
713}
714@media (min-width: 800px) {
715  .nav-site li:first-child {
716    display: inline-block;
717  }
718}
719.nav-site a {
720  color: #959595;
721  padding: 1.25em;
722  display: block;
723}
724.nav-site a:hover {
725  color: #151515;
726}
727.nav-site .is-active a {
728  color: #151515;
729}
730.icon-dashboard::before,
731.icon-profile::before,
732.icon-logout::before {
733  content: "";
734  display: inline-block;
735}
736.icon-dashboard span,
737.icon-profile span,
738.icon-logout span {
739  display: none;
740}
741@media (min-width: 800px) {
742  .icon-dashboard::before,
743  .icon-profile::before,
744  .icon-logout::before {
745    display: none;
746  }
747  .icon-dashboard span,
748  .icon-profile span,
749  .icon-logout span {
750    display: inline-block;
751  }
752}
753.icon-dashboard:hover,
754.icon-profile:hover,
755.icon-logout:hover {
756  opacity: 0.5;
757}
758.icon-dashboard::before {
759  content: "☰";
760  font-size: 30px;
761  font-size: 1.875rem;
762  line-height: 0em;
763  position: relative;
764  top: 3px;
765  margin: 0;
766}
767.icon-profile {
768  padding: 1em 1.25em !important;
769}
770.icon-profile::before {
771  position: relative;
772  top: 3px;
773  width: 20px;
774  height: 20px;
775  background-image: url('/static/media/img/icon-user.svg');
776  background-size: 100%;
777  margin: 0;
778}
779.icon-logout {
780  padding: 1em 1.25em !important;
781}
782.icon-logout::before {
783  position: relative;
784  top: 3px;
785  width: 20px;
786  height: 20px;
787  background-image: url('/static/media/img/icon-logout.svg');
788  background-size: 100%;
789  margin: 0;
790}
791/* Add workout button with submenu -------------------------------------------*/
792.add-workout {
793  position: relative;
794  /* submenu -------------------------------------------------------------- */
795}
796.add-workout > a {
797  color: #EE4056;
798}
799.add-workout > a:before {
800  content: "+";
801  font-weight: 800;
802  font-size: 32px;
803  font-size: 2rem;
804  line-height: 0;
805  position: relative;
806  top: 8px;
807}
808.add-workout > a span {
809  display: none;
810}
811.add-workout > a:hover {
812  background-color: #EE4056;
813  color: white;
814}
815.add-workout:hover:after {
816  content: "";
817  position: absolute;
818  background-color: white;
819  bottom: -1px;
820  width: 100%;
821  height: 1px;
822  display: block;
823  z-index: 20;
824}
825.add-workout:hover ul {
826  display: inline-block;
827}
828.add-workout ul {
829  display: none;
830  flex-direction: column;
831  position: absolute;
832  background-color: rgba(255, 255, 255, 0.95);
833  right: -1px;
834  border: 1px solid #e1e1e1;
835  width: 153px;
836}
837.add-workout ul li {
838  border-left: transparent;
839  text-align: left;
840}
841.add-workout ul a:hover {
842  background-color: #fbfbfb;
843}
844/* description ---------------------------------------------------------------*/
845.description {
846  font-size: 14px;
847  font-size: 0.875rem;
848  font-weight: 300;
849  letter-spacing: 0.025em;
850  color: #959595;
851}
852/* ------------------------------ STATES ------------------------------------ */
853/* when user is login --------------------------------------------------------*/
854.is-login .header-content {
855  border-bottom: 1px solid #e1e1e1;
856  display: flex;
857  padding: 0em 1.5em;
858  justify-content: space-between;
859  align-items: center;
860}
861.is-login .description {
862  display: none;
863}
864.is-login .logo-open {
865  display: inline-block;
866}
867.workout-content {
868  padding: 2em  1em;
869  display: flex;
870  flex-direction: column;
871}
872@media (min-width: 480px) {
873  .workout-content {
874    padding: 2em 6em;
875  }
876}
877@media (min-width: 800px) {
878  .workout-content {
879    display: flex;
880    flex-direction: row;
881    justify-content: space-between;
882  }
883}
884/* list mode */
885.workout-list {
886  margin-right: 2em;
887  width: 100%;
888  order: 2;
889  /* provisional layout, replace this with grid layout system based on final content */
890}
891.workout-list > h2 {
892  font-weight: 300;
893  margin: 0 0 1.5em;
894}
895@media (min-width: 800px) {
896  .workout-list {
897    order: 1;
898  }
899}
900/* Module resume on dashboard workouts */
901.workout-resume {
902  padding: 1.5em 0;
903  position: relative;
904  max-width: 700px;
905}
906@media (min-width: 800px) {
907  .workout-resume {
908    padding-left: 2em;
909    border-left: 1px solid #e1e1e1;
910    transition: all 250ms ease-in-out;
911  }
912}
913.workout-resume:hover {
914  border-color: #151515;
915}
916.workout-resume:hover .workout-title:before {
917  color: #151515;
918}
919.workout-resume ul {
920  padding: 0;
921  list-style-type: none;
922  font-size: 13px;
923  font-size: 0.8125rem;
924}
925.workout-resume ul a {
926  display: block;
927  text-decoration: none;
928}
929.bike:before {
930  display: block;
931  content: "";
932  width: 30px;
933  height: 30px;
934  background-image: url('../media/img/bike.svg');
935  background-size: 100%;
936}
937.workout-title {
938  font-size: 14px;
939  font-size: 0.875rem;
940  margin: 0 0 0em 0;
941  position: relative;
942}
943.workout-title:before {
944  transition: all 250ms ease-in-out;
945  content: "▶";
946  position: absolute;
947  left: -3.25em;
948  top: 0.35em;
949  color: #e1e1e1;
950  font-size: 10px;
951  font-size: 0.625rem;
952}
953.workout-title a {
954  color: #151515;
955  text-decoration: none;
956}
957.workout-title a:hover {
958  color: #EE4056;
959}
960.workout-info {
961  display: flex;
962  flex-flow: row wrap;
963  margin: 0.25em 0;
964}
965.workout-info li {
966  color: #959595;
967  margin-bottom: 0.25em;
968}
969.workout-info li:after {
970  content: "|";
971  margin: 0 0.5em;
972}
973.workout-info li:last-child:after {
974  content: "";
975  margin: 0;
976}
977.workout-map {
978  margin-top: 1em;
979}
980.workout-map img {
981  width: 100%;
982}
983.workout-intro {
984  font-size: 13px;
985  font-size: 0.8125rem;
986  color: #151515;
987}
988.workout-options {
989  display: inline-block;
990  border: 1px solid #e1e1e1;
991  margin-bottom: 0;
992  border-radius: 4px;
993  padding: 0;
994  width: auto;
995  background-color: white;
996}
997.workout-options li {
998  display: inline-block;
999  border-right: 1px solid #e1e1e1;
1000}
1001.workout-options li:last-child {
1002  border-right: none;
1003}
1004.workout-options a {
1005  display: block;
1006  color: #959595;
1007  padding: 0.5em 0.75em;
1008  text-decoration: none;
1009}
1010.workout-options a:hover {
1011  color: #151515;
1012}
1013.workout-options a.is-active {
1014  background-color: #959595;
1015  color: white;
1016}
1017.owo-del a:hover {
1018  color: red;
1019}
1020.workout-aside {
1021  width: 100%;
1022  order: 1;
1023}
1024@media (min-width: 800px) {
1025  .workout-aside {
1026    order: 2;
1027    max-width: 300px;
1028    padding-left: 1.5em;
1029    border-left: 1px solid #e1e1e1;
1030  }
1031}
1032.aside-profile {
1033  margin-bottom: 1em;
1034}
1035.aside-profile img {
1036  width: 80px;
1037  height: 80px;
1038  object-fit: cover;
1039  border-radius: 50%;
1040}
1041.aside-profile h2 {
1042  font-weight: 400;
1043  font-size: 18px;
1044  font-size: 1.125rem;
1045  margin: 0 0 0.5em 0;
1046}
1047.aside-profile ul {
1048  list-style-type: none;
1049  margin: 0;
1050  padding: 0;
1051  font-size: 13px;
1052  font-size: 0.8125rem;
1053  color: #555555;
1054}
1055.aside-profile a {
1056  text-decoration: none;
1057  color: #151515;
1058}
1059.aside-profile a:hover {
1060  color: #959595;
1061}
1062/* Workout detail */
1063#map {
1064  width: 100%;
1065  height: 400px;
1066}
1067@media (min-width: 480px) {
1068  #map {
1069    height: calc(100vh - 465px);
1070  }
1071}
1072.workout-detail {
1073  padding: 0em  1em;
1074}
1075@media (min-width: 480px) {
1076  .workout-detail {
1077    max-width: 1280px;
1078    margin: 0 auto;
1079  }
1080}
1081@media (min-width: 800px) {
1082  .workout-detail {
1083    display: flex;
1084    justify-content: space-between;
1085  }
1086}
1087.workout-detail-resume {
1088  max-width: 500px;
1089  margin-bottom: 2em;
1090  padding-top: 2em;
1091}
1092@media (min-width: 800px) {
1093  .workout-detail-resume {
1094    margin-right: 6em;
1095  }
1096}
1097.workout-detail-resume h3 {
1098  margin-top: 0;
1099  margin-bottom: 0.5em;
1100}
1101.workout-detail-resume h3 + div {
1102  font-size: 14px;
1103  font-size: 0.875rem;
1104  color: #959595;
1105  line-height: 1.35em;
1106}
1107.workout-detail-resume .workout-options {
1108  font-size: 13px;
1109  font-size: 0.8125rem;
1110}
1111.workout-detail-info {
1112  max-width: 600px;
1113}
1114@media (min-width: 800px) {
1115  .workout-detail-info {
1116    border-right: 1px solid #e1e1e1;
1117    border-left: 1px solid #e1e1e1;
1118    padding: 2em 1em 2em 2em;
1119  }
1120}
1121.workout-detail-info ul {
1122  list-style-type: none;
1123  padding: 0;
1124  margin: 0;
1125  display: flex;
1126  justify-content: space-between;
1127  flex-flow: row wrap;
1128}
1129.workout-detail-info ul span {
1130  display: block;
1131  font-size: 13px;
1132  font-size: 0.8125rem;
1133  color: #959595;
1134  margin-bottom: 0.25em;
1135  /* color for future features */
1136}
1137.workout-detail-info ul span.min,
1138.workout-detail-info ul span.avg,
1139.workout-detail-info ul span.max {
1140  display: inline-block;
1141  color: white;
1142  padding: 0.5em 0.85em;
1143  border-radius: 3px;
1144  background-color: #e1e1e1;
1145  color: #959595;
1146}
1147.workout-detail-info li {
1148  margin-bottom: 1em;
1149  margin-right: 1em;
1150  color: #959595;
1151  font-size: 15px;
1152  font-size: 0.9375rem;
1153}
1154.workout-detail-info li.important {
1155  font-size: 21px;
1156  font-size: 1.3125rem;
1157  color: #151515;
1158}
1159/* Week report */
1160.svg-cotent svg {
1161  width: 100%;
1162  height: 100%;
1163}
1164.svg-cotent .label {
1165  font-size: 13px;
1166  font-size: 0.8125rem;
1167  text-anchor: middle;
1168}
1169.svg-cotent .tick {
1170  font-size: 13px;
1171  font-size: 0.8125rem;
1172}
1173/* dashboard graphics*/
1174.x-axis path,
1175.x-axis line {
1176  fill: none;
1177  stroke: none;
1178}
1179.bar {
1180  fill: #f8b5be;
1181}
1182.bar:hover {
1183  fill: #ee4056;
1184}
1185.current {
1186  fill: #ee4056;
1187}
1188.week-stats {
1189  border: 1px solid #e1e1e1;
1190  background-color: rgba(225, 225, 225, 0.1);
1191  padding: 0.75em;
1192  border-radius: 4px;
1193  margin-bottom: 2em;
1194}
1195.week-stats h3 {
1196  margin: 0;
1197  font-size: 14px;
1198  font-size: 0.875rem;
1199}
1200.week-stats h3 + p {
1201  margin: 0.25em 0 2em 0;
1202  color: #959595;
1203  font-size: 13px;
1204  font-size: 0.8125rem;
1205}
1206.workout-activity-summary {
1207  list-style-type: none;
1208  padding: 0;
1209  margin: 0;
1210  background-color: rgba(21, 21, 21, 0.8);
1211  margin-bottom: 0.75em;
1212}
1213.workout-activity-summary li {
1214  color: #e1e1e1;
1215  border-bottom: 1px solid #959595;
1216  padding: 0.75em 1em;
1217  display: flex;
1218  justify-content: space-between;
1219}
1220.workout-activity-summary li:last-child {
1221  margin-bottom: 0;
1222  border: none;
1223}
1224.workout-activity-summary li span:first-child {
1225  font-weight: bold;
1226}
1227.workout-activity-tree {
1228  list-style-type: none;
1229  padding: 0;
1230  margin: 0;
1231  transition: all 250ms ease-in-out;
1232  font-size: 13px;
1233  font-size: 0.8125rem;
1234}
1235.workout-activity-tree > li {
1236  margin-bottom: 0.5em;
1237  padding-bottom: 0.5em;
1238  border-bottom: 1px solid #e1e1e1;
1239}
1240.workout-activity-tree a {
1241  text-decoration: none;
1242  display: block;
1243  color: #EE4056;
1244}
1245.workout-activity-tree a:hover {
1246  color: #151515;
1247}
1248.workout-activity-tree a.viewing-year {
1249  color: #151515;
1250  font-weight: 700;
1251  margin-bottom: 0.5em;
1252  font-size: 16px;
1253  font-size: 1rem;
1254}
1255.workout-activity-tree a.viewing-month {
1256  background-color: #e1e1e1;
1257  color: #151515;
1258  font-weight: 700;
1259}
1260.workout-activity-tree-year {
1261  list-style-type: none;
1262  padding: 0;
1263  margin: 0;
1264}
1265.workout-activity-tree-year > li {
1266  display: block;
1267  margin-bottom: 0.5em;
1268}
1269.workout-activity-tree-year a {
1270  display: flex;
1271  justify-content: space-between;
1272  padding: 0.5em;
1273  background-color: #fbfbfb;
1274  color: #555555;
1275}
1276.workout-activity-tree-year a:hover {
1277  background-color: #e1e1e1;
1278}
1279.ow-forms {
1280  padding-top: 2em;
1281}
1282.ow-forms h2 {
1283  border-top: 1px solid #e1e1e1;
1284  padding-top: 0.5em;
1285}
1286.back {
1287  color: #EE4056;
1288  text-decoration: none;
1289  font-weight: 700;
1290}
1291.back:before {
1292  content: "⬅";
1293  margin-right: 0.5em;
1294}
1295.back:hover {
1296  color: #151515;
1297}
1298.login-content {
1299  background-image: url("../media/img/back-01.jpg");
1300  background-position: center;
1301  background-size: cover;
1302  display: flex;
1303  justify-content: center;
1304  align-items: center;
1305  min-height: calc(100vh - 98px);
1306  padding: 1em 0;
1307}
1308.login-content form {
1309  max-width: 380px;
1310  background-color: rgba(21, 21, 21, 0.6);
1311  border-radius: 6px;
1312  padding: 2em 1.5em;
1313}
1314.login-content form div {
1315  margin-bottom: 1.5em;
1316}
1317.login-content label {
1318  color: #e1e1e1;
1319}
1320.login-content a {
1321  color: #e1e1e1;
1322  font-size: 13px;
1323  text-decoration: none;
1324  margin-right: 0.75em;
1325}
1326.login-content a:hover {
1327  color: white;
1328}
1329.login-content .button {
1330  transition: all 500ms ease-in-out;
1331  background-color: #EE4056;
1332  color: white;
1333  text-transform: uppercase;
1334}
1335.login-content .button:hover {
1336  background-color: #e6152f;
1337}
1338.login-content .message {
1339  padding: 0.5em;
1340  margin: 0;
1341  text-align: center;
1342  font-size: 13px;
1343  font-size: 0.8125rem;
1344}
1345.login-content .message.message-error {
1346  color: white;
1347  background-color: red;
1348}
1349/*
1350.login-remember {
1351    color: @color-main-medium;
1352    .font-size(14);
1353    text-decoration: none;
1354    font-weight: 300;
1355    &:hover{
1356        color: @color-main-light;
1357    }
1358}
1359<a class="login-remember" href="#">Forgot your password?</a>
1360*/
1361.user-profile .workout-options {
1362  font-size: 13px;
1363  font-size: 0.8125rem;
1364  margin-right: 2em;
1365}
1366.user-profile-account {
1367  background-color: #fbfbfb;
1368  border-bottom: 1px solid #e1e1e1;
1369  padding: 2em  1em;
1370}
1371@media (min-width: 480px) {
1372  .user-profile-account {
1373    padding: 2em 6em;
1374  }
1375}
1376@media (min-width: 800px) {
1377  .user-profile-account > div {
1378    display: flex;
1379    align-items: center;
1380  }
1381}
1382.user-profile-account img {
1383  width: 64px;
1384  height: 64px;
1385  object-fit: cover;
1386  border-radius: 50%;
1387  margin-bottom: 0.5em;
1388  margin-right: 1em;
1389}
1390@media (min-width: 800px) {
1391  .user-profile-account img {
1392    width: 140px;
1393    height: 140px;
1394  }
1395}
1396.user-profile-account h2 {
1397  margin: 0 0 0.15em 0;
1398  font-size: 21px;
1399  font-size: 1.3125rem;
1400  font-weight: 400;
1401}
1402.user-profile-account p {
1403  color: #555555;
1404  font-size: 14px;
1405  font-size: 0.875rem;
1406  margin: 0;
1407}
1408.user-profile-account p a {
1409  color: #EE4056;
1410  text-decoration: none;
1411}
1412.user-profile-account p a:hover {
1413  color: #151515;
1414}
1415.user-profile-account p span {
1416  color: #959595;
1417}
1418.total-workouts {
1419  font-size: 13px;
1420  font-size: 0.8125rem;
1421  font-weight: bold;
1422}
1423.total-workouts span {
1424  color: #959595;
1425  margin-right: 0.5em;
1426}
1427.total-workouts span:first-child {
1428  color: #151515;
1429}
1430.total-workouts span:first-child:after {
1431  content: "|";
1432  color: #e1e1e1;
1433  margin-left: 0.5em;
1434}
1435.profile-data {
1436  list-style-type: none;
1437  padding: 0;
1438  font-size: 14px;
1439  font-size: 0.875rem;
1440  background-color: white;
1441  padding: 0.5em 0.75em;
1442  border-radius: 4px;
1443  border: 1px solid #e1e1e1;
1444}
1445.profile-data li {
1446  display: flex;
1447  justify-content: space-between;
1448  color: #959595;
1449}
1450.profile-data li:not(:last-child) {
1451  margin-bottom: 0.5em;
1452  padding-bottom: 0.5em;
1453  border-bottom: 1px solid #e1e1e1;
1454}
1455.profile-data li span {
1456  font-weight: bold;
1457  color: #151515;
1458}
1459.profile-bio {
1460  margin: 0.5em 0;
1461  font-size: 14px;
1462  font-size: 0.875rem;
1463}
1464.month-stats,
1465.latest-workouts {
1466  max-width: 700px;
1467}
1468.center {
1469  text-align: center;
1470}
1471.month-stats {
1472  margin-bottom: 4em;
1473}
1474.latest-workouts h4 {
1475  margin: 0;
1476}
1477.latest-workouts h4 a {
1478  color: #151515;
1479  text-decoration: none;
1480}
1481.latest-workouts > span {
1482  font-size: 13px;
1483  font-size: 0.8125rem;
1484}
1485.latest-workouts p {
1486  margin-top: 0.25em;
1487  color: #959595;
1488  font-size: 13px;
1489  font-size: 0.8125rem;
1490}
1491.verify-account-content {
1492  background-position: center;
1493  background-size: cover;
1494  display: flex;
1495  justify-content: center;
1496  align-items: center;
1497  /* dynamic min-height based on window height does not work well
1498     with premailer and generating the proper html with styles for mails */
1499  min-height: 400px;
1500  padding: 1em 0;
1501  /* RGB calculated color does not work well with premailer and
1502       generating the proper html with styles for mails */
1503  color: #151515;
1504}
1505.verify-account-content .info {
1506  max-width: 580px;
1507  /* RGB calculated color does not work well with premailer and
1508         generating the proper html with styles for mails */
1509  background-color: #e1e1e1;
1510  border-radius: 6px;
1511  padding: 2em 1.5em;
1512}
1513.verify-account-content .info div {
1514  margin-bottom: 1.5em;
1515}
1516.verify-account-content a {
1517  /* RGB calculated color does not work well with premailer and
1518           generating the proper html with styles for mails */
1519  color: #151515;
1520  font-size: 13px;
1521  text-decoration: none;
1522  margin-right: 0.75em;
1523}
1524.verify-account-content a:hover {
1525  color: #151515;
1526}
1527.verify-account-content .button {
1528  background-color: #EE4056;
1529  background: #EE4056;
1530  color: white;
1531  text-transform: uppercase;
1532}
1533.verify-account-content .button:hover {
1534  background-color: #F60002;
1535}
Note: See TracBrowser for help on using the repository browser.