From 67888772bb5737af51819f31bd8b9d3046af3791 Mon Sep 17 00:00:00 2001 From: "Rob G. Healey" Date: Thu, 12 Jan 2012 08:29:13 +0000 Subject: [PATCH] Fixed a type in webstuff.py and a little bit of separation of lines. * Fixed the Vertical menu placement on the page. * Removed margin-top element from Basic-Blue style sheet. svn: r18737 --- src/plugins/webstuff/css/Web_Basic-Blue.css | 1 - .../webstuff/css/Web_Vertical-Menus.css | 10 +++++-- src/plugins/webstuff/webstuff.py | 29 +++++++++---------- 3 files changed, 21 insertions(+), 19 deletions(-) diff --git a/src/plugins/webstuff/css/Web_Basic-Blue.css b/src/plugins/webstuff/css/Web_Basic-Blue.css index 094e70948..ffd123785 100644 --- a/src/plugins/webstuff/css/Web_Basic-Blue.css +++ b/src/plugins/webstuff/css/Web_Basic-Blue.css @@ -231,7 +231,6 @@ div#footer { font-size: 12px; line-height: 130%; color: #FFF; - margin-top: 0.5cm; background-color: #00029D; border-top: solid 8px #13A926; } diff --git a/src/plugins/webstuff/css/Web_Vertical-Menus.css b/src/plugins/webstuff/css/Web_Vertical-Menus.css index d0af06d52..ec1234738 100755 --- a/src/plugins/webstuff/css/Web_Vertical-Menus.css +++ b/src/plugins/webstuff/css/Web_Vertical-Menus.css @@ -32,7 +32,7 @@ Style Name: Web_Navigation-Vertical.css Stylesheet body { background: -webkit-gradient (linear, left top, left bottom, from(#ccc), to(#fff)); color: #000; - padding: 60px 0px 0px 120px; + padding: 60px 0px 0px 146px; } /* Header @@ -56,7 +56,7 @@ div#nav { div#nav ul { list-style-type: none; display: block; - width: 320px; + width: 330px; position: fixed; top: 53px; left: 0px; @@ -71,7 +71,7 @@ div#nav ul li a { padding: 7px 15px 7px 15px; -webkit-border-top-right-radius: 10px; -webkit-border-bottom-right-radius: 10px; - width: 100px; + width: 120px; display: block; text-decoration: none; -webkit-box-shadow: 2px 2px 4px #888; @@ -81,6 +81,10 @@ div#nav ul li a:hover { color: #67a5cd; padding: 7px 0px 7px 30px; } +div#nav ul li.CurrentSection a { + background-color: #000; + color: #FFF; +} /* SubNavigation ----------------------------------------------------- */ diff --git a/src/plugins/webstuff/webstuff.py b/src/plugins/webstuff/webstuff.py index 8983656e1..9e91c9a63 100644 --- a/src/plugins/webstuff/webstuff.py +++ b/src/plugins/webstuff/webstuff.py @@ -58,27 +58,27 @@ def load_on_reg(dbstate, uistate, plugin): # Basic Ash style sheet ["Basic-Ash", 1, _("Basic-Ash"), - path_css('Web_Basic-Ash.css'), None, [], []], + path_css('Web_Basic-Ash.css'), None, [], [] ], # Basic Blue style sheet with navigation menus ["Basic-Blue", 1, _("Basic-Blue"), - path_css('Web_Basic-Blue.css'), "narrative-menus.css", [], []], + path_css('Web_Basic-Blue.css'), "narrative-menus.css", [], [] ], # Basic Cypress style sheet ["Basic-Cypress", 1, _("Basic-Cypress"), - path_css('Web_Basic-Cypress.css'), None, [], []], + path_css('Web_Basic-Cypress.css'), None, [], [] ], # basic Lilac style sheet ["Basic-Lilac", 1, _("Basic-Lilac"), - path_css('Web_Basic-Lilac.css'), None, [], []], + path_css('Web_Basic-Lilac.css'), None, [], [] ], # basic Peach style sheet ["Basic-Peach", 1, _("Basic-Peach"), - path_css('Web_Basic-Peach.css'), None, [], []], + path_css('Web_Basic-Peach.css'), None, [], [] ], # basic Spruce style sheet ["Basic-Spruce", 1, _("Basic-Spruce"), - path_css('Web_Basic-Spruce.css'), None, [], []], + path_css('Web_Basic-Spruce.css'), None, [], [] ], # Mainz style sheet with its images ["Mainz", 1, _("Mainz"), @@ -86,11 +86,11 @@ def load_on_reg(dbstate, uistate, plugin): [path_img("Web_Mainz_Bkgd.png"), path_img("Web_Mainz_Header.png"), path_img("Web_Mainz_Mid.png"), - path_img("Web_Mainz_MidLight.png")], []], + path_img("Web_Mainz_MidLight.png")], [] ], # Nebraska style sheet ["Nebraska", 1, _("Nebraska"), - path_css('Web_Nebraska.css'), None, [], []], + path_css('Web_Nebraska.css'), None, [], [] ], # Visually Impaired style sheet with its navigation menus ["Visually Impaired", 1, _("Visually Impaired"), @@ -119,12 +119,12 @@ def load_on_reg(dbstate, uistate, plugin): path_css('Web_Print-Default.css'), None, [], [] ], # vertical navigation style sheet - ["Vertica-Menusl", 0, "", + ["Vertical-Menus", 0, "", path_css('Web_Vertical-Menus.css'), None, [], [] ], # horizontal navigation style sheet ["Horizontal-Menus", 0, "", - path_css('Web_Horizontal-Menus.css'), None, [], []], + path_css('Web_Horizontal-Menus.css'), None, [], [] ], # GeoView style sheet with its image ["GeoView", 0, "GeoView", @@ -142,21 +142,20 @@ def load_on_reg(dbstate, uistate, plugin): # all other images for use in NarrativeWeb ['All Images', 0, 'All Images', None, None, [path_img("blank.gif"), - path_img("document.png")], []], + path_img("document.png")], [] ], # Gramps Fav icon #2 ["favicon2", 0, "favicon2", - path_img("favicon2.ico"), None, [], []], + path_img("favicon2.ico"), None, [], [] ], # copyright image ['Copyright', 0, 'Copyright', - path_img("somerights20.gif"), None, [], []], + path_img("somerights20.gif"), None, [], [] ], # document image in case the media object is not an image ['Document', 0, 'Document', - path_img("document.png"), None, [], []], + path_img("document.png"), None, [], [] ], ] - return CSS_FILES def process_list(data):