Merge pull request #375 from marc1706/ticket/368

[ticket/368] Correctly display clock in rtl languages
This commit is contained in:
Marc Alexander
2014-09-20 01:40:35 +02:00
3 changed files with 14 additions and 3 deletions

View File

@@ -383,6 +383,11 @@ a.portal-forumtitle {
height: 50px; height: 50px;
} }
.rtl .portal-clock-wrapper {
/* Arabic clocks are ltr */
direction: ltr;
}
.portal-clock { .portal-clock {
position: relative; position: relative;
width: 100%; width: 100%;

View File

@@ -2,7 +2,7 @@
<table class="tablebg" cellspacing="1" width="100%"> <table class="tablebg" cellspacing="1" width="100%">
<tr class="row1" style="height: 5em;"> <tr class="row1" style="height: 5em;">
<td style="text-align: center; height: 5em; margin: 0 auto;"> <td style="text-align: center; height: 5em; margin: 0 auto;">
<div id="portal-clock" style="margin-top: -20px;"> <div id="portal-clock">
<div id="portal-clock-back"> <div id="portal-clock-back">
<div id="portal-clock-back-upper"> <div id="portal-clock-back-upper">
<img class="portal-clock-spacer-up" /><div id="portal-clock-back-hours-up"></div> <img class="portal-clock-spacer-up" /><div id="portal-clock-back-hours-up"></div>

View File

@@ -2,12 +2,18 @@
-------------------------------------- */ -------------------------------------- */
#portal-clock { #portal-clock {
position: relative; position: relative;
width: 100%; width: 128px;
margin: -20px auto;
}
.rtl #portal-clock {
/* Arabic clocks are ltr */
direction: ltr;
} }
#portal-clock-front, #portal-clock-back { #portal-clock-front, #portal-clock-back {
position: absolute; position: absolute;
top: 0px; top: 0;
} }
#portal-clock-front-upper div { #portal-clock-front-upper div {