From b71746be109754dd1fd9701c024c1c0647bb7b9c Mon Sep 17 00:00:00 2001 From: ryan Date: Sun, 13 Jul 2008 16:40:25 +0000 Subject: [PATCH] RTL friendly fonts from RanYanivHartstein. fixes #6616 git-svn-id: http://svn.automattic.com/wordpress/trunk@8327 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/css/dashboard-rtl.css | 12 +++++++++++- wp-admin/css/global-rtl.css | 8 +++++++- wp-admin/css/install-rtl.css | 9 ++++++++- wp-admin/css/login-rtl.css | 5 ++++- wp-admin/css/theme-editor-rtl.css | 3 +++ wp-admin/rtl.css | 12 ++++++++---- 6 files changed, 41 insertions(+), 8 deletions(-) diff --git a/wp-admin/css/dashboard-rtl.css b/wp-admin/css/dashboard-rtl.css index c0f415f1c7..3b66d176b6 100644 --- a/wp-admin/css/dashboard-rtl.css +++ b/wp-admin/css/dashboard-rtl.css @@ -22,6 +22,10 @@ h3.dashboard-widget-title span { float: right; } +div.dashboard-widget-submit input { + font-family: sans-serif !important; +} + #dashboard-widgets .widget_rss ul li a { float:right; font-weight:bold; @@ -63,7 +67,13 @@ div.dashboard-widget { #dashboard_secondary div.dashboard-widget-content ul li { float: right; } +#dashboard_secondary div.dashboard-widget-content ul li .post { + font-family: sans-serif !important; +} #dashboard_secondary div.dashboard-widget-content ul li a { border-right:0 none; border-left:1px solid #DADADA; -} \ No newline at end of file +} +#dashboard_secondary div.dashboard-widget-content ul li a cite { + font-family: sans-serif; +} diff --git a/wp-admin/css/global-rtl.css b/wp-admin/css/global-rtl.css index a34f7ad4c0..4967c54a4b 100644 --- a/wp-admin/css/global-rtl.css +++ b/wp-admin/css/global-rtl.css @@ -1,9 +1,15 @@ -/* styles for use by people extending the WordPress interface */ +//* styles for use by people extending the WordPress interface */ +body, td { font-family: sans-serif; } + +textarea, input, select { font-family: sans-serif; } + .alignleft { float: right; } .alignright { float: left; } .textleft { text-align: right; } .textright { text-align: left; } + +.wrap h2 { font-family: sans-serif; } .widefat td { padding: 7px 10px 9px 15px; diff --git a/wp-admin/css/install-rtl.css b/wp-admin/css/install-rtl.css index 806dbc54b1..3752856393 100644 --- a/wp-admin/css/install-rtl.css +++ b/wp-admin/css/install-rtl.css @@ -1,5 +1,6 @@ body { - font-size: 11px;; + font-size: 11px; + font-family: sans-serif !important; } ul, ol { padding: 5px 22px 5px 5px; @@ -16,4 +17,10 @@ input { #admin_email { direction: ltr; text-align: left; +} +.submit input, .button, .button-secondary { + font-family: sans-serif !important; +} +h1 { + font-family: sans-serif; } \ No newline at end of file diff --git a/wp-admin/css/login-rtl.css b/wp-admin/css/login-rtl.css index fc272634ae..aa3c2c2576 100644 --- a/wp-admin/css/login-rtl.css +++ b/wp-admin/css/login-rtl.css @@ -1,7 +1,10 @@ body { - font-family: "Lucida Grande", "Lucida Sans Unicode", Tahoma, Verdana, sans-serif; + font-family: sans-serif; direction: rtl; } +#login form .submit input { + font-family: sans-serif !important; +} form { margin-left:0; margin-right:8px; diff --git a/wp-admin/css/theme-editor-rtl.css b/wp-admin/css/theme-editor-rtl.css index 407886b284..c3df152120 100644 --- a/wp-admin/css/theme-editor-rtl.css +++ b/wp-admin/css/theme-editor-rtl.css @@ -1,3 +1,6 @@ +#template textarea { + font-family: monospace !important; +} #templateside { float:left; } diff --git a/wp-admin/rtl.css b/wp-admin/rtl.css index afb63e8cf6..e6b425ebf3 100644 --- a/wp-admin/rtl.css +++ b/wp-admin/rtl.css @@ -4,8 +4,12 @@ html,#edit-slug-box,#trackback,#category_nicename,#slug,#dbuser,#dbpass,#dbname, text-align:left } -body, td { - font-family: Tahoma,Verdana,sans-serif; +body, td, .submit input, .button, .button-secondary, .button-highlighted, #your-profile legend, .quicktags, .search, #wpcontent select, #wphead #viewsite a, #wphead h1 { + font-family: sans-serif !important; +} + +.code, #quicktags #ed_code { + font-family: monospace !important; } #wpwrap,#footer,#TB_title,.media-upload-form,#media-upload-header @@ -65,7 +69,7 @@ body, td { { display:block; float:right; - font:700 16px/100% "Times New Roman", Times, serif; + font:700 16px/100% sans-serif; margin:0 0 0 10px; padding:5px 7px 9px } @@ -78,7 +82,7 @@ body, td { #adminmenu li a #awaiting-mod { background:url(images/comment-stalk-rtl.gif) -309px bottom !important; - font-family: Tahoma, Verdana, sans-serif; + font-family: sans-serif !important; margin-left:-45px; margin-right:.2em; margin-top:-5px