changeset 1591:924a3d927018

Modernized theme create new item table styling
author Jaiditya Mathur <jaiditya.mathur@gmail.com>
date Thu, 02 Aug 2012 02:34:37 +0530
parents 3ca29b69d4be
children 640da44961b2
files MoinMoin/templates/modify_show_contenttype_selection.html MoinMoin/themes/modernized/static/css/common.css MoinMoin/themes/modernized/static/css/stylus/main.styl
diffstat 3 files changed, 23 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/templates/modify_show_contenttype_selection.html	Thu Aug 02 02:01:21 2012 +0530
+++ b/MoinMoin/templates/modify_show_contenttype_selection.html	Thu Aug 02 02:34:37 2012 +0530
@@ -5,15 +5,15 @@
 {# XXX should show itemtype's display name #}
 {{ _("Please select the contenttype of the new %(itemtype)s item.", itemtype=itemtype) }}
 </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, itemtype=itemtype, contenttype=ctname) }}">{{ ctlabel }}</a> -
+            <a href="{{ url_for('frontend.modify_item', item_name=item_name, itemtype=itemtype, contenttype=ctname) }}">{{ ctlabel }}</a> &nbsp|&nbsp
         {% endfor %}
         </td>
     </tr>
--- a/MoinMoin/themes/modernized/static/css/common.css	Thu Aug 02 02:01:21 2012 +0530
+++ b/MoinMoin/themes/modernized/static/css/common.css	Thu Aug 02 02:34:37 2012 +0530
@@ -265,6 +265,10 @@
 .moin-disabled{color:#737373}
 .moin-rev-navigation-current{font-size:1.5em;text-transform:uppercase}
 .moin-rev-navigation-older,.moin-rev-navigation-newer{padding:0 20px 0 20px}
+#moin-create-table{width:95%;margin-left:auto;margin-right:auto;}
+#moin-create-table tbody tr th{text-align:center;background:header_color;margin:2px}
+#moin-create-table tbody tr td{text-align:center;background:#fff;}
+#moin-create-table tbody tr td a{color:#00008b}
 label{display:block;font-weight:bold}
 input[type="submit"],input[type="button"],button{font-weight:bold;font-size:.75em;background:#dfdfdf;padding:4px 15px;border:1px solid #4e7da9;border-radius:6px;box-shadow:1px 1px 2px #9d9d9b;cursor:pointer;}
 input[type="submit"]:hover,input[type="button"]:hover,button:hover{box-shadow:1px 1px 2px #000}
--- a/MoinMoin/themes/modernized/static/css/stylus/main.styl	Thu Aug 02 02:01:21 2012 +0530
+++ b/MoinMoin/themes/modernized/static/css/stylus/main.styl	Thu Aug 02 02:34:37 2012 +0530
@@ -315,6 +315,22 @@
 .moin-rev-navigation-older,
 .moin-rev-navigation-newer
     padding 0 20px 0 20px
+    
+// create table
+#moin-create-table
+    width 95%
+    margin-left auto
+    margin-right auto
+    tbody tr 
+            th
+                text-align center
+                background header_color
+                margin 2px
+            td
+                text-align center
+                background page_color
+                a
+                    color link_color
 
 // form
 label