From 9cf1773307ad9581a21ebd81cd2b03a25b1cf14b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Henrik=20Grubbstr=C3=B6m=20=28Grubba=29?= <grubba@grubba.org> Date: Sun, 5 Feb 2012 14:40:37 +0100 Subject: [PATCH] AutoDoc: Some CSS-tuning for the modref. --- .../autodoc_to_split_html.pike | 2 +- refdoc/structure/modref.css | 29 ++++++------------- 2 files changed, 10 insertions(+), 21 deletions(-) diff --git a/lib/modules/Tools.pmod/Standalone.pmod/autodoc_to_split_html.pike b/lib/modules/Tools.pmod/Standalone.pmod/autodoc_to_split_html.pike index 0638bd1404..8d2847236d 100644 --- a/lib/modules/Tools.pmod/Standalone.pmod/autodoc_to_split_html.pike +++ b/lib/modules/Tools.pmod/Standalone.pmod/autodoc_to_split_html.pike @@ -710,7 +710,7 @@ class TopNode { resolve_reference = my_resolve_reference; if(!sizeof(method_children)) return ""; - string contents = "<nav><table class='sidebar'><tr>"; + string contents = "<nav><table class='sidebar' style='width:100%;'><tr>"; foreach(method_children/( sizeof(method_children)/4.0 ), array(Node) children) contents += "<td nowrap='nowrap' valign='top'>" + diff --git a/refdoc/structure/modref.css b/refdoc/structure/modref.css index f8e6407238..237cdbfdb1 100644 --- a/refdoc/structure/modref.css +++ b/refdoc/structure/modref.css @@ -1,12 +1,9 @@ body { margin: 0; -} - -body, td, th { - font-family: arial,helvetica,sans-serif; - font-size: 13px; color: #343434; background: #ffffff; + font-family: arial,helvetica,sans-serif; + font-size: 13px; } blockquote { margin-bottom: 14px; } @@ -38,7 +35,7 @@ em { } .sidebar { - background: #e0e0e0; + background: #f0f0f0; font-size: 95%; margin: 3px; overflow: hidden; @@ -55,7 +52,7 @@ em { } .contentbox { - margin-right: 20px; + margin-right: 23px; min-width: 520px; overflow: hidden; padding-left: 23px; @@ -63,25 +60,27 @@ em { } .navbox { - margin-right: 20px; + margin-right: 23px; min-width: 520px; overflow: hidden; } +.navbox .sidebar { + background: #e0e0e0; +} + pre,code { font-family: "andale mono", "monotype.com", "courier new", monospace; font-size: 90%; } h1 { - font-family: arial,helvetica,sans-serif; font-size: 26px; font-weight: bold; color: #000066; } h2 { - font-family: arial,helvetica,sans-serif; font-size: 125%; font-weight: bold; color: #000066; @@ -89,45 +88,35 @@ h2 { } h3 { - font-family: arial,helvetica,sans-serif; font-size: 110%; font-weight: bold; color: #000066; } small { - font-family: arial,helvetica,sans-serif; font-size: 75%; } a.small { - font-family: arial,helvetica,sans-serif; font-size: 75%; text-decoration: none; } .tableTitle { - font-family: arial,helvetica,sans-serif; font-weight: bold; } .tableExtras { - font-family: arial,helvetica,sans-serif; font-size: 85%; color: #FFFFFF; } -input { - font-family: arial,helvetica,sans-serif; -} - textarea { font-family: "andale mono", "monotype.com", "courier new", monospace; } input.small, select.small { - font-family: arial,helvetica,sans-serif; font-size: 75%; } -- GitLab