Use dashicons in data table sorting

This commit is contained in:
Brian Miyaji
2014-01-09 12:37:57 +11:00
parent bfcf6e9b38
commit 383a34cac3
2 changed files with 6 additions and 5 deletions

View File

@@ -1,7 +1,7 @@
<?php <?php
function sportspress_enqueue_scripts() { function sportspress_enqueue_scripts() {
// Styles // Styles
wp_register_style( 'sportspress', SPORTSPRESS_PLUGIN_URL . 'assets/css/sportspress.css', array(), time() ); wp_register_style( 'sportspress', SPORTSPRESS_PLUGIN_URL . 'assets/css/sportspress.css', array( 'dashicons' ), time() );
wp_enqueue_style( 'sportspress'); wp_enqueue_style( 'sportspress');
// Scripts // Scripts

View File

@@ -9,16 +9,17 @@
.sp-data-table .sorting:after, .sp-data-table .sorting:after,
.sp-data-table .sorting_asc:after, .sp-data-table .sorting_asc:after,
.sp-data-table .sorting_desc:after { .sp-data-table .sorting_desc:after {
font-family: 'Courier New', Courier, monospace; font-family: dashicons;
} }
.sp-data-table .sorting:after { .sp-data-table .sorting:after {
content: ' \A0'; content: "\f156";
color: transparent;
} }
.sp-data-table .sorting_asc:after { .sp-data-table .sorting_asc:after {
content: ' \25B2'; content: "\f142";
} }
.sp-data-table .sorting_desc:after { .sp-data-table .sorting_desc:after {
content: ' \25BC'; content: "\f140";
} }
.sp-data-table .column-name .logo { .sp-data-table .column-name .logo {
vertical-align: middle; vertical-align: middle;