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{ ...@@ -200,6 +200,12 @@ ul.distributed li{
display:table-cell; display:table-cell;
text-align:center; text-align:center;
} }
ul.distributed.by2 li{
width:50%;
}
ul.distributed.by3 li{
width:33%;
}
ul.distributed.by4 li{ ul.distributed.by4 li{
width:25%; width:25%;
} }
......
...@@ -256,7 +256,14 @@ body{ ...@@ -256,7 +256,14 @@ body{
} }
#Nav nav{padding:0.1em;} #Nav nav{padding:0.1em;}
#Nav *{ color:#ddd;border-color:#ddd;} #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 ul.columns {column-rule:2px solid #342E2E;-moz-column-rule:2px solid #342E2E;-webkit-column-rule:2px solid #342E2E;}
#Nav nav.right{ #Nav nav.right{
......
{% extends "emissions/emission_detail.html" %} {% extends "emissions/emission_detail.html" %}
{% load paniktags %} {% load paniktags %}
{% block nav %} {% block nav %}
{% emission_nav klass "archives" %} {% emission_nav klass "episodes" %}
{% endblock %} {% endblock %}
{% block main %} {% block main %}
......
...@@ -60,12 +60,12 @@ ...@@ -60,12 +60,12 @@
{% if episodes %} {% if episodes %}
<div class="wrapper half"> <div class="wrapper half">
<nav> <nav>
<ul class="distributed"> <ul class="distributed by2">
<li> <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>
<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> </li>
</ul> </ul>
...@@ -78,6 +78,5 @@ ...@@ -78,6 +78,5 @@
{% endif %} {% endif %}
--> -->
</div> </div>
{% if class = "archives" %}
{% endif %}
{% endif %} {% endif %}
Supports Markdown
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