From edfc5ffe06686bc65c2011cc9cfde52d66fbe2fe Mon Sep 17 00:00:00 2001 From: "Rob G. Healey" Date: Mon, 11 May 2009 02:28:15 +0000 Subject: [PATCH] Little change in WebCal. Added chnages to stylesheet for new Download Page. svn: r12519 --- src/data/Web_Visually.css | 45 ++++++++++++++++++++++++++++++--- src/plugins/webreport/WebCal.py | 7 ++--- 2 files changed, 43 insertions(+), 9 deletions(-) diff --git a/src/data/Web_Visually.css b/src/data/Web_Visually.css index f2ca46d62..49574578e 100644 --- a/src/data/Web_Visually.css +++ b/src/data/Web_Visually.css @@ -681,6 +681,7 @@ table.individuallist tbody tr td.ColumnName a:hover { #researcher h3 { font:normal 1.2em/1.4em serif; padding:0; + text-align:left; } #researcher span { float:left; @@ -689,7 +690,7 @@ table.individuallist tbody tr td.ColumnName a:hover { margin-right:.4em; } #streetaddress { - width:80%; + width:100%; } #city:after { content:","; @@ -707,14 +708,50 @@ table.individuallist tbody tr td.ColumnName a:hover { text-decoration:underline; } +/* Download +----------------------------------------------------- */ +#Download { + padding:1cm; +} +table.Download { + border:solid 1px #000; + width:100%; +} +table.Download tbody tr td { + padding:1em; + border-style:solid; + border-color:#000; + border-width:0 2px 2px 2px; +} +table.Download tbody tr td.ColumnAttribute { + width:30%; + background-color:#6AF364; +} +table.Download tbody tr td.ColumnValue { + width:70%; +} +table.Download tbody tr td.ColumnValue a { + font-weight:bold; + font-style: italic; +} +table.Download tbody tr td.ColumnValue a:hover { + text-decoration:underline; + background-color:#C1B398; + padding-top:15px; + padding-bottom:15px; + padding-right:190px; + padding-left:35px; +} +table.Download img { + float:left; + text-align:left; +} + /* Subsections ----------------------------------------------------- */ #Home, #Introduction, #Contact { padding:2em 0 3em 0; } -#Download { - padding:1em 0 3em 0; -} #Home p, #Introduction p, #Download p { margin:0 20px 1em 20px; } diff --git a/src/plugins/webreport/WebCal.py b/src/plugins/webreport/WebCal.py index 2505d0d3e..200bb32a8 100644 --- a/src/plugins/webreport/WebCal.py +++ b/src/plugins/webreport/WebCal.py @@ -710,9 +710,6 @@ class WebCalReport(Report): # add weekdays names to table body thead += weekday_names - # add table row to table head - cal_table += thead - # begin table body tbody = Html('tbody') @@ -871,8 +868,8 @@ class WebCalReport(Report): # add extra weeks to tbody if needed tbody += six_weeks - # close table body - cal_table += tbody + # bring table head and table body back together + cal_table += (thead, tbody) # return calendar table to its caller return cal_table