Use dashicons in data table sorting
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
<?php
|
||||
function sportspress_enqueue_scripts() {
|
||||
// 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');
|
||||
|
||||
// Scripts
|
||||
|
||||
@@ -9,16 +9,17 @@
|
||||
.sp-data-table .sorting:after,
|
||||
.sp-data-table .sorting_asc:after,
|
||||
.sp-data-table .sorting_desc:after {
|
||||
font-family: 'Courier New', Courier, monospace;
|
||||
font-family: dashicons;
|
||||
}
|
||||
.sp-data-table .sorting:after {
|
||||
content: ' \A0';
|
||||
content: "\f156";
|
||||
color: transparent;
|
||||
}
|
||||
.sp-data-table .sorting_asc:after {
|
||||
content: ' \25B2';
|
||||
content: "\f142";
|
||||
}
|
||||
.sp-data-table .sorting_desc:after {
|
||||
content: ' \25BC';
|
||||
content: "\f140";
|
||||
}
|
||||
.sp-data-table .column-name .logo {
|
||||
vertical-align: middle;
|
||||
|
||||
Reference in New Issue
Block a user