changeset 1494:a14d21395b9d

Foobar theme create-new-item table styling
author Jaiditya Mathur <jaiditya.mathur@gmail.com>
date Sun, 24 Jun 2012 10:16:10 +0530
parents 0eeab594bc91
children 9909752a8a9d
files MoinMoin/themes/foobar/static/css/common.css MoinMoin/themes/foobar/static/css/stylus/main.styl MoinMoin/themes/foobar/templates/modify_show_type_selection.html
diffstat 3 files changed, 23 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/themes/foobar/static/css/common.css	Sun Jun 24 10:09:31 2012 +0530
+++ b/MoinMoin/themes/foobar/static/css/common.css	Sun Jun 24 10:16:10 2012 +0530
@@ -200,6 +200,10 @@
 .moin-form dd{margin-bottom:1em;}
 .moin-form dd input{width:20em}
 .moin-form dt label.required:after{content:'*';color:#000}
+#moin-create-table{width:95%;margin-left:auto;margin-right:auto;}
+#moin-create-table tbody tr th{text-align:center;background:#d0d0d0;margin:2px}
+#moin-create-table tbody tr td{text-align:center;background:#f0f0f0;}
+#moin-create-table tbody tr td a{color:#000}
 .moin-clr{clear:both}
 .moin-index-message{width:50%;margin:1em auto;text-align:center;display:none;}
 .moin-index-message span{padding:4px;background-color:#007cef;color:#fff;border:1px solid #ccc;border-radius:5px}
--- a/MoinMoin/themes/foobar/static/css/stylus/main.styl	Sun Jun 24 10:09:31 2012 +0530
+++ b/MoinMoin/themes/foobar/static/css/stylus/main.styl	Sun Jun 24 10:16:10 2012 +0530
@@ -223,6 +223,22 @@
                 content: '*'
                 color: font_color
 
+// create table
+#moin-create-table
+    width 95%
+    margin-left auto
+    margin-right auto
+    tbody tr 
+            th
+                text-align center
+                background table_bg_color
+                margin 2px
+            td
+                text-align center
+                background page_color
+                a
+                    color font_color
+
 // index page
 .moin-clr
     clear both
--- a/MoinMoin/themes/foobar/templates/modify_show_type_selection.html	Sun Jun 24 10:09:31 2012 +0530
+++ b/MoinMoin/themes/foobar/templates/modify_show_type_selection.html	Sun Jun 24 10:16:10 2012 +0530
@@ -4,15 +4,15 @@
 <p>
 {{ _("This item does not exist (yet), but you can try creating it now. Please select the type of the item you want to create.") }}
 </p>
-<table class="zebra">
+<table id="moin-create-table" class="zebra">
     {% for gname, contenttypes in contenttype_groups %}
     <tr>
         <th>{{ gname }}</th>
     </tr>
     <tr>
-        <td>
+        <td> |&nbsp
         {% for ctname, ctlabel in contenttypes %}
-            <a href="{{ url_for('frontend.modify_item', item_name=item_name, contenttype=ctname) }}">{{ ctlabel }}</a> -
+            <a href="{{ url_for('frontend.modify_item', item_name=item_name, contenttype=ctname) }}">{{ ctlabel }}</a> &nbsp|&nbsp 
         {% endfor %}
         </td>
     </tr>