Use dashicons in data table sorting
This commit is contained in:
@@ -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
|
||||||
|
|||||||
@@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user