]> git.0d.be Git - panikweb.git/commitdiff
Fade current instead of hiding on News nav
authorlaron <simon@surlaterre.org>
Fri, 27 Sep 2013 15:01:44 +0000 (17:01 +0200)
committerlaron <simon@surlaterre.org>
Fri, 27 Sep 2013 15:01:44 +0000 (17:01 +0200)
panikweb_templates/static/css/specifics.css
panikweb_templates/templates/emissions/newsitem_detail.html

index 9adb379b75b743630ec58f3c42dc9cb49ecb0eac..5f58b54bf6a6822a9cd4fdbd09cb35513a43207b 100644 (file)
@@ -762,13 +762,18 @@ body{
 
 .newsRoll .labels .item{
        display:block;
-       background:#3333FF;
+       background:#0000FF;
        color:white;
        margin:0.1em;
        font-size:0.9em;
        padding:0.3em;
 }
-
+.newsList .current a{
+    opacity:0.5;
+}
+.newsList .current img{
+    border-color:#0000FF;
+}
 /*
 .newsRoll {
        padding-top: 5px;
index d1156cd040c6c1999a6a425e092d36342c2d2ee8..22a49e6c6952ea92069c909ab3bfc9ef3e8c7cac 100644 (file)
                <div class="rightPart">
                                <div class="sub">
                        {% if newsitem.emission %}
-                                           <h5 class="sectionLabel">proposé par</h5>
-                                           {% with newsitem.emission as emission %}
-                                                   <div class="">{% emission_resume %}</div>
-                                           {% endwith %}
+                                   <h5 class="sectionLabel">proposé par</h5>
+                                   {% with newsitem.emission as emission %}
+                                           <div class="">{% emission_resume %}</div>
+                                   {% endwith %}
                        {% endif %}
                                        <h5 class="sectionLabel right">
                         <a href="{% url 'newsArchives' %}">
@@ -37,9 +37,9 @@
                                        <h5 class="sectionLabel">
                             <span class="iconLabel">Dernières actus</span>
                     </h5>
-                                               <ul class="custom list">
+                                               <ul class="custom list newsList">
                                                {% for content in news %}
-                                                       {% if content != newsitem %}<li>{% news_inline %}</li>{% endif %}
+                                                       <li class="{% if content == newsitem %}current{% endif %}">{% news_inline %}</li>
                                                {% endfor %}
                                                </ul>
                                </div>