# HG changeset patch # User Paul Boddie # Date 1238872082 -7200 # Node ID a7cf947b8fd36dddaa09f025d7d0ddf1dc21189f # Parent b22cad41be9c7a3b358b24243138efdba6455d49 Fixed padding and pop-up positioning. Removed redundant style details. diff -r b22cad41be9c -r a7cf947b8fd3 css/event-aggregator.css --- a/css/event-aggregator.css Sat Apr 04 20:49:48 2009 +0200 +++ b/css/event-aggregator.css Sat Apr 04 21:08:02 2009 +0200 @@ -157,13 +157,14 @@ } .event-summary { - padding: 0.5em; + padding: 0.75em; margin-left: 0; margin-right: 0; overflow: hidden; } .event-day-single .event-summary { + padding: 0.75em 0.25em 0.75em 0.25em; margin-left: 0.5em; margin-right: 0.5em; } @@ -172,10 +173,10 @@ display: none; overflow: show; position: absolute; - left: 0; + left: 0.5em; top: 0; z-index: 2; - padding: 0.5em; + padding: 0.75em 0.25em 0.75em 0.25em; } .event-summary-box:hover > .event-summary-popup { diff -r b22cad41be9c -r a7cf947b8fd3 macros/EventAggregator.py --- a/macros/EventAggregator.py Sat Apr 04 20:49:48 2009 +0200 +++ b/macros/EventAggregator.py Sat Apr 04 21:08:02 2009 +0200 @@ -405,7 +405,6 @@ bg = getColour(event_page.page_name) fg = getBlackOrWhite(bg) style = ("background-color: rgb(%d, %d, %d); color: rgb(%d, %d, %d);" % (bg + fg)) - hidden_style = ("background-color: rgb(%d, %d, %d); color: rgb(%d, %d, %d);" % (bg + bg)) # Determine if the event name should be shown. @@ -514,7 +513,7 @@ } if not (starts_today and ends_today): - attrs["style"] = hide_text and hidden_style or style + attrs["style"] = style output.append(fmt.table_cell(on=1, attrs=attrs))