From 31e258ae647c59ff24e715adbbfb9388443ba2cb Mon Sep 17 00:00:00 2001 From: ryan Date: Wed, 19 Mar 2008 16:08:03 +0000 Subject: [PATCH] RTL CSS from Mani. fixes #6296 git-svn-id: http://svn.automattic.com/wordpress/trunk@7398 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/css/colors-fresh-rtl.css | 3 + wp-admin/css/dashboard-rtl.css | 24 ++ wp-admin/css/ie-rtl.css | 27 ++ wp-admin/css/install-rtl.css | 34 +-- wp-admin/css/login-rtl.css | 32 +++ wp-admin/css/media-rtl.css | 21 ++ wp-admin/css/widgets-rtl.css | 54 +--- wp-admin/images/comment-stalk-rtl.gif | Bin 0 -> 1064 bytes wp-admin/images/toggle-arrow-rtl.gif | Bin 0 -> 72 bytes wp-admin/rtl.css | 370 +++++++++++++++++--------- 10 files changed, 375 insertions(+), 190 deletions(-) create mode 100644 wp-admin/css/colors-fresh-rtl.css create mode 100644 wp-admin/css/dashboard-rtl.css create mode 100644 wp-admin/css/ie-rtl.css create mode 100644 wp-admin/css/login-rtl.css create mode 100644 wp-admin/css/media-rtl.css create mode 100644 wp-admin/images/comment-stalk-rtl.gif create mode 100644 wp-admin/images/toggle-arrow-rtl.gif diff --git a/wp-admin/css/colors-fresh-rtl.css b/wp-admin/css/colors-fresh-rtl.css new file mode 100644 index 000000000..5d0d05cf3 --- /dev/null +++ b/wp-admin/css/colors-fresh-rtl.css @@ -0,0 +1,3 @@ +#poststuff .closed .togbox, #poststuff .togbox { +background-image: url(../images/toggle-arrow-rtl.gif) !important; +} \ No newline at end of file diff --git a/wp-admin/css/dashboard-rtl.css b/wp-admin/css/dashboard-rtl.css new file mode 100644 index 000000000..11bc27357 --- /dev/null +++ b/wp-admin/css/dashboard-rtl.css @@ -0,0 +1,24 @@ +#rightnow .reallynow span { + text-align: right; + float: right; +} + +#rightnow .reallynow a { + text-align: left; + float: left; + margin: 1px 0 0 6px; +} +h3.dashboard-widget-title span { + text-align: right; + float: right; +} +h3.dashboard-widget-title small { + text-align: left; + float: left; +} +div.dashboard-widget-content ul, +div.dashboard-widget-content ol, +div.dashboard-widget-content dl { + padding-left:0; + padding-right:15px; +} \ No newline at end of file diff --git a/wp-admin/css/ie-rtl.css b/wp-admin/css/ie-rtl.css new file mode 100644 index 000000000..0404f3c5d --- /dev/null +++ b/wp-admin/css/ie-rtl.css @@ -0,0 +1,27 @@ +/* dashboard */ +div#dashboard-widgets { + margin-left:0; +} +div.dashboard-widget-holder { + width:49%; +} +/* footer */ +#footer { + padding-left:50px; +} +#footer p { + background:none; + height:auto; + padding: 5px 5px 0; +} +/* write post */ +#poststuff .togbox { + margin-right:-16px; +} +#poststuff h3 { + padding-right:20px; +} +/* template editor */ +#template textarea { + float:left; +} \ No newline at end of file diff --git a/wp-admin/css/install-rtl.css b/wp-admin/css/install-rtl.css index 69127362c..806dbc54b 100644 --- a/wp-admin/css/install-rtl.css +++ b/wp-admin/css/install-rtl.css @@ -1,15 +1,19 @@ -body { font: 13px Tahoma, Georgia, "Times New Roman", Times, serif; } - -ul, ol { padding: 5px 20px 5px 5px; } - -h1, h2, h3 { font-family: "Times New Roman", Times, serif; font-weight: 700 } - -.step, th { text-align: left } - -input { font-family: "Times New Roman", Times, serif; padding: 1px } - -#logo { background: url(../wp-content/plugins/WP-Jalali/wp-fa-logo.png) center right no-repeat; text-align: left; } - -#admin_email {direction: ltr; text-align: left; } - -#footer { font-style: normal; } \ No newline at end of file +body { + font-size: 11px;; +} +ul, ol { + padding: 5px 22px 5px 5px; +} +.form-table th { + text-align: right; +} +input { + padding: 1px +} +#logo { + text-align: left; +} +#admin_email { + direction: ltr; + text-align: left; +} \ No newline at end of file diff --git a/wp-admin/css/login-rtl.css b/wp-admin/css/login-rtl.css new file mode 100644 index 000000000..fc272634a --- /dev/null +++ b/wp-admin/css/login-rtl.css @@ -0,0 +1,32 @@ +body { + font-family: "Lucida Grande", "Lucida Sans Unicode", Tahoma, Verdana, sans-serif; + direction: rtl; +} +form { + margin-left:0; + margin-right:8px; +} +form .forgetmenot { + float:right; +} +form .submit { + float:left; +} +#login_error, .message { + margin:0 8px 16px 0; +} +#nav { + margin: 0 8px 0 0; +} +#user_pass, #user_login, #user_email { + margin-right:0; + margin-left: 6px; + direction:ltr; +} +h1 a { + text-decoration:none; +} +#backtoblog a { + left: auto; + right: 15px; +} \ No newline at end of file diff --git a/wp-admin/css/media-rtl.css b/wp-admin/css/media-rtl.css new file mode 100644 index 000000000..f0c00dfe7 --- /dev/null +++ b/wp-admin/css/media-rtl.css @@ -0,0 +1,21 @@ +ul#sidemenu { + left: auto; + right: 0; +} +.align .field label { + display: block; + float: right; + padding: 0 25px 0 0; + margin: 5px 3px 5px 5px; +} +.align .field input { + display: block; + float: right; + margin: 5px 15px 5px 0; +} +.image-align-none-label, +.image-align-left-label, +.image-align-center-label, +.image-align-right-label { + background-position: center right; +} \ No newline at end of file diff --git a/wp-admin/css/widgets-rtl.css b/wp-admin/css/widgets-rtl.css index 9aa277ede..9293d355f 100644 --- a/wp-admin/css/widgets-rtl.css +++ b/wp-admin/css/widgets-rtl.css @@ -1,51 +1,7 @@ -div.widget-liquid-left-holder { - float: right; - clear: right; - margin-left: -310px; - margin-right: 0; +h4.widget-title { + text-align:left } - -div.widget-liquid-left { - margin-right: 0; - margin-left: 310px; -} - -div.widget-liquid-right { - float: left; - clear: left; -} - p#widget-search { - left: 0; - right: auto; -} - -ul#widget-list li.widget-list-item h4.widget-title { - float: right; -} - -ul#widget-list li.widget-list-item div.widget-description { - margin: 0 200px 0 0; - padding: 0 4em 0 0; -} - -h4.widget-title a { - left: 1em; - right: auto; -} - -li.widget-list-control-item h4.widget-title a, -#dragHelper li.widget-list-control-item h4.widget-title a, -#draghelper li.widget-list-control-item h4.widget-title a:visited { - right: auto; - left: 2em; -} - -li.widget-list-control-item div.widget-control { - padding: 0 0 0 10px; -} - -ul.widget-control-list div.widget-control-actions { - margin-left: -10px; - margin-right: 0; -} + left:0; + right:auto +} \ No newline at end of file diff --git a/wp-admin/images/comment-stalk-rtl.gif b/wp-admin/images/comment-stalk-rtl.gif new file mode 100644 index 0000000000000000000000000000000000000000..6b0cb0b9a984af2e5426c6b84da2d4f0110de9cf GIT binary patch literal 1064 zcmV+@1lRjVNk%w1VL$;;0HOc@C4;TIySpYwVbx9{|Ns900000000000A^8LW000C4 zEC2ui06+my000C37`oj4Fv>|4xH#+0yZ>N#31n%WXsWJk>ykq(&vb3yc&_g;QT@Q6 zkUy0pYBy12+Wy1Tv2%fZkZ%f-|u%gNX@%goKJ+tJ|L)#KaQ z=G)xen&{xr=;PGr=Gf@z>WJ*^u=Vi7_4CN;*}LaOpuSfE`^^#v@Rq=V1UVTz$mpR$ zQ4brMdI&N9A`p%g7je7@iKE6!96Ne!1v2EFlqCD4JSixp%9V6dy0l|6<{q0g0olBX z)0fSipnCc=Gc+iwp+&z8MXF>dlci9sI>lm@Xw(2*sUqo$^-0&QR=RpEs#dHKwPl;A zMN38P+Ld{be^W+Vi zEu+|+xyEMB&OCp{a9Xq!(xqjbM$K#X>I<`7lb9X5$Lz-tW=sAoT(|Jv!f9_xzB;+< zc6}VJ_TP3LA4-z6J;e!wcCER>fhHP#4 zA&3`kIK@dSa+s5e6tzfFi!8Q?SBo*qs8EY50>q<>M&YQ>k2~_%(2qb8@#Bz0!h@ub zND_qPfWS=YsejuDb9_ zn0J`5JsMg#ZWKNW=^`Tvx;$VH~i=a$$Ti z#*k?&g2wtPrZEpB50vs=B>P2jU@1?K@~kuak@6rjOE9ylI~y}|V>t)6v$s88wlfYp zv-?2OW-@K`(Kax>i`0}kJsQ(dOC4m=ph;*C0*n0`+Om-i ihup)_T>{;4%l#hRxY;cU-j~qrgWyFF{x{wU002Atd?5e; literal 0 HcmV?d00001 diff --git a/wp-admin/images/toggle-arrow-rtl.gif b/wp-admin/images/toggle-arrow-rtl.gif new file mode 100644 index 0000000000000000000000000000000000000000..c96b94472c8c74f31d44c5d22533435eedaaf6bb GIT binary patch literal 72 zcmZ?wbhEHb6k*_Cn8?8J|Nnp0=CzwPZDL?xQ2fcl$iTqJpaWzxfaDpNBzqE9u5RF& aT%B`E`mn3nYfa00+dGt9<~lMmSOWm_h!v&) literal 0 HcmV?d00001 diff --git a/wp-admin/rtl.css b/wp-admin/rtl.css index ddc2285ae..0e276a139 100644 --- a/wp-admin/rtl.css +++ b/wp-admin/rtl.css @@ -1,127 +1,245 @@ -html, -#post_name, -input[name=link_url], -input[name=link_image], -input[name=opml_url], -input[name=file], -input#rss_uri, -#template #newcontent, -#devnews, -#planetnews, -#content, -body.login #login a, -#newcomment_author_url, -#email { - direction: ltr; - } -#adminmenu, -#submenu, -#minisub, -.wrap, -.updated, -.confirm, -#devnews h3, -#planetnews h3, -#wphead, -#user_info, -body.login, -#login_error { - direction: rtl; - } -p.submit, -html *, -select, -input, -table * { - font-family: tahoma, Tahoma, "Times New Roman", Times, serif; - } -#wphead { - padding: .8em 2em .8em 19em; - } -#user_info { - right: auto; - left: 1em; - } -#adminmenu { - padding: .2em 2em .3em .2em; - height: 28px; - } -* html #adminmenu { - padding-bottom: 0; - } -#adminmenu a { - margin: 0 0 0 10px; - display: block; - float: right; - font: 700 16px/130% "Times New Roman", Times, serif; - } -#adminmenu a.current { - border-right: 0; - border-left: 2px solid #4f96c8; - } -#submenu, #minisub { - padding: 1px 3em 0 2em; - } -#submenu { - height: 28px; - } -#submenu a { - margin: 0 0 0 10px; - display: block; - float: right; - line-height: 155%; - } -#submenu .current { - border-right: 0; - border-left: 2px solid #045290; - } +html,#edit-slug-box,#trackback,#category_nicename,#slug,#dbuser,#dbpass,#dbname,#dbhost,#dbprefix,#dccharset,input[name=gmpath],input[name=archivespath],input[name=lastentry],input[name=email],input[name=url],input[name=aim],input[name=yim],input[name=jabber],#newcontent,#email,#newcomment_author_url,#pass1,#pass2,#siteurl,#home,#admin_email,#date_format,#time_format,#mailserver_url,#mailserver_login,#mailserver_pass,#ping_sites,#blog_charset,#moderation_keys,#blacklist_keys,#permalink_structure,#category_base,#tag_base,#upload_path,#upload_url_path,#insertonly[src],#insertonly[href] +{ + direction:ltr; + text-align:left +} -#newcat { - width: 100px; - } -.updated, .confirm { - background-position: 98.5%; - padding: 0 3em 0 1em; - } -.page-numbers { - margin-right: auto; - margin-left: 3px; - } -.wrap ul { - margin-right: 45%; - margin-left: 0; - } -* html .wrap ul { - margin-right: 50%; - } -.wrap h2 { - font-family: "Times New Roman", Times, serif; - } -#zeitgeist { - margin-right: 1em; - } -#zeitgeist ul { - margin: 0 .6em .3em 0; - padding: 0 .6em 0 0; - } -#categorydiv ul { - margin-left: auto; - margin-right: 10px; - } -a.view-link { - left: 6%; - right: auto; - margin-right: auto; - } -#postdiv #quicktags { - padding-right: 0; - padding-left: 6px; - margin-right: 0; - } -.options ul { - margin-right: 0; - } -*form#template > div > textarea#newcontent { - margin-right: -300px; - width: 107%; - } \ No newline at end of file +#wpwrap,#footer,#TB_title,.media-upload-form,#media-upload-header +{ + direction:rtl!important; + text-align:right!important +} + +#user_info +{ + left:15px; + right:auto +} + +#wphead h1 +{ + margin:0 0 0 15%; + padding:11px 15px 16px 170px +} + +#wphead #viewsite +{ + margin-left:0; + margin-right:10px +} + +#sidemenu +{ + float:left; + margin:-30px 315px 0 15px; + padding-left:0; + padding-right:10px +} + +#dashmenu +{ + font-size:11px; + left:auto; + padding-left:0; + padding-right:9px; + right:0 +} + +#dashmenu a +{ + margin-left:8px; + margin-right:auto +} + +#adminmenu +{ + height:32px; + padding:5px 8px 0 0 +} + +#adminmenu li a +{ + display:block; + float:right; + font:700 16px/100% "Times New Roman", Times, serif; + margin:0 0 0 10px; + padding:5px 7px 9px +} + +#adminmenu li a.current +{ + font-weight:700 +} + +#adminmenu li a #awaiting-mod +{ + background:url(images/comment-stalk-rtl.gif) -309px bottom !important; + font-family: Tahoma, Verdana, sans-serif; + margin-left:-45px; + margin-right:.2em; + margin-top:-5px +} + +#adminmenu li a:hover #awaiting-mod +{ + background-position: -229px bottom !important; +} + +#adminmenu li a #awaiting-mod span +{ + left:0; + right:auto +} + +#submenu li a +{ + display:block; + float:right; + margin:0 10px 10px 0; + padding:2px 4px +} + +p#post-search +{ + left:0; + right:auto +} + +.tablenav div +{ + float:right!important +} + +ul.view-switch +{ + float:left; + margin:-28px 0 -2px 5px +} + +#currenttheme img +{ + float:right; + margin-left:1em; + margin-right:0 +} + +form#themeselector +{ + float:left +} + +#poststuff #edButtonPreview,#poststuff #edButtonHTML +{ + float:left; + margin-left:8px; + margin-right:0 +} + +#poststuff #media-buttons +{ + float:left; + margin-left:20px; + margin-right:0 +} + +#poststuff #media-buttons a +{ + margin-left:8px; + margin-right:0 +} + +#poststuff .togbox +{ + margin-left:0; + margin-right:-19px +} + +#categorydiv ul#category-tabs,#linkcategorydiv ul#category-tabs +{ + float:right; + margin:0 0 0 -120px; + text-align:left +} + +ul#category-tabs li.ui-tabs-selected,#poststuff .togbox +{ + -khtml-border-bottom-left-radius:0; + -khtml-border-bottom-right-radius:3px; + -khtml-border-top-left-radius:0; + -khtml-border-top-right-radius:3px; + -moz-border-radius-bottomleft:0; + -moz-border-radius-bottomright:3px; + -moz-border-radius-topleft:0; + -moz-border-radius-topright:3px; + -webkit-border-bottom-left-radius:0; + -webkit-border-bottom-right-radius:3px; + -webkit-border-top-left-radius:0; + -webkit-border-top-right-radius:3px; + border-bottom-left-radius:0; + border-bottom-right-radius:3px; + border-top-left-radius:0; + border-top-right-radius:3px +} + +div.ui-tabs-panel +{ + margin:0 120px 0 0 +} + +#tagchecklist span +{ + float:right; + margin-left:15px; + margin-right:0 +} + +.tablenav .tablenav-pages +{ + float:left!important; + width:200px +} + +.tablenav-pages .page-numbers +{ + display:block; + float:right +} + +.side-info ul +{ + padding-left:0; + padding-right:18px +} + +#footer +{ + padding:10px 0 0 +} + +#footer p +{ + background:url(images/logo-ghost.png) no-repeat right center; + height:35px; + margin-right:20px; + padding:12px 40px 0 0 +} + +#submenu,#wpbody +{ + clear:both +} + +#submenu li,ul.subsubsub li a +{ + padding:0 +} + +table.widefat th,.form-table th +{ + text-align:right +} + +.available-theme,#tagchecklist span a +{ + float:right +} \ No newline at end of file