]> git.parisson.com Git - mezzo.git/commitdiff
Sidebar fixes
authorPhilippe Barbosa <contact@philippebarbosa.com>
Fri, 18 Mar 2016 13:40:42 +0000 (14:40 +0100)
committerPhilippe Barbosa <contact@philippebarbosa.com>
Fri, 18 Mar 2016 13:40:42 +0000 (14:40 +0100)
app/festival/static/css/index.css
app/festival/static/scss/components/_sidebar.scss
app/templates/agenda/includes/filter_panel.html

index 95fe30674271e5257a7d00db375ab09c08ed90a2..b4862bd7f935b885fa986ec545c8e697d1f3e93d 100755 (executable)
@@ -1708,6 +1708,13 @@ th {
   border-bottom: 1px solid #000;
 }
 
+/* line 17, /Users/philippebarbosa/Sites/ircam-manifeste/app/festival/static/scss/components/_sidebar.scss */
+.sidebar__entry {
+  font-size: 1rem;
+  margin: 0;
+  line-height: 1.4;
+}
+
 /* line 5, /Users/philippebarbosa/Sites/ircam-manifeste/app/festival/static/scss/components/_menu-toggle.scss */
 .menu__toggle {
   display: block;
index afd2bf0d6627a2e6aada81dbef19a54405c6bd7b..633c385c0a886e07d26d0fe48d267d8a79dfde75 100755 (executable)
   padding: .2rem 0;
   border-top: 1px solid #000;
   border-bottom: 1px solid #000;
+}
+
+.sidebar__entry {
+    font-size: 1rem;
+    margin: 0;
+    line-height: 1.4;
+    // color: $gray_dar;
 }
\ No newline at end of file
index 5f2da8c67a0e9dbe2dd4eb0042c060fa01870c0e..427123ae54769d992a238f94d4b00573999346a4 100644 (file)
@@ -7,8 +7,8 @@
 <ul class="list-unstyled upcoming-events">
 {% for upcoming_event in upcoming_events %}
     <li>
-        <h3>
-            <a href="{{ upcoming_event.get_absolute_url }}">{{ upcoming_event.title }}</a>
+        <h3 class="sidebar__entry">
+            <a href="{{ upcoming_event.get_absolute_url }}" class="sidebar__entry">{{ upcoming_event.title }}</a>
         </h3>
     </li>
 {% endfor %}
@@ -23,8 +23,8 @@
 <ul class="list-unstyled recent-events">
     {% for recent_event in recent_events %}
     <li>
-        <h3>
-            <a href="{{ recent_event.get_absolute_url }}">{{ recent_event.title }}</a>
+        <h3 class="sidebar__entry">
+            <a href="{{ recent_event.get_absolute_url }}" class="sidebar__entry">{{ recent_event.title }}</a>
         </h3>
     </li>
     {% endfor %}
 {% for month in months %}
     {% ifchanged month.date.year %}
         {% if not forloop.first %}</ul>{% endif %}
-        <h3>{{ month.date.year }}</h3>
+        <h3 class="sidebar__entry">{{ month.date.year }}</h3>
             <ul class="list-unstyled">
                 {% endifchanged %}
                 <li>
-                    <h4>
-                        <a href="{% url "event_list_month" year=month.date.year month=month.date.month %}">{{ month.date|date:"F" }}</a> ({{ month.event_count }})
+                    <h4 class="sidebar__entry">
+                        <a href="{% url "event_list_month" year=month.date.year month=month.date.month %}" class="sidebar__entry">{{ month.date|date:"F" }}</a> ({{ month.event_count }})
                     </h4>
                 </li>
                 {% endfor %}
@@ -59,9 +59,9 @@
 <ul class="list-unstyled">
 {% for location in locations %}
 <li>
-    <h3>
-        <a href="{% url "event_list_location" location.slug %}">{{ location }}</a>
-    </h3> ({{ location.event_count }})
+    <h3 class="sidebar__entry">
+        <a href="{% url "event_list_location" location.slug %}" class="sidebar__entry">{{ location }}</a> ({{ location.event_count }})
+    </h3>
 </li>
 {% endfor %}
 </ul>
 <ul class="list-inline tag-cloud">
 {% for tag in tags %}
 <li>
-    <h3>
-        <a href="{% url "event_list_tag" tag.slug %}" class="tag-weight-{{ tag.weight }}">{{ tag }}</a>
+    <h3 class="sidebar__entry">
+        <a href="{% url "event_list_tag" tag.slug %}" class="sidebar__entry sidebar__entry--{{ tag.weight }}">{{ tag }}</a>
+        ({{ tag.item_count }})
     </h3>
-    ({{ tag.item_count }})
 </li>
 {% endfor %}
 </ul>
 <ul class="list-unstyled">
 {% for author in authors %}
     <li>
-        <h3>
-            <a href="{% url "event_list_author" author.username %}"
-            >{{ author.get_full_name|default:author.username }}</a>
+        <h3 class="sidebar__entry">
+            <a href="{% url "event_list_author" author.username %}" class="sidebar__entry">{{ author.get_full_name|default:author.username }}</a>
+            ({{ author.event_count }})
         </h3>
-        ({{ author.event_count }})
     </li>
 {% endfor %}
 </ul>
 {% endblock %}
 
 {% block event_feeds %}
-<h2 class="sidebar__title">{% trans "Feeds" %}</h2>
+<h2 class="sidebar__title">{% trans "Feeds" %}</h2><br>
 {% if tag %}
-    <a href="{% url "event_feed_tag" tag.slug "rss" %}">{% trans "RSS" %}</a> /
-    <a href="{% url "event_feed_tag" tag.slug "atom" %}">{% trans "Atom" %}</a>
+    <a href="{% url "event_feed_tag" tag.slug "rss" %}" class="sidebar__entry">{% trans "RSS" %}</a> /
+    <a href="{% url "event_feed_tag" tag.slug "atom" %}" class="sidebar__entry">{% trans "Atom" %}</a>
 {% endif %}
 {% if location %}
-    <a href="{% url "event_feed_location" location.slug "rss" %}">{% trans "RSS" %}</a> /
-    <a href="{% url "event_feed_location" location.slug "atom" %}">{% trans "Atom" %}</a>
+    <a href="{% url "event_feed_location" location.slug "rss" %}" class="sidebar__entry">{% trans "RSS" %}</a> /
+    <a href="{% url "event_feed_location" location.slug "atom" %}" class="sidebar__entry">{% trans "Atom" %}</a>
 {% endif %}
 {% if author %}
-    <a href="{% url "event_feed_author" author.username "rss" %}">{% trans "RSS" %}</a> /
-    <a href="{% url "event_feed_author" author.username "atom" %}">{% trans "Atom" %}</a>
+    <a href="{% url "event_feed_author" author.username "rss" %}" class="sidebar__entry">{% trans "RSS" %}</a> /
+    <a href="{% url "event_feed_author" author.username "atom" %}" class="sidebar__entry">{% trans "Atom" %}</a>
 {% endif %}
 {% if not tag and not location and not author %}
-    <a href="{% url "event_feed" "rss" %}">{% trans "RSS" %}</a> /
-    <a href="{% url "event_feed" "atom" %}">{% trans "Atom" %}</a>
+    <a href="{% url "event_feed" "rss" %}" class="sidebar__entry">{% trans "RSS" %}</a> /
+    <a href="{% url "event_feed" "atom" %}" class="sidebar__entry">{% trans "Atom" %}</a>
 {% endif %}
 {% endblock %}