changeset 2847:09e05a641722

fix #468 move moin table and zebra styling to common.css; restyles all basic theme Admin and User tables
author RogerHaase <haaserd@gmail.com>
date Sat, 01 Nov 2014 08:38:06 -0700
parents f9bccf2e3d1e
children 5f372df47c94
files MoinMoin/static/css/common.css MoinMoin/themes/modernized/static/css/stylus/theme.styl MoinMoin/themes/modernized/static/css/theme.css
diffstat 3 files changed, 14 insertions(+), 54 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/static/css/common.css	Tue Oct 28 20:56:27 2014 -0700
+++ b/MoinMoin/static/css/common.css	Sat Nov 01 08:38:06 2014 -0700
@@ -203,3 +203,17 @@
 /* footnotes */
 .moin-footnotes { border-top: 1px solid gray; margin: 2em; }
 .moin-footnotes p { margin: 1em; }
+
+/* moin default table styling */
+table { margin: 1%; }
+tr > th,
+tr > td { padding: .3em .4em; vertical-align: middle; text-align: left; }
+tr > th { border: 1px solid #4e7da9; background-color: #81bbf2; text-align: left; color: #000; }
+tr > td { border: 1px solid #4e7da9; }
+td p { margin: 0; padding: 0; }
+
+/* zebra table styling */
+table.zebra { width: 98%; }
+.zebra td form input { box-shadow: none; }
+.zebra tbody tr:nth-child(even),
+.zebra > tr:nth-child(odd) { background-color: #eee; }
--- a/MoinMoin/themes/modernized/static/css/stylus/theme.styl	Tue Oct 28 20:56:27 2014 -0700
+++ b/MoinMoin/themes/modernized/static/css/stylus/theme.styl	Sat Nov 01 08:38:06 2014 -0700
@@ -198,52 +198,9 @@
 pre.comment:before
     content url(../img/attention.png)
 
-table
-    margin 1%
-    border-collapse collapse
-
-th, td
-    padding 0.3em 0.4em
-    vertical-align middle
-    text-align left
-
-th
-    border border_style
-    background-color table_header_bg_color
-    text-align center
-    color font_color
-
-td
-    border border_style
-
-td p
-    margin 0
-    padding 0
-
 .moin-thead
     background-color header_bg_color
 
-table.zebra
-    border-collapse collapse
-    width 98%
-
-.zebra thead
-    background-color header_bg_color
-
-.zebra tfoot
-    background-color base_color
-
-.zebra td
-    form
-        input
-            box-shadow none
-
-.zebra tbody tr, .zebra > tr
-    background-color table_bg_color
-
-.zebra tbody tr:nth-child(odd), .zebra > tr:nth-child(odd)
-    background-color table_row_color
-
 div.moin-table-of-contents
     border border_style
     color font_color
--- a/MoinMoin/themes/modernized/static/css/theme.css	Tue Oct 28 20:56:27 2014 -0700
+++ b/MoinMoin/themes/modernized/static/css/theme.css	Sat Nov 01 08:38:06 2014 -0700
@@ -334,18 +334,7 @@
 pre{border:1px solid #4e7da9;background-color:#aed4fa;padding:5px;clear:both;font-family:monospace;margin:.33em 0;white-space:pre-wrap}
 pre.comment{background-color:#00417f;color:#fff;padding:0;margin:0;border:0}
 pre.comment:before{content:url("../img/attention.png")}
-table{margin:1%;border-collapse:collapse}
-th,td{padding:.3em .4em;vertical-align:middle;text-align:left}
-th{border:1px solid #4e7da9;background-color:#81bbf2;text-align:center;color:#000}
-td{border:1px solid #4e7da9}
-td p{margin:0;padding:0}
 .moin-thead{background-color:#00417f}
-table.zebra{border-collapse:collapse;width:98%}
-.zebra thead{background-color:#00417f}
-.zebra tfoot{background-color:#aed4fa}
-.zebra td form input{box-shadow:none}
-.zebra tbody tr,.zebra > tr{background-color:#eef1f6}
-.zebra tbody tr:nth-child(odd),.zebra > tr:nth-child(odd){background-color:#d8dfe9}
 div.moin-table-of-contents{border:1px solid #4e7da9;color:#000;background:#fff;font-size:80%;margin:.5em 0 .75em 1em;padding:.5em .75em .5em .5em;text-indent:-1em;max-width:35%;text-align:left;float:right;clear:both;box-shadow:3px 3px 6px #9d9d9b;border-radius:15px}
 .moin-table-of-contents ol{margin:0;padding:0 0 0 .92em}
 .moin-table-of-contents li{margin:.12em 0 0 0;padding:0;list-style:none}