From c9cae7a1b34b7fdbb0a6a171ffe5e7622d53140d Mon Sep 17 00:00:00 2001 From: Andrew Nacin Date: Thu, 8 Nov 2012 22:01:06 +0000 Subject: [PATCH] Add some ru_RU-specific CSS to the customizer to prevent the spinner from being bumped to the next line. props SergeyBiryukov, see #21890. git-svn-id: http://core.svn.wordpress.org/trunk@22474 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/css/wp-admin.css | 3 +++ wp-admin/customize.php | 4 ++++ 2 files changed, 7 insertions(+) diff --git a/wp-admin/css/wp-admin.css b/wp-admin/css/wp-admin.css index fae17648c0..86b22f1d0e 100644 --- a/wp-admin/css/wp-admin.css +++ b/wp-admin/css/wp-admin.css @@ -8523,6 +8523,9 @@ a.widget-control-edit { .locale-ru-ru.press-this #side-sortables { width: 245px; /* default 200px + 45px */ } +.locale-ru-ru #customize-header-actions .button { + padding: 0 8px 1px; /* default 0 10px 1px; */ +} /* lt_LT: QuickEdit */ .locale-lt-lt .inline-edit-row fieldset label span.title { diff --git a/wp-admin/customize.php b/wp-admin/customize.php index 87b9a324d4..77037b1cc0 100644 --- a/wp-admin/customize.php +++ b/wp-admin/customize.php @@ -57,6 +57,10 @@ $is_ios = wp_is_mobile() && preg_match( '/iPad|iPod|iPhone/', $_SERVER['HTTP_USE if ( $is_ios ) $body_class .= ' ios'; +if ( is_rtl() ) + $body_class .= ' rtl'; +$body_class .= ' locale-' . sanitize_html_class( strtolower( str_replace( '_', '-', get_locale() ) ) ); + $admin_title = sprintf( __( '%1$s — WordPress' ), strip_tags( sprintf( __( 'Customize %s' ), $wp_customize->theme()->display('Name') ) ) ); ?><?php echo $admin_title; ?>