Css small change
authorveltr
Mon, 11 Feb 2013 15:13:19 +0100
changeset 35 365c73a0e8c1
parent 34 92f25438071d
child 36 daa526d27044
Css small change
src/egonomy/static/egonomy/css/egonomy.css
src/egonomy/templates/egonomy_all_fragments.html
src/egonomy/templates/egonomy_all_pictures.html
--- a/src/egonomy/static/egonomy/css/egonomy.css	Mon Feb 11 14:46:14 2013 +0100
+++ b/src/egonomy/static/egonomy/css/egonomy.css	Mon Feb 11 15:13:19 2013 +0100
@@ -173,13 +173,6 @@
     float: left; margin: 2px 0 4px 12px;
 }
 
-.subcol_all {
-    float: left; margin: 2px 0 4px 10px; width: 110px;
-}
-.subcol_all:nth-child(8n+1) {
-    margin-left: 0; clear: left;
-}
-
 .column-third {
     float: left; width: 312px;
 }
@@ -218,7 +211,7 @@
 }
 
 .subcol-eighth {
-    width: 110px;
+    width: 110px; margin-left: 12px;
 }
 
 .subcol-eighth:nth-child(even) {
--- a/src/egonomy/templates/egonomy_all_fragments.html	Mon Feb 11 14:46:14 2013 +0100
+++ b/src/egonomy/templates/egonomy_all_fragments.html	Mon Feb 11 15:13:19 2013 +0100
@@ -13,7 +13,7 @@
 						{% if nb_pages %}<p>{% build_pagination nb_pages cur_page_nb "all_fragments" "contents_page clickable" %}</p>{% endif %}
                         <ul class="fullwidth">
                           {% for frg in results %}
-                            <li class="subcol_all">
+                            <li class="subcol subcol-eighth">
                               <a href="{% url 'view_fragment' fragment_pk=frg.pk %}">
                               <div class="center-image">
                                 <div class="image-and-fragment">
--- a/src/egonomy/templates/egonomy_all_pictures.html	Mon Feb 11 14:46:14 2013 +0100
+++ b/src/egonomy/templates/egonomy_all_pictures.html	Mon Feb 11 15:13:19 2013 +0100
@@ -13,7 +13,7 @@
 						{% if nb_pages %}<p>{% build_pagination nb_pages cur_page_nb "all_pictures" "contents_page clickable" %}</p>{% endif %}
                         <ul class="fullwidth">
                           {% for img in results %}
-                            <li class="subcol_all">
+                            <li class="subcol subcol-eighth">
                                 <a href="{% url 'annotate_picture' image_id=img.id %}">
                                 <div class="center-image">
                                  {% with img.info.image_file as image %}
@@ -38,7 +38,7 @@
                                 </div>
                                 <h3>{{ img.metadata.titre }}</h3></a>
                                 <p>{% trans "Annotated by" %} <strong>{{ img.metadata.auteur }}</strong></p>
-                            </li>
+                            </li>   
                           {% endfor %}
                         </ul>
                         {% if nb_pages %}<p>{% build_pagination nb_pages cur_page_nb "all_pictures" "contents_page clickable" %}</p>{% endif %}