From 1afb3921997bec7132e0f48ce11c05212bc104dd Mon Sep 17 00:00:00 2001 From: Marc Alexander Date: Sun, 21 Sep 2014 19:39:20 +0200 Subject: [PATCH] [ticket/377] Align portal columns right-to-left in rtl languages With the old table layout, the left columns always displayed on the right in rtl languages and vice-versa for the left right column. This should be changed back in the tableless layout. B3P-377 --- styles/prosilver/template/portal/portal_body.html | 2 +- styles/prosilver/theme/portal.css | 13 +++++++++++++ 2 files changed, 14 insertions(+), 1 deletion(-) diff --git a/styles/prosilver/template/portal/portal_body.html b/styles/prosilver/template/portal/portal_body.html index c065ec9f..69494911 100644 --- a/styles/prosilver/template/portal/portal_body.html +++ b/styles/prosilver/template/portal/portal_body.html @@ -72,7 +72,7 @@ -
+
diff --git a/styles/prosilver/theme/portal.css b/styles/prosilver/theme/portal.css index 433480f7..11894ea9 100644 --- a/styles/prosilver/theme/portal.css +++ b/styles/prosilver/theme/portal.css @@ -281,12 +281,20 @@ a.portal-forumtitle { float: left; } +.rtl #portal-left, .rtl #portal-right { + float: right; +} + #portal-center-wrapper { width: 100%; float: left; display: block; } +.rtl #portal-center-wrapper { + float: right; +} + #portal-column-area { width: 100%; margin: 0 auto; @@ -296,6 +304,11 @@ a.portal-forumtitle { margin-left: -100%; } +.rtl #portal-left { + margin-right: -100%; + margin-left: 0; +} + /* * top spacing between portal body table and headerbar spacing is usually 10px */