Clean up general card styles.

This commit is contained in:
Christopher Charbonneau Wells 2017-10-30 19:35:51 -04:00
parent e90e31cfd3
commit 003e112d27
6 changed files with 13 additions and 13 deletions

View File

@ -8,23 +8,23 @@
<div class="card-body"> <div class="card-body">
<div class="container"> <div class="container">
<div class="row no-gutters text-center"> <div class="row no-gutters text-center">
<div class="col-6 col-xl-3"> <div class="col-md-6 col-sm-3 col-xs-12">
<div class="text-muted">Time asleep</div> <div class="text-muted">Sleep time</div>
{% if sleep.average %} {% if sleep.average %}
{{ sleep.average|duration_string:'m' }} {{ sleep.average|duration_string:'m' }}
{% else %} {% else %}
<em>Not enough data</em> <em>Not enough data</em>
{% endif %} {% endif %}
</div> </div>
<div class="col-6 col-xl-3"> <div class="col-md-6 col-sm-3 col-xs-12">
<div class="text-muted">Time awake</div> <div class="text-muted">Awake time</div>
{% if sleep.btwn_average %} {% if sleep.btwn_average %}
{{ sleep.btwn_average|duration_string:'m' }} {{ sleep.btwn_average|duration_string:'m' }}
{% else %} {% else %}
<em>Not enough data</em> <em>Not enough data</em>
{% endif %} {% endif %}
</div> </div>
<div class="col-6 col-xl-3"> <div class="col-md-6 col-sm-3 col-xs-12">
<div class="text-muted">Change freq.</div> <div class="text-muted">Change freq.</div>
{% if changes.btwn_average %} {% if changes.btwn_average %}
{{ changes.btwn_average|duration_string:'m' }} {{ changes.btwn_average|duration_string:'m' }}
@ -32,7 +32,7 @@
<em>Not enough data</em> <em>Not enough data</em>
{% endif %} {% endif %}
</div> </div>
<div class="col-6 col-xl-3"> <div class="col-md-6 col-sm-3 col-xs-12">
<div class="text-muted">Feeding freq.</div> <div class="text-muted">Feeding freq.</div>
{% if feedings.btwn_average %} {% if feedings.btwn_average %}
{{ feedings.btwn_average|duration_string:'m' }} {{ feedings.btwn_average|duration_string:'m' }}

View File

@ -4,7 +4,7 @@
{% block title %} {% block title %}
{% if change %} {% if change %}
<strong>{{ change.time|timesince }}</strong> ago {{ change.time|timesince }} ago
{% else %} {% else %}
Never Never
{% endif %} {% endif %}

View File

@ -5,10 +5,10 @@
{% block title %} {% block title %}
{% if total %} {% if total %}
<strong>{{ total|duration_string }}</strong> {{ total|duration_string }}
{% else %} {% else %}
<i class="icon icon-sad" aria-hidden="true"></i> <i class="icon icon-sad" aria-hidden="true"></i>
<strong>None yet today</strong> None yet today
<i class="icon icon-sad" aria-hidden="true"></i> <i class="icon icon-sad" aria-hidden="true"></i>
{% endif %} {% endif %}
{% endblock %} {% endblock %}

View File

@ -5,10 +5,10 @@
{% block title %} {% block title %}
{% if count %} {% if count %}
<strong>{{ count }}</strong> nap{{ count|pluralize }} {{ count }} nap{{ count|pluralize }}
{% else %} {% else %}
<i class="icon icon-sad" aria-hidden="true"></i> <i class="icon icon-sad" aria-hidden="true"></i>
<strong>None yet today</strong> None yet today
<i class="icon icon-sad" aria-hidden="true"></i> <i class="icon icon-sad" aria-hidden="true"></i>
{% endif %} {% endif %}
{% endblock %} {% endblock %}

View File

@ -8,7 +8,7 @@
{{ stats.total|duration_string }} {{ stats.total|duration_string }}
{% else %} {% else %}
<i class="icon icon-sad" aria-hidden="true"></i> <i class="icon icon-sad" aria-hidden="true"></i>
<strong>None yet today</strong> None yet today
<i class="icon icon-sad" aria-hidden="true"></i> <i class="icon icon-sad" aria-hidden="true"></i>
{% endif %} {% endif %}
{% endblock %} {% endblock %}

View File

@ -5,7 +5,7 @@
{% block title %} {% block title %}
{% if tummytime %} {% if tummytime %}
<strong>{{ tummytime.time|timesince }}</strong> ago {{ tummytime.time|timesince }} ago
{% else %} {% else %}
Never Never
{% endif %} {% endif %}