From 6234436cb8b0439e042a7963e8d45f5313bc437f Mon Sep 17 00:00:00 2001 From: Katie Filbert Date: Fri, 1 Jul 2011 03:32:39 +0000 Subject: [PATCH 1/1] CSS changes to improve RTL layout --- public/stylesheets/common.css | 40 +++++++++++++++++++++++++++++++++-- 1 file changed, 38 insertions(+), 2 deletions(-) diff --git a/public/stylesheets/common.css b/public/stylesheets/common.css index 89fa39b31..b9ee6a833 100644 --- a/public/stylesheets/common.css +++ b/public/stylesheets/common.css @@ -2,6 +2,14 @@ /* Default rules for the body of every page */ +html body { + text-align: left; +} + +html[dir='rtl'] body { + text-align: right; +} + body { font-family: Arial,sans-serif; color: #000; @@ -136,13 +144,17 @@ hr { left: 0px; background: #ddd; line-height: 1.2em; - text-align: Left; font-size: 14px; font-weight: bold; border-radius: 5px; -moz-border-radius: 5px; } +html[dir='rtl'] .left_menu { + right: 0; + text-align: right; +} + .left_menu td { font-size: 12px; padding-right: 4px; @@ -161,6 +173,10 @@ hr { list-style-type: none; } +html[dir='rtl'] .left_menu ul { + padding-right: 0px; +} + .left_menu li { margin: 0px; padding: 0px; @@ -199,7 +215,7 @@ hr { border: 1px solid #ccc; left: 0px; line-height: 1.2em; - text-align: left; +/* text-align: left; */ font-size: 12px; background: #eee; border-radius: 5px; @@ -283,6 +299,11 @@ hr { background: url('../images/tab_bottom.gif') repeat-x bottom; } +html[dir='rtl'] #tabnav { + padding-left: 0; + padding-right: 215px; +} + #tabnav li { margin: 0px; @@ -291,6 +312,10 @@ hr { list-style-type: none; } +html[dir='rtl'] #tabnav li { + float: right; +} + #tabnav a, #tabnav a:link, #tabnav a:visited { float: left; @@ -341,6 +366,11 @@ hr { background: url('../images/tab_bottom.gif') repeat-x bottom; } +html[dir='rtl'] #greeting { + float: left; + padding-left: 10px; +} + .greeting-bar-unread { font-weight: bold; } @@ -557,6 +587,12 @@ hr { text-align: left; } +html[dir='rtl'] #content { + margin-right: 190px; + left: 10px; + text-align: right; +} + #slim_container { width: 100%; } -- 2.39.5