Fix homepage stats spacing
parent
105bd308c3
commit
6331f9e6f7
|
@ -111,10 +111,16 @@ body {
|
|||
width: 80px;
|
||||
}
|
||||
|
||||
#search {
|
||||
margin: auto;
|
||||
}
|
||||
|
||||
.statistics {
|
||||
text-align: center;
|
||||
text-shadow: 1px 1px 2px rgba(150, 150, 150, 0.77);
|
||||
margin-top: 12px;
|
||||
display: inline-block;
|
||||
padding: 0 15px;
|
||||
}
|
||||
|
||||
.statistics > img {
|
||||
|
|
|
@ -13,38 +13,26 @@
|
|||
</div>
|
||||
<div class="col-md-5">
|
||||
<div class="row hidden-xs hidden-sm">
|
||||
<div class="{% if suggestions %}col-md-3{% else %}col-md-3{% endif %}">
|
||||
<p class="statistics">
|
||||
<img src="{% static 'img/satellites.png' %}">
|
||||
{{ satellites.count }}
|
||||
</p>
|
||||
</div>
|
||||
<div class="{% if suggestions %}col-md-2{% else %}col-md-3{% endif %}">
|
||||
<p class="statistics">
|
||||
<img src="{% static 'img/transmitters.png' %}">
|
||||
{{ transmitters }}
|
||||
</p>
|
||||
</div>
|
||||
{% if suggestions %}
|
||||
<div class="col-md-2">
|
||||
<p class="statistics">
|
||||
<img src="{% static 'img/suggestions.png' %}">
|
||||
{{ suggestions }}
|
||||
</p>
|
||||
</div>
|
||||
{% endif %}
|
||||
<div class="{% if suggestions %}col-md-2{% else %}col-md-3{% endif %}">
|
||||
<p class="statistics">
|
||||
<img src="{% static 'img/payloads.png' %}">
|
||||
{{ payloads }}
|
||||
</p>
|
||||
</div>
|
||||
<div class="{% if suggestions %}col-md-3{% else %}col-md-3{% endif %}">
|
||||
<p class="statistics">
|
||||
<img src="{% static 'img/contributors.png' %}">
|
||||
{{ contributors }}
|
||||
</p>
|
||||
</div>
|
||||
<p class="statistics" title="satellites" data-toggle="tooltip">
|
||||
<img src="{% static 'img/satellites.png' %}">
|
||||
{{ satellites.count }}
|
||||
</p>
|
||||
<p class="statistics" title="transmitters" data-toggle="tooltip">
|
||||
<img src="{% static 'img/transmitters.png' %}">
|
||||
{{ transmitters }}
|
||||
</p>
|
||||
<p class="statistics" title="suggestions" data-toggle="tooltip">
|
||||
<img src="{% static 'img/suggestions.png' %}">
|
||||
{{ suggestions }}
|
||||
</p>
|
||||
<p class="statistics" title="telemetry" data-toggle="tooltip">
|
||||
<img src="{% static 'img/payloads.png' %}">
|
||||
{{ payloads }}
|
||||
</p>
|
||||
<p class="statistics" title="contributors" data-toggle="tooltip">
|
||||
<img src="{% static 'img/contributors.png' %}">
|
||||
{{ contributors }}
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
Loading…
Reference in New Issue