From 909dea5998bf5073eb8087e72cd9fc467418d463 Mon Sep 17 00:00:00 2001 From: ryan Date: Fri, 8 Aug 2008 17:24:16 +0000 Subject: [PATCH] RTL fixes from RanYanivHartstein. see #7482 git-svn-id: http://svn.automattic.com/wordpress/branches/2.6@8591 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/css/ie-rtl.css | 50 +++++++++++++++++++++++ wp-admin/rtl.css | 89 +++++++++++++++++++++++++++++++++++++++-- 2 files changed, 136 insertions(+), 3 deletions(-) diff --git a/wp-admin/css/ie-rtl.css b/wp-admin/css/ie-rtl.css index 54cadd07bf..0abff377f1 100644 --- a/wp-admin/css/ie-rtl.css +++ b/wp-admin/css/ie-rtl.css @@ -47,6 +47,56 @@ p#widget-search, p#post-search { /* Editor */ +.mceToolbar { + direction: ltr; + text-align: left; +} + +/* IE6 */ + +/* Search box gets stuck to the right, hidden outside view */ +* html #post-search, * html #widget-search { + height: 1% !important; + right: 600px !important; +} + +/* Sidemenu tends to disapear, widget filter area tends to jump around when adding filters - Peek-A-Boo! */ +* html #sidemenu, * html #widgets-filter { + height: 1% !important; +} + +/* Media upload window gets stuck to the right, hidden outside view */ +* html #TB_window { + left: 100px !important; +} + +/* Bad floating in the sub-sub-sub menu makes links un-clickable */ +* html .subsubsub li { + display: block; float: right; margin: 0 2px; +} + +/* Fixing floats on sub-sub-sub menu skewes the view-switch menu on comments management page */ +* html .wrap .view-switch { + margin-top: 1px; +} + +/* Theme selector on theme edit page gets stuck to the left, hidden outside view */ +* html #themeselector { + position: static; +} + +/* Template edit area floats beneath template list, gets RTLed */ +* html #template { + float: right; + overflow: hidden; + width: 755px !important; +} +* html #template #newcontent { + direction: ltr; +} + +/* Editor */ + .mceToolbar { direction: ltr; text-align: left; diff --git a/wp-admin/rtl.css b/wp-admin/rtl.css index e6b425ebf3..1ed08d0135 100644 --- a/wp-admin/rtl.css +++ b/wp-admin/rtl.css @@ -12,6 +12,12 @@ body, td, .submit input, .button, .button-secondary, .button-highlighted, #your- font-family: monospace !important; } +/* Clears update nag, so it doesn't hide the submenu */ +#update-nag { + clear: both; + margin-bottom: 1em; +} + #wpwrap,#footer,#TB_title,.media-upload-form,#media-upload-header { direction:rtl!important; @@ -113,9 +119,10 @@ p#post-search right:auto } -.tablenav div +.tablenav div { - float:right!important + float:right !important; + direction: rtl; } .tablenav .delete @@ -321,4 +328,80 @@ table.widefat th,.form-table th div#message { clear: both; -} \ No newline at end of file +} + +/* WPH - TinyMCE */ + +#media-items th.label { + width: 120px; +} +#media-items th.label .alignleft { + width: 100px; +} + +#media-items th.label .alignright { + width: 16px; + height: 16px; +} + +/* LTRs some url- and code-only form fields */ +input#href, input#src, input#class_name { + direction: ltr; + text-align: left; +} + +#sidemenu a { + float: right; +} + +thead.media-item-info { + float: left; + margin-bottom: 18px; + width: 100%; +} + +thead.media-item-info td { + width: 100%; + text-align: left; +} + +thead.media-item-info td.A1B1 { + width: 150px; +} + +#gallery-form table.widefat th { + float: left; + width: 74%; + text-align: center; +} + +#gallery-form table.widefat th.order-head { + width: 18%; +} + +#media-upload tr.align td.field, #media-upload tr.image-size td.field { + text-align: right !important; +} + +#media-upload tr.align td.field { + float:right; + margin-right:-15px; +} + +tr.image-size label { + display:inline; + margin:0 0 0 1em !important; +} + +#library-form { + float: right; +} + +#filter .subsubsub { + direction: rtl; + text-align: right; +} + +#media-upload form#filter { + margin-right: -20px; +}