Adjust box score section styling

This commit is contained in:
Brian Miyaji
2017-01-12 17:19:20 +11:00
parent 392edd143f
commit bec66c502d
3 changed files with 7 additions and 2 deletions

View File

@@ -584,7 +584,7 @@
/* Post Content */
.sp-post-content {
.single-sp_team .has-post-thumbnail .sp-post-content {
clear: none;
}
@@ -608,4 +608,8 @@
.widget .sp-template-event-calendar tbody td {
padding: 10px 5px !important;
}
.sp-template-event-performance-icons.sp-template-event-performance-section:nth-child(2n) {
padding-top: 61px !important;
}
}

View File

@@ -59,6 +59,7 @@ function sp_body_class( $classes ) {
$classes[] = 'sp-has-results';
}
}
$classes[] = 'sp-performance-sections-' . get_option( 'sportspress_event_performance_sections', -1 );
} elseif ( 'sp_team' == $post_type && 'yes' == get_option( 'sportspress_team_show_logo', 'yes' ) ) {
$classes[] = 'sp-show-image';
} elseif ( 'sp_player' == $post_type && 'yes' == get_option( 'sportspress_player_show_photo', 'yes' ) ) {

View File

@@ -227,7 +227,7 @@ if ( is_array( $teams ) ):
'link_posts' => $link_posts,
'performance_ids' => isset( $performance_ids ) ? $performance_ids : null,
'primary' => 'primary' == $total ? $primary : null,
'class' => 'sp-template-event-performance-team-' . $index . ' sp-template-event-performance-section-' . $section_id . ' sp-template-event-performance-team-' . $index . '-section-' . $section_id,
'class' => 'sp-template-event-performance-team-' . $index . ' sp-template-event-performance-section sp-template-event-performance-section-' . $section_id . ' sp-template-event-performance-team-' . $index . '-section-' . $section_id,
) );
}