Browse Source

CSS: bleu/blanc (pair/impair) dans la liste d'elements.

bastien 13 years ago
parent
commit
dab57cadb8

+ 1 - 1
src/Muzich/CoreBundle/Resources/views/SearchElement/default.html.twig View File

2
 {% if elements|length %}
2
 {% if elements|length %}
3
   <ul class="elements">
3
   <ul class="elements">
4
     {% for element in elements %} 
4
     {% for element in elements %} 
5
-      <li class="element" id="element_{{ element.id }}">
5
+      <li class="element {% if loop.index0 is even %}even{% else %}odd{% endif %}" id="element_{{ element.id }}">
6
         
6
         
7
         {% if element.embed %}
7
         {% if element.embed %}
8
           <img src="{{ asset('bundles/muzichcore/img/1324917083_player.png') }}" alt="player" />
8
           <img src="{{ asset('bundles/muzichcore/img/1324917083_player.png') }}" alt="player" />

+ 5 - 0
web/bundles/muzichcore/css/main.css View File

380
   margin-bottom: 5px;
380
   margin-bottom: 5px;
381
 }
381
 }
382
 
382
 
383
+ul.elements li.even
384
+{
385
+  background-color: #d9f7ff;
386
+}
387
+
383
 .elements ul.element_tags
388
 .elements ul.element_tags
384
 {
389
 {
385
   margin-left: 10px;
390
   margin-left: 10px;