From 436a2d7255923a9f22cde07dbc824d49ae7e573b Mon Sep 17 00:00:00 2001 From: Marc Alexander Date: Sat, 20 Sep 2014 00:26:22 +0200 Subject: [PATCH] [ticket/368] Correctly display clock in rtl languages B3P-368 --- styles/prosilver/theme/portal.css | 5 +++++ .../subsilver2/template/portal/modules/clock_side.html | 2 +- styles/subsilver2/theme/portal.css | 10 ++++++++-- 3 files changed, 14 insertions(+), 3 deletions(-) diff --git a/styles/prosilver/theme/portal.css b/styles/prosilver/theme/portal.css index a14ef214..433480f7 100644 --- a/styles/prosilver/theme/portal.css +++ b/styles/prosilver/theme/portal.css @@ -383,6 +383,11 @@ a.portal-forumtitle { height: 50px; } +.rtl .portal-clock-wrapper { + /* Arabic clocks are ltr */ + direction: ltr; +} + .portal-clock { position: relative; width: 100%; diff --git a/styles/subsilver2/template/portal/modules/clock_side.html b/styles/subsilver2/template/portal/modules/clock_side.html index 78c01598..3f6d3834 100644 --- a/styles/subsilver2/template/portal/modules/clock_side.html +++ b/styles/subsilver2/template/portal/modules/clock_side.html @@ -2,7 +2,7 @@
-
+
diff --git a/styles/subsilver2/theme/portal.css b/styles/subsilver2/theme/portal.css index 37bc45a1..eecc85ad 100644 --- a/styles/subsilver2/theme/portal.css +++ b/styles/subsilver2/theme/portal.css @@ -2,12 +2,18 @@ -------------------------------------- */ #portal-clock { position: relative; - width: 100%; + width: 128px; + margin: -20px auto; +} + +.rtl #portal-clock { + /* Arabic clocks are ltr */ + direction: ltr; } #portal-clock-front, #portal-clock-back { position: absolute; - top: 0px; + top: 0; } #portal-clock-front-upper div {