Style the events calendar

This commit is contained in:
Brian Miyaji
2014-03-17 21:38:54 +11:00
parent 7abc853b0b
commit ad7b12e50e
2 changed files with 11 additions and 1 deletions

View File

@@ -70,7 +70,7 @@ if ( !function_exists( 'sportspress_events_calendar' ) ) {
/* translators: Calendar caption: 1: month name, 2: 4-digit year */ /* translators: Calendar caption: 1: month name, 2: 4-digit year */
$calendar_caption = _x('%1$s %2$s', 'calendar caption', 'sportspress'); $calendar_caption = _x('%1$s %2$s', 'calendar caption', 'sportspress');
$calendar_output = ' $calendar_output = '
<table id="wp-calendar"> <table id="wp-calendar" class="sp-calendar sp-events-calendar">
<' . $caption_tag . ' class="sp-table-caption">' . sprintf($calendar_caption, $wp_locale->get_month($thismonth), date('Y', $unixmonth)) . '</' . $caption_tag . '> <' . $caption_tag . ' class="sp-table-caption">' . sprintf($calendar_caption, $wp_locale->get_month($thismonth), date('Y', $unixmonth)) . '</' . $caption_tag . '>
<thead> <thead>
<tr>'; <tr>';

View File

@@ -32,6 +32,16 @@
width: auto; width: auto;
} }
/* Events Calendar */
.sp-events-calendar tbody td, .sp-events-calendar thead th {
text-align: center;
}
.sp-events-calendar #next {
text-align: right;
}
.sp-events-calendar #prev {
text-align: left;
}
/* Events List */ /* Events List */
.sp-events-list .column-article { .sp-events-list .column-article {
white-space: nowrap; white-space: nowrap;