On 02/15/2011 09:45 PM, PyroPeter wrote:
On 02/12/2011 01:34 PM, Lukas Fleischer wrote:
0004. 76a874a Right-to-left written languages now supported

Basically looks ok, except that you revert some previous bug fixes.
Also, where's that "css/languages.css" that you link to in the new
header template?

I now updated this, too.
What bugfixes did I revert? I hope I did not revert them this time.
I merged the content of the former languages.css into arch.css.

Regards, PyroPeter

Forgot to attach the patch. m(

--
freenode/pyropeter                                         ETAOIN SHRDLU
>From 38e43b5e69ec2d8e15c0ef054ad09aa7f813940a Mon Sep 17 00:00:00 2001
From: PyroPeter <[email protected]>
Date: Tue, 15 Feb 2011 21:32:52 +0100
Subject: [PATCH 3/3] Support for langauges written right-to-left

Signed-off-by: PyroPeter <[email protected]>
---
 web/html/css/arch.css       |   51 +++++++++++++++++++++++++++++++++++++-----
 web/html/css/containers.css |    9 -------
 web/template/footer.php     |    2 +-
 3 files changed, 46 insertions(+), 16 deletions(-)

diff --git a/web/html/css/arch.css b/web/html/css/arch.css
index eec08bb..64b38c6 100644
--- a/web/html/css/arch.css
+++ b/web/html/css/arch.css
@@ -53,9 +53,9 @@ body {
   display: block;
   font-size: 10pt;
   text-align: right;
-  position: relative;
   margin-bottom: 40px;
   margin-right: 35px;
+  margin-left: 35px;
 }
 #lang_sub ul {
   list-style: none;
@@ -173,7 +173,6 @@ h3.title {
   border-bottom: 1px solid #46494d;
 }
 h4.title {
-  text-align: left;
   border-bottom: 1px solid #46494d;
 }
 h4.news {
@@ -251,7 +250,6 @@ table.results {
   background-color: #e1e3e6;
   border-bottom: 1px solid #46494d;
   border-top: 1px solid #46494d;
-  text-align: left;
   padding: 0px 5px 0px 0px;
 }
 .results th>a {
@@ -266,7 +264,6 @@ table.results {
 .listing th {
   font-size: small;
   vertical-align: top;
-  text-align: left;
   padding: 2px;
 }
 .listing td {
@@ -306,7 +303,6 @@ blockquote.code {
   margin-bottom: 1%;
   background-color: #fff;
   border: 2px solid #ddd;
-  text-align: left;
   padding: 3px;
 }
 .frontpgboxbody {
@@ -320,7 +316,6 @@ blockquote.code {
   border-top: 1px solid #fff;
   border-left: 1px solid #fff;
   background-color: #f1f2f4;
-  text-align: left;
   padding: 2px 10px 2px 10px;
 }
 .pgboxbody,
@@ -388,3 +383,47 @@ blockquote.code {
        font-size: 18px;
        font-weight: bold;
 }
+
+div.version {
+  font-weight:bold;
+  font-size:14px;
+  text-align:right;
+}
+
+
+
+
+/**
+ * 
+ * =============== Language-specific declarations ======================
+ * 
+ * (e.g. right-to-left texts for Hebrew)
+ * 
+ * */
+
+
+/**
+ *                 RIGHT - TO - LEFT
+ * 
+ * Too add a language, just add it's language code to all
+ * :lang()-pseudo-classes, delimited by a hyphen ("-").
+ * */
+
+body:lang(he) {
+  direction: rtl;
+}
+th:lang(he) {
+  text-align: right;
+}
+#lang_sub:lang(he) {
+  text-align: left;
+}
+.pkgSearchResultsFooter:lang(he) .legendAndActions {
+  float: right;
+}
+.pkgSearchResultsFooter:lang(he) .pageLinks {
+  float: left;
+}
+div.version:lang(he) {
+  text-align: left;
+}
diff --git a/web/html/css/containers.css b/web/html/css/containers.css
index 67fd8c7..db5bd0a 100644
--- a/web/html/css/containers.css
+++ b/web/html/css/containers.css
@@ -33,7 +33,6 @@ td.sideBar {
 td.sideBarGrey {
   background-color: #eee;
   border-bottom: 1px solid #000;
-  text-align: left;
   vertical-align: top;
   width: 150px;
 }
@@ -77,12 +76,10 @@ td.footerDisplay {
 table.boxSoft {
   width: 90%;
   background-color: #ddd;
-  text-align: left;
 }
 td.boxSoft {
   background-color: #fff;
   padding: 2px;
-  text-align: left;
 }
 td.boxSoftColumn {
   padding-left: 16px;
@@ -100,7 +97,6 @@ td.div {
   border-top: 1px solid #fff;
   background-color: #f1f2f4;
   padding: 1px 0 0 3px;
-  text-align: left;
 }
 table.boxSoftSmall {
   width: 94px;
@@ -133,31 +129,26 @@ td.features {
 }
 td.formLeft {
   padding: 6px;
-  text-align: left;
   vertical-align: top;
 }
 td.data1 {
   background-color: #eee;
   vertical-align: top;
   padding-left: .3em;
-  text-align: left;
 }
 td.data2 {
   background-color: #ddd;
   vertical-align: top;
   padding-left: .3em;
-  text-align: left;
 }
 .outofdate {
   background-color: #faa;
   padding-left: .3em;
-  text-align: left;
 }
 .legend span {
   padding: 1px;
   margin-left: .3em;
   border: solid 1px #888;
-  text-align: left;
 }
 td.text {
   color: #000;
diff --git a/web/template/footer.php b/web/template/footer.php
index d92a786..435de5c 100644
--- a/web/template/footer.php
+++ b/web/template/footer.php
@@ -2,7 +2,7 @@
        <!-- End of main content -->
 <?php
        if ($ver) {
-               echo "<p class=\"pgbox\" style=\"text-align: right; font-size: 
14px;\"><b>$ver</b></p>\n";
+               echo "<div class=\"pgbox version\">$ver</div>";
        }
 ?>
        </body>
-- 
1.7.4.1

Reply via email to