Changeset 778d53d in OpenWorkouts-current for ow/static/css/main.css


Ignore:
Timestamp:
Mar 5, 2019, 11:45:32 PM (5 years ago)
Author:
Borja Lopez <borja@…>
Branches:
current
Children:
aa6dcaf
Parents:
35953eb
Message:

(#7) Show per-sport stats in the profile page:

  • Show a dropdown list of sports for which the user has activities. By default we choose the sport with most activities.
  • Show a dropdown list of years for which the user has activities. By default we show stats for the current year. If the user picks up a different year, we show the totals (distance, time, elevation, number of workouts) for that year.
  • Show the totals of all time for the chosen sport
File:
1 edited

Legend:

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

    r35953eb r778d53d  
    642642  background-color: #EE4056;
    643643}
     644/*
     645Very simple way to paint dropdown-like arrows, without
     646using any external dependencies.
     647
     648To use it, add something like this to your html, to display a "down" arrow:
     649
     650  <i class="arrow down"></i>
     651*/
     652i.arrow {
     653  border: solid black;
     654  border-width: 0 3px 3px 0;
     655  display: inline-block;
     656  padding: 3px;
     657  margin: 3px;
     658  margin-left: 6px;
     659  margin-right: 0px;
     660}
     661.right {
     662  transform: rotate(-45deg);
     663  -webkit-transform: rotate(-45deg);
     664}
     665.left {
     666  transform: rotate(135deg);
     667  -webkit-transform: rotate(135deg);
     668}
     669.up {
     670  transform: rotate(-135deg);
     671  -webkit-transform: rotate(-135deg);
     672}
     673.down {
     674  transform: rotate(45deg);
     675  -webkit-transform: rotate(45deg);
     676}
    644677.header-content {
    645678  padding: 1em 1.5em;
     
    14881521  font-size: 13px;
    14891522  font-size: 0.8125rem;
     1523}
     1524.profile-dropdown-sports,
     1525.profile-dropdown-years {
     1526  color: #151515;
     1527  text-decoration: none;
     1528}
     1529.profile-dropdown-sports:hover,
     1530.profile-dropdown-years:hover {
     1531  color: #151515;
     1532}
     1533.profile-dropdown-sports:active,
     1534.profile-dropdown-years:active,
     1535.profile-dropdown-sports:focus,
     1536.profile-dropdown-years:focus {
     1537  outline: 0;
     1538  border: none;
     1539  -moz-outline-style: none;
    14901540}
    14911541.verify-account-content {
Note: See TracChangeset for help on using the changeset viewer.