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

View File

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

View File

@@ -68,7 +68,7 @@ class SP_Frontend_Scripts {
$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 ) {
echo ' /* SportsPress Frontend CSS */ ';

View File

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