Browse Source

griglia con orari e tacche più leggibili

boyska 3 years ago
parent
commit
fe5457922e
2 changed files with 10 additions and 2 deletions
  1. 3 1
      talks/_templates/grid.html
  2. 7 1
      themes/maya0x17/static/talk.scss

+ 3 - 1
talks/_templates/grid.html

@@ -10,7 +10,9 @@
     <tbody>
         {% for time in times|sort %}
         <tr>
-            <td>{{time}}</td>
+            <td class="talk-grid-time">
+                {{"%02d:%02d"|format((time // 100) % 24, time % 100)}}
+            </td>
             {% for talk in times[time] %}
                 {% if not loop.first and talk.room == '*' %}
                     {# skip: covered by colspan #}

+ 7 - 1
themes/maya0x17/static/talk.scss

@@ -1,7 +1,13 @@
 .talk-grid {
     .talk { text-align: center; }
     td { border: 0; }
-    td:first-child { border-bottom: 1px solid white; }
+    td.talk-grid-time {
+    border-bottom: 1px solid #444;
+    border-top: 1px solid #444;
+    vertical-align: top;
+    padding-top: 0;
+}
+    td.talk { padding-bottom: 1em; padding-top: 1em; }
     .tag-cibo {
         background-color: adjust-color($c-bg, $lightness: -15%);
     }