Permalink
Browse files

Add styling for tables

  • Loading branch information...
1 parent 0d28e78 commit 5b02de84f4d070a899abf63a904e060a1ca60098 @lsegal committed Feb 7, 2013
Showing with 18 additions and 0 deletions.
  1. +10 −0 templates/default/fulldoc/html/css/style.css
  2. +8 −0 templates/guide/fulldoc/html/css/style.css
View
10 templates/default/fulldoc/html/css/style.css
@@ -27,6 +27,16 @@ h2 small { font-weight: normal; font-size: 0.7em; display: block; float: right;
.rdoc-term { padding-right: 25px; font-weight: bold; }
.rdoc-list p { margin: 0; padding: 0; margin-bottom: 4px; }
+/* style for <table> */
+#filecontents table, .docstring table { border-collapse: collapse; }
+#filecontents table th, #filecontents table td,
+.docstring table th, .docstring table td { border: 1px solid #ccc; padding: 8px; padding-right: 17px; }
+#filecontents table tr:nth-child(odd),
+.docstring table tr:nth-child(odd) { background: #eee; }
+#filecontents table tr:nth-child(even),
+.docstring table tr:nth-child(even) { background: #fff; }
+#filecontents table th, .docstring table th { background: #fff; }
+
/* style for <ul> */
#filecontents li > p, .docstring li > p { margin: 0px; }
#filecontents ul, .docstring ul { padding-left: 20px; }
View
8 templates/guide/fulldoc/html/css/style.css
@@ -24,6 +24,14 @@ ul { list-style: square; }
.inline { display: inline; }
.inline p:first-child { display: inline; }
.inline p { font-family: Georgia, serif; font-size: 16px; color: #3e4349; }
+#filecontents table, .docstring table { border-collapse: collapse; }
+#filecontents table th, #filecontents table td,
+.docstring table th, .docstring table td { border: 1px solid #ccc; padding: 8px; padding-right: 17px; }
+#filecontents table tr:nth-child(odd),
+.docstring table tr:nth-child(odd) { background: #eee; }
+#filecontents table tr:nth-child(even),
+.docstring table tr:nth-child(even) { background: #fff; }
+#filecontents table th, .docstring table th { background: #fff; }
.docstring .note { margin: 1em 0; }
.docstring h1, .docstring h2, .docstring h3, .docstring h4 { padding: 0; border: 0; border-bottom: 1px dotted #bbb; }
.docstring h1 { font-size: 1.2em; }

1 comment on commit 5b02de8

@fotos

👍

Please sign in to comment.