From: Thierry Parmentelat <thierry.parmentelat@inria.fr>
Date: Tue, 19 Mar 2013 15:06:17 +0000 (+0100)
Subject: prettyfied lists
X-Git-Tag: myslice-django-0.1-2~70
X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=f404a783003238fe5b509edbf574346bb37d2f55;p=myslice.git

prettyfied lists
---

diff --git a/plugins/lists/simplelist.css b/plugins/lists/simplelist.css
index 8bfe2167..296cd8f6 100644
--- a/plugins/lists/simplelist.css
+++ b/plugins/lists/simplelist.css
@@ -1,14 +1,21 @@
-/* ---------- */
-td.simplelist {
-    padding: 0;
-    list-style: none;
+/* font size for regular (non datatable'd) simplelists */
+tbody.simplelist {
+    font-size: 80%;
 }
-td.simplelist>a {
-    padding-left: 8px;
+/* datatable'd tables behave differently */
+table.with-datatables>tbody.simplelist {
+    font-size: 100%;
 }
-th.simplelist {
+/* larger headers */
+thead.simplelist>tr>th {
     font-size: 150%;
+    padding: 10px 10px 20px 10px;
+}
+/* some space after the arrow */ 
+tbody.simplelist i {
+    padding-right: 8px;
 }
+
 /* ---------- */
 /* xxx this probably should be separated in something related to datatables */
 select { 
diff --git a/plugins/lists/simplelist.html b/plugins/lists/simplelist.html
index 1ac90108..e34d087e 100644
--- a/plugins/lists/simplelist.html
+++ b/plugins/lists/simplelist.html
@@ -1,4 +1,4 @@
 <table class='simplelist{%if with_datatables %} with-datatables{% endif %}'>
-{% if header %} <thead><tr><th class='simplelist'>{{ header }}</th></tr></thead> {% endif %}
+{% if header %} <thead class='simplelist'><tr><th class='simplelist'>{{ header }}</th></tr></thead> {% endif %}
 <tbody class='simplelist'></tbody>
 </table>