Adjust pagination styling
This commit is contained in:
@@ -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 */
|
||||
|
||||
@@ -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="#">« '+oLang.sPrevious+'</a></td>'+
|
||||
'<td class="next disabled"><a href="#">'+oLang.sNext+' » </a></td>'+
|
||||
'<td class="prev disabled"><a>« '+oLang.sPrevious+'</a></td>'+
|
||||
'<td class="next disabled"><a>'+oLang.sNext+' » </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();
|
||||
|
||||
@@ -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 */ ';
|
||||
|
||||
@@ -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 ):
|
||||
|
||||
Reference in New Issue
Block a user