r109780 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r109779‎ | r109780 | r109781 >
Date:23:21, 22 January 2012
Author:yaron
Status:deferred
Tags:
Comment:
Improved display of events with a color
Modified paths:
  • /trunk/extensions/SemanticResultFormats/Calendar/SRF_Calendar.php (modified) (history)
  • /trunk/extensions/SemanticResultFormats/Calendar/skins/SRFC_main.css (modified) (history)

Diff [purge]

Index: trunk/extensions/SemanticResultFormats/Calendar/skins/SRFC_main.css
@@ -89,9 +89,12 @@
9090 color: #555555;
9191 padding: 8px 2px 2px 2px;
9292 }
93 -table.month_calendar td p.colored-entry {
94 - border-top: 1px #f4f4d2 solid;
95 - border-bottom: 1px #f4f4d2 solid;
96 - padding: 2px 0 2px 6px;
 93+table.month_calendar td div.colored-entry {
 94+ border: 1px #f4f4d2 solid;
9795 background: #ffffdd;
 96+ margin: 4px 0 4px 0;
9897 }
 98+table.month_calendar td div.colored-entry p {
 99+ margin: 0;
 100+ padding: 2px 0 2px 6px;
 101+}
Index: trunk/extensions/SemanticResultFormats/Calendar/SRF_Calendar.php
@@ -469,7 +469,7 @@
470470 } else {
471471 $event_str = $skin->makeLinkObj( $event_title );
472472 if ( $color != '' ) {
473 - $text .= "<p class=\"colored-entry\" style=\"border-left: 7px $color solid;\">$event_str $other_text</p>\n";
 473+ $text .= "<div class=\"colored-entry\"><p style=\"border-left: 7px $color solid;\">$event_str $other_text</p></div>\n";
474474 } else {
475475 $text .= "$event_str $other_text\n\n";
476476 }