Forráskód Böngészése

Colores alternos en las filas de la tabla de movimientos.

Celestino Rey 1 éve
szülő
commit
8daa712e4f
2 módosított fájl, 10 hozzáadás és 2 törlés
  1. 9 1
      static/style.css
  2. 1 1
      templates/dashboard.html

+ 9 - 1
static/style.css

@@ -437,7 +437,7 @@ table {
 }
 
 tr {
-   border-bottom: 1px solid #E3DBFC;
+   border-bottom: 1px solid #fff;
 }
 
 thead {
@@ -457,6 +457,14 @@ tbody tr td {
    padding: 10px 15px;
 }
 
+tbody .fila-impar {
+   background-color: #ccceca;
+}
+
+tbody .fila-par {
+   background-color: #fff;
+}
+
 .active p {
    background: #d7fada;
    padding: 2px 10px;

+ 1 - 1
templates/dashboard.html

@@ -37,7 +37,7 @@
             <tbody>
 
             {% for m in movimientos %}
-                <tr>
+                <tr class="{% cycle 'fila-impar' 'fila-par' %}">
                     <td class="movimiento">
                         {{ m.fecha }}
                     </td>