Adjust pagination styling

This commit is contained in:
Brian Miyaji
2014-03-30 11:07:15 +11:00
parent aa16fab404
commit cd9eaf6128
4 changed files with 7 additions and 9 deletions

View File

@@ -42,7 +42,6 @@
.sp-pagination tfoot tr td { .sp-pagination tfoot tr td {
text-align: center; text-align: center;
cursor: pointer; cursor: pointer;
opacity: 0.5;
} }
.sp-pagination tfoot tr td.prev { .sp-pagination tfoot tr td.prev {
text-align: left; text-align: left;
@@ -54,7 +53,7 @@
cursor: inherit; cursor: inherit;
} }
.sp-pagination tfoot tr td.active { .sp-pagination tfoot tr td.active {
opacity: 1; opacity: 0.5;
cursor: default; cursor: default;
} }
.sp-pagination tfoot tr td.disabled { .sp-pagination tfoot tr td.disabled {
@@ -82,7 +81,6 @@
} }
.sp-event-list .column-article a .dashicons { .sp-event-list .column-article a .dashicons {
padding-right: 3px; padding-right: 3px;
text-decoration: none;
} }
/* Google Maps */ /* Google Maps */

View File

@@ -53,12 +53,12 @@ function viewport() {
$(nPaging).addClass('pagination').append( $(nPaging).addClass('pagination').append(
'<table class="sp-data-table sp-pagination" role="navigation">'+ '<table class="sp-data-table sp-pagination" role="navigation">'+
'<tfoot><tr>' + '<tfoot><tr>' +
'<td class="prev disabled"><a href="#">&laquo; '+oLang.sPrevious+'</a></td>'+ '<td class="prev disabled"><a>&laquo; '+oLang.sPrevious+'</a></td>'+
'<td class="next disabled"><a href="#">'+oLang.sNext+' &raquo; </a></td>'+ '<td class="next disabled"><a>'+oLang.sNext+' &raquo; </a></td>'+
'</tr></tfoot>' + '</tr></tfoot>' +
'</table>' '</table>'
); );
var els = $('a', nPaging); var els = $('td', nPaging);
$(els[0]).bind( 'click.DT', { action: "previous" }, fnClickHandler ); $(els[0]).bind( 'click.DT', { action: "previous" }, fnClickHandler );
$(els[1]).bind( 'click.DT', { action: "next" }, fnClickHandler ); $(els[1]).bind( 'click.DT', { action: "next" }, fnClickHandler );
}, },
@@ -91,7 +91,7 @@ function viewport() {
// Add the new cells and their event handlers // Add the new cells and their event handlers
for ( j=iStart ; j<=iEnd ; j++ ) { for ( j=iStart ; j<=iEnd ; j++ ) {
sClass = (j==oPaging.iPage+1) ? 'class="active"' : ''; sClass = (j==oPaging.iPage+1) ? 'class="active"' : '';
$('<td '+sClass+'><a href="#">'+j+'</a></td>') $('<td '+sClass+'><a>'+j+'</a></td>')
.insertBefore( $('td:last', an[i])[0] ) .insertBefore( $('td:last', an[i])[0] )
.bind('click', function (e) { .bind('click', function (e) {
e.preventDefault(); e.preventDefault();

View File

@@ -68,7 +68,7 @@ class SP_Frontend_Scripts {
$colors = get_option( 'sportspress_frontend_css_colors' ); $colors = get_option( 'sportspress_frontend_css_colors' );
echo '<style type="text/css">.sp-data-table a,.sp-calendar a{text-decoration:none;}.sp-data-table tbody a,.sp-data-table tbody a:hover,.sp-calendar tbody a,.sp-calendar tbody a:hover{background:none;}'; echo '<style type="text/css">.sp-data-table tbody a,.sp-data-table tbody a:hover,.sp-calendar tbody a,.sp-calendar tbody a:hover{background:none;}';
if ( $enabled == 'yes' && sizeof( $colors ) > 0 ) { if ( $enabled == 'yes' && sizeof( $colors ) > 0 ) {
echo ' /* SportsPress Frontend CSS */ '; echo ' /* SportsPress Frontend CSS */ ';

View File

@@ -55,7 +55,7 @@ $output .= '</tr>' . '</thead>' . '<tbody>';
$i = 0; $i = 0;
if ( is_int( $number ) && $number > 0 ) if ( intval( $number ) > 0 )
$limit = $number; $limit = $number;
foreach( $data as $player_id => $row ): foreach( $data as $player_id => $row ):