style refinements

This commit is contained in:
Matthias Kretschmann 2013-11-09 15:07:36 +01:00
parent 4b4dd1bc2b
commit d2c5467701
3 changed files with 15 additions and 11 deletions

View File

@ -17,21 +17,25 @@
#wp-admin-bar-updates .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;
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 */
font: 13px/21px 'Helvetica Neue', Helvetica, Verdana, Geneva, sans-serif;
font: 12px/16px 'Helvetica Neue', Helvetica, Verdana, Geneva, sans-serif;
font-weight: 200;
text-align: center;
width: 21px;
height: 21px;
width: 20px;
height: 20px;
display: inline-block;
border-radius: 21px;
background-clip: padding-box;
border-radius: 20px;
padding: 2px;
margin-top: -2px;
vertical-align: baseline;

View File

@ -85,7 +85,7 @@ add_action( 'plugins_loaded', array( 'Badged', 'get_instance' ) );
//
// Admin Stuff
//
if ( is_admin() && ( ! defined( 'DOING_AJAX' ) || ! DOING_AJAX ) ) {
if ( is_admin() ) {
require_once( BADGED_PATH . '/admin/class-badged-admin.php' );
add_action( 'plugins_loaded', array( 'Badged_Admin', 'get_instance' ) );

View File

@ -51,7 +51,7 @@ class Badged {
private function __construct() {
// 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
add_action( 'wpmu_new_blog', array( $this, 'activate_new_site' ) );
@ -228,7 +228,7 @@ class Badged {
$locale = apply_filters( 'plugin_locale', get_locale(), $domain );
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/' );
}