Changeset 02b96c5 in OpenWorkouts-current for ow/static/css/main.css


Ignore:
Timestamp:
Mar 12, 2019, 12:47:38 PM (5 years ago)
Author:
Borja Lopez <borja@…>
Branches:
current
Children:
8ba32d9
Parents:
d9453fc
Message:

(#7) Added calendar heatmap chart to the profile page.

The calendar shows the current month, each day without a workout represented
by a light grey square, each day with workout data in a red/pink color, picked
up from a gradient generated based on the app main colors, and calculated based
on the amount of workout time for the day.

A tooltip is shown on hover with more info (only the total workouts time for
now)

File:
1 edited

Legend:

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

    rd9453fc r02b96c5  
    15521552  -moz-outline-style: none;
    15531553}
     1554/* Calendar heatmap */
     1555.calendar-heatmap {
     1556  margin: 20px;
     1557}
     1558.calendar-heatmap .month {
     1559  margin-right: 8px;
     1560}
     1561.calendar-heatmap .month-name {
     1562  font-size: 85%;
     1563  fill: #777;
     1564}
     1565.calendar-heatmap .day-name {
     1566  font-size: 85%;
     1567  fill: #777;
     1568}
     1569.calendar-heatmap .day:hover {
     1570  stroke: #e1e1e1;
     1571  stroke-width: 2;
     1572}
     1573.calendar-heatmap .day:focus {
     1574  stroke: #e1e1e1;
     1575  stroke-width: 2;
     1576}
    15541577.verify-account-content {
    15551578  background-position: center;
Note: See TracChangeset for help on using the changeset viewer.