Split admin css assets for customise and widgets

This commit is contained in:
Brian Miyaji
2014-04-10 00:51:32 +10:00
parent fe994e1dfd
commit 88b7505f3b
6 changed files with 72 additions and 43 deletions

View File

@@ -242,32 +242,6 @@ table.widefat select.sp-outcome {
height: 320px; height: 320px;
} }
.sp-prefs .button {
margin: 0 3px 4px 0;
padding: 0 7px 1px 5px;
}
.sp-prefs .button input[type=checkbox] {
background: transparent;
border: none;
-webkit-box-shadow: none;
box-shadow: none;
}
.sp-prefs .button input[type=checkbox]:not(:checked):before {
float: left;
display: inline-block;
vertical-align: middle;
width: 16px;
font: 400 21px/1 dashicons;
speak: none;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
content: '\f335';
margin: -3px 0 0 -4px;
color: #a00;
}
/* Chosen */ /* Chosen */
.chosen-container-single .chosen-single { .chosen-container-single .chosen-single {
-webkit-border-radius: 3px; -webkit-border-radius: 3px;
@@ -328,7 +302,6 @@ table.widefat select.sp-outcome {
} }
/* TipTip */ /* TipTip */
.tips { .tips {
cursor: help; cursor: help;
} }

20
assets/css/customize.css Normal file
View File

@@ -0,0 +1,20 @@
#available-widgets [class*=sp_] .widget-title:before {
font-family: 'sportspress';
}
#available-widgets [class*=sp_countdown] .widget-title:before {
content: "\f469";
}
#available-widgets [class*=sp_event_calendar] .widget-title:before,
#available-widgets [class*=sp_event_list] .widget-title:before {
content: "\f145";
}
#available-widgets [class*=sp_league_table] .widget-title:before {
content: "\f334";
}
#available-widgets [class*=sp_player_list] .widget-title:before,
#available-widgets [class*=sp_player_gallery] .widget-title:before {
content: "\f307";
}
#available-widgets [class*=sp_countdown] .widget-title:before {
content: "\f469";
}

25
assets/css/widgets.css Normal file
View File

@@ -0,0 +1,25 @@
.sp-prefs .button {
margin: 0 3px 4px 0;
padding: 0 7px 1px 5px;
}
.sp-prefs .button input[type=checkbox] {
background: transparent;
border: none;
-webkit-box-shadow: none;
box-shadow: none;
}
.sp-prefs .button input[type=checkbox]:not(:checked):before {
float: left;
display: inline-block;
vertical-align: middle;
width: 16px;
font: 400 21px/1 dashicons;
speak: none;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
content: '\f335';
margin: -3px 0 0 -4px;
color: #a00;
}

View File

@@ -48,6 +48,16 @@ class SP_Admin_Assets {
wp_enqueue_style( 'sportspress-admin-dashboard-styles', SP()->plugin_url() . '/assets/css/dashboard.css', array(), SP_VERSION ); wp_enqueue_style( 'sportspress-admin-dashboard-styles', SP()->plugin_url() . '/assets/css/dashboard.css', array(), SP_VERSION );
} }
if ( in_array( $screen->id, array( 'widgets' ) ) ) {
wp_enqueue_style( 'sportspress-admin-widgets-styles', SP()->plugin_url() . '/assets/css/widgets.css', array(), SP_VERSION );
}
if ( in_array( $screen->id, array( 'customize' ) ) ) {
wp_enqueue_style( 'sportspress-admin-menu-styles', SP()->plugin_url() . '/assets/css/menu.css', array(), SP_VERSION );
wp_enqueue_style( 'sportspress-admin-customize-styles', SP()->plugin_url() . '/assets/css/customize.css', array(), SP_VERSION );
}
do_action( 'sportspress_admin_css' ); do_action( 'sportspress_admin_css' );
} }

View File

@@ -3,8 +3,8 @@ Contributors: ThemeBoy
Tags: sports, press, sports journalism, teams, team management, fixtures, results, standings, league tables, leagues, reporting, themeboy, wordpress sports, configurable Tags: sports, press, sports journalism, teams, team management, fixtures, results, standings, league tables, leagues, reporting, themeboy, wordpress sports, configurable
Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_xclick&business=support@themeboy.com&item_name=Donation+for+SportsPress Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_xclick&business=support@themeboy.com&item_name=Donation+for+SportsPress
Requires at least: 3.8 Requires at least: 3.8
Tested up to: 3.8.1 Tested up to: 3.8.2
Stable tag: 0.7.4 Stable tag: 0.7.5
License: GPLv3 License: GPLv3
License URI: http://www.gnu.org/licenses/gpl-3.0.html License URI: http://www.gnu.org/licenses/gpl-3.0.html
@@ -34,17 +34,18 @@ Add schedules, results, league tables, player profiles and statistics to your te
League table columns, player statistics, and match results can be customized to fit any sport. Presets are available for some of the most popular sports including soccer, rugby, American football, Australian Rules football, baseball, basketball, cricket, and hockey. League table columns, player statistics, and match results can be customized to fit any sport. Presets are available for some of the most popular sports including soccer, rugby, American football, Australian Rules football, baseball, basketball, cricket, and hockey.
= Available Languages = = Available Languages =
* English (en_US) * English English ( en_US )
* Arabic (ar) * Arabic العربية ( ar )
* Czech - Čeština (cs_CZ) * Czech Čeština ( cs_CZ )
* German - Deutsch (de_DE) * German Deutsch ( de_DE )
* Spanish - Español (es_ES) * Spanish Español ( es_ES )
* French - Français (fr_FR) * French Français ( fr_FR )
* Italian - Italiano (it_IT) * Italian Italiano ( it_IT )
* Japanese - 日本語 (ja) * Japanese 日本語 ( ja )
* Polish - Polski (pl_PL) * Polish Polski ( pl_PL )
* Slovak Slovenčina (sk_SK) * Portuguese (Brazil) Português do Brasil ( pt_BR )
* Swedish - Svenska (sv_SE) * Slovak Slovenčina ( sk_SK )
* Swedish Svenska ( sv_SE )
= Get involved = = Get involved =

View File

@@ -3,7 +3,7 @@
* Plugin Name: SportsPress * Plugin Name: SportsPress
* Plugin URI: http://wordpress.org/plugins/sportspress * Plugin URI: http://wordpress.org/plugins/sportspress
* Description: Manage your club and its players, staff, events, league tables, and player lists. * Description: Manage your club and its players, staff, events, league tables, and player lists.
* Version: 0.7.4 * Version: 0.7.5
* Author: ThemeBoy * Author: ThemeBoy
* Author URI: http://themeboy.com * Author URI: http://themeboy.com
* Requires at least: 3.8 * Requires at least: 3.8
@@ -26,14 +26,14 @@ if ( ! class_exists( 'SportsPress' ) ) :
* Main SportsPress Class * Main SportsPress Class
* *
* @class SportsPress * @class SportsPress
* @version 0.7.4 * @version 0.7.5
*/ */
final class SportsPress { final class SportsPress {
/** /**
* @var string * @var string
*/ */
public $version = '0.7.4'; public $version = '0.7.5';
/** /**
* @var SporsPress The single instance of the class * @var SporsPress The single instance of the class