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

View File

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

View File

@ -5,10 +5,10 @@
{% block title %}
{% if total %}
<strong>{{ total|duration_string }}</strong>
{{ total|duration_string }}
{% else %}
<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>
{% endif %}
{% endblock %}

View File

@ -5,10 +5,10 @@
{% block title %}
{% if count %}
<strong>{{ count }}</strong> nap{{ count|pluralize }}
{{ count }} nap{{ count|pluralize }}
{% else %}
<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>
{% endif %}
{% endblock %}

View File

@ -8,7 +8,7 @@
{{ stats.total|duration_string }}
{% else %}
<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>
{% endif %}
{% endblock %}

View File

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