]> git.openstreetmap.org Git - rails.git/blobdiff - public/stylesheets/common.css
CSS changes to improve RTL layout
[rails.git] / public / stylesheets / common.css
index 6bc9666b2aaec5d5ca85ce4b35582a6d5ccdb871..b9ee6a83393ba973fc043382420a8ec6f84e5423 100644 (file)
@@ -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;
@@ -222,7 +238,7 @@ hr {
   float: right;
 }
 
-.search_form {
+.search_container {
   height: 16px;
   padding-bottom: 6px;
 }
@@ -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%;
 }
@@ -591,12 +627,23 @@ hr {
 
 /* Rules for the changeset list shown by the history tab etc */
 
-#changeset_list, #keyvalue {
-  width: 100%;
+#changeset_list_container {
+  position: relative;
+}
+
+#changeset_list {
+  width: 50%;
   font-size: small;
   text-align: left;
   border-collapse: collapse;
   border-width: 0px;
+  margin-top: 1px;
+  margin-bottom: 1px;
+}
+
+#changeset_list td {
+  vertical-align: top;
+  padding: 3px;
 }
 
 #changeset_list .date {
@@ -611,6 +658,22 @@ hr {
   white-space: nowrap;
 }
 
+#changeset_list .selected {
+  background-color: rgb(255, 255, 160);
+  background-color: rgba(255, 255, 85, 0.5);
+}
+
+#changeset_list_map {
+  float: right;
+  position: absolute;
+  top: 0px;
+  bottom: 0px;
+  right: 0px;
+  width: 49%;
+  min-height: 400px;
+  border: solid 1px black;
+}
+
 /* Rules for the data browser */
 
 #browse_navigation {
@@ -620,6 +683,10 @@ hr {
   margin-left: 10px;
 }
 
+table.browse_details th {
+  white-space: nowrap;
+}
+
 #browse_map {
   float: right;
   width: 250px;
@@ -692,6 +759,21 @@ hr {
   margin-top: 5px;
 }
 
+table#login_openid_buttons {
+  padding-bottom: 10px;
+}
+
+#login_openid_buttons td {
+  padding-left: 10px;
+  padding-right: 10px;
+  padding-top: 5px;
+  padding-bottom: 5px;
+}
+
+#login_openid_buttons img {
+  border: 0;
+}
+
 #login_signup form.button-to div {
   margin: 0px;
   padding: 0px;
@@ -703,7 +785,7 @@ div#contributorTerms {
   border: 1px solid black;
   padding: 4px;
   overflow: auto;
-  width: 80%;
+  width: 95%;
   height: 400px;
 }
 
@@ -731,7 +813,7 @@ div#contributorTerms img {
 }
 
 form#termsForm {
-  width: 80%;
+  width: 95%;
   margin-bottom: 3em;
 }
 
@@ -747,6 +829,14 @@ form#termsForm input#agree {
   margin-left: 50px;
 }
 
+p#contributorGuidance {
+  background-color: #f5f5ff;
+  border: 1px solid #f3f3ff;
+  border-radius: 15px;
+  -moz-border-radius: 15px;
+  padding: 10px;
+}
+
 /* Rules for the account settings page */
 
 #accountForm td {
@@ -888,6 +978,11 @@ input[type="submit"] {
   border: 1px solid black;
 }
 
+input.openid_url { 
+  background: url('../images/openid_input.png') repeat-y left white;
+  padding-left: 16px;
+}
+
 /* Rules for user images */
 
 img.user_image {
@@ -930,3 +1025,10 @@ abbr.geo {
 .table1 { 
   background: #fff;
 }
+
+/* Rules for OpenID logo */
+
+.openid_logo {
+  vertical-align: text-bottom;
+  border: 0;
+}