style refinements
This commit is contained in:
parent
4b4dd1bc2b
commit
d2c5467701
|
@ -17,21 +17,25 @@
|
||||||
#wp-admin-bar-updates .ab-label,
|
#wp-admin-bar-updates .ab-label,
|
||||||
#wp-admin-bar-comments .ab-label {
|
#wp-admin-bar-comments .ab-label {
|
||||||
|
|
||||||
/* need to be rude for these */
|
-webkit-box-sizing: border-box;
|
||||||
|
-moz-box-sizing: border-box;
|
||||||
|
box-sizing: border-box;
|
||||||
|
|
||||||
|
/* WP defaults overwrites, need to be rude for these */
|
||||||
background: #ff0000 !important;
|
background: #ff0000 !important;
|
||||||
box-shadow: 0 1px 0 #888 !important;
|
box-shadow: 0 1px 0 rgba(0,0,0,.2) !important;
|
||||||
|
text-shadow: none !important;
|
||||||
|
|
||||||
color: #fff; /* just in case, is white per WP default */
|
color: #fff; /* just in case, is white per WP default */
|
||||||
font: 13px/21px 'Helvetica Neue', Helvetica, Verdana, Geneva, sans-serif;
|
font: 12px/16px 'Helvetica Neue', Helvetica, Verdana, Geneva, sans-serif;
|
||||||
font-weight: 200;
|
font-weight: 200;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
|
|
||||||
width: 21px;
|
width: 20px;
|
||||||
height: 21px;
|
height: 20px;
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
border-radius: 21px;
|
border-radius: 20px;
|
||||||
|
padding: 2px;
|
||||||
background-clip: padding-box;
|
|
||||||
|
|
||||||
margin-top: -2px;
|
margin-top: -2px;
|
||||||
vertical-align: baseline;
|
vertical-align: baseline;
|
||||||
|
|
|
@ -85,7 +85,7 @@ add_action( 'plugins_loaded', array( 'Badged', 'get_instance' ) );
|
||||||
//
|
//
|
||||||
// Admin Stuff
|
// Admin Stuff
|
||||||
//
|
//
|
||||||
if ( is_admin() && ( ! defined( 'DOING_AJAX' ) || ! DOING_AJAX ) ) {
|
if ( is_admin() ) {
|
||||||
|
|
||||||
require_once( BADGED_PATH . '/admin/class-badged-admin.php' );
|
require_once( BADGED_PATH . '/admin/class-badged-admin.php' );
|
||||||
add_action( 'plugins_loaded', array( 'Badged_Admin', 'get_instance' ) );
|
add_action( 'plugins_loaded', array( 'Badged_Admin', 'get_instance' ) );
|
||||||
|
|
|
@ -51,7 +51,7 @@ class Badged {
|
||||||
private function __construct() {
|
private function __construct() {
|
||||||
|
|
||||||
// Load plugin text domain
|
// Load plugin text domain
|
||||||
add_action( 'init', array( $this, 'load_badged_textdomain' ) );
|
add_action( 'init', array( $this, 'load_plugin_textdomain' ) );
|
||||||
|
|
||||||
// Activate plugin when new blog is added
|
// Activate plugin when new blog is added
|
||||||
add_action( 'wpmu_new_blog', array( $this, 'activate_new_site' ) );
|
add_action( 'wpmu_new_blog', array( $this, 'activate_new_site' ) );
|
||||||
|
@ -228,7 +228,7 @@ class Badged {
|
||||||
$locale = apply_filters( 'plugin_locale', get_locale(), $domain );
|
$locale = apply_filters( 'plugin_locale', get_locale(), $domain );
|
||||||
|
|
||||||
load_textdomain( $domain, trailingslashit( WP_LANG_DIR ) . $domain . '/' . $domain . '-' . $locale . '.mo' );
|
load_textdomain( $domain, trailingslashit( WP_LANG_DIR ) . $domain . '/' . $domain . '-' . $locale . '.mo' );
|
||||||
load_plugin_textdomain( $domain, FALSE, basename( plugin_dir_path( dirname( __FILE__ ) ) ) . '/languages/' );
|
load_plugin_textdomain( $domain, FALSE, basename( BADGED_PATH ) . '/languages/' );
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue