Commit 8e013b45 authored by Simon Daron's avatar Simon Daron
Browse files

Add visibility to nav active

parent bf50a293
......@@ -200,6 +200,12 @@ ul.distributed li{
display:table-cell;
text-align:center;
}
ul.distributed.by2 li{
width:50%;
}
ul.distributed.by3 li{
width:33%;
}
ul.distributed.by4 li{
width:25%;
}
......
......@@ -256,7 +256,14 @@ body{
}
#Nav nav{padding:0.1em;}
#Nav *{ color:#ddd;border-color:#ddd;}
#Nav .active,#Nav .active *{color:white !important;font-weight:bold;}
#Nav .active,#Nav .active *{
color:white !important;
font-weight:bold;
}
#Nav .active{
border-width:0 0 2px 0;
border-style:solid;
}
#Nav nav ul.columns {column-rule:2px solid #342E2E;-moz-column-rule:2px solid #342E2E;-webkit-column-rule:2px solid #342E2E;}
#Nav nav.right{
......
{% extends "emissions/emission_detail.html" %}
{% load paniktags %}
{% block nav %}
{% emission_nav klass "archives" %}
{% emission_nav klass "episodes" %}
{% endblock %}
{% block main %}
......
......@@ -60,12 +60,12 @@
{% if episodes %}
<div class="wrapper half">
<nav>
<ul class="distributed">
<ul class="distributed by2">
<li>
<a href="{% url 'emission-view' slug=emission.slug %}">En bref</a>
<a class="{% if class != "episodes" %}active{% endif %}" href="{% url 'emission-view' slug=emission.slug %}">En bref</a>
</li>
<li>
<a href="{% url 'emissionEpisodes' slug=emission.slug %}">Archives ({{ episodes.count }})</a>
<a class="{% if class = "episodes" %}active{% endif %}" href="{% url 'emissionEpisodes' slug=emission.slug %}">Archives ({{ episodes.count }})</a>
</li>
</ul>
......@@ -78,6 +78,5 @@
{% endif %}
-->
</div>
{% if class = "archives" %}
{% endif %}
{% 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