Commit 6893de83 authored by Simon Daron's avatar Simon Daron
Browse files

Reglo for category

parent 31fc8ee1
......@@ -120,7 +120,7 @@ nav.menu li{
margin-right:2em;
}
button.tag, a.tag {
button.tag, a.tag{
font-size:0.9em;
background:white;
font-family: "RegloBold";
......@@ -141,6 +141,10 @@ button.check, a.check {
margin: 0.2em;
padding: 0.3em;
}
.category{
font-family: "RegloBold";
text-transform: uppercase;
}
#Nav .icon-check{background:#222;}
button.check:before, a.check:before {
display:inline-block;
......
......@@ -26,13 +26,13 @@
<nav id="gridNav" class="checkable">
<ul class="by{{ categories.count }}">
{% if class = "emissions" or class = "archives" %}
<li><button class="check icon-check-empty" data-about="#Main" data-toggle=".nocat">?</button></li>
<li><button class="check icon-check-empty" data-about="#Main" data-toggle=".nocat"><span class="category">?</span></button></li>
{% endif %}
{% for category in categories %}
{% if class = "grid" %}
<li><button class="check icon-check-empty" data-about="#Main" data-highlight=".{{ category|slugify }}">{{ category }}<!--&nbsp;<span class="icon-{{category|slugify}}"></span>--></button></li>
<li><button class="check icon-check-empty" data-about="#Main" data-highlight=".{{ category|slugify }}"><span class="category">{{ category }}</span><!--&nbsp;<span class="icon-{{category|slugify}}"></span>--></button></li>
{% else %}
<li><button class="check icon-check-empty" data-about="#Main" data-toggle=".{{ category|slugify }}">{{ category }}<!--&nbsp;<span class="icon-{{category|slugify}}"></span>--></button></li>
<li><button class="check icon-check-empty" data-about="#Main" data-toggle=".{{ category|slugify }}"><span class="category">{{ category }}</span><!--&nbsp;<span class="icon-{{category|slugify}}"></span>--></button></li>
{% endif %}
{% endfor %}
</ul>
......@@ -48,7 +48,7 @@
{% if emission.categories %}
<div class="categories">
{% for category in emission.categories.all %}
<a href="{% url 'emissions' %}?q={{category.slug}}"><!--<span class="icon-{{category|slugify}}"></span>&nbsp;--><span>{{category}}</span></a>
<a href="{% url 'emissions' %}?q={{category.slug}}"><!--<span class="icon-{{category|slugify}}"></span>&nbsp;--><span class="category">{{category}}</span></a>
{% endfor%}
</div>
{% endif %}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment