]> git.openstreetmap.org Git - rails.git/blobdiff - public/stylesheets/common.css
CSS changes to improve RTL layout
[rails.git] / public / stylesheets / common.css
index 2590c2d5f655a3d456bb320c7447643884e9b83a..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;
@@ -10,6 +18,10 @@ body {
   padding: 0px;
 }
 
+body.slim {
+  background-color: #f0f0f0;
+}
+
 /* Rules for links */
 
 a {
@@ -34,20 +46,22 @@ hr {
 
 #left {
   position: absolute;
-  top: -8px;
-  min-width: 150px;
+  top: 0px;
+  min-width: 170px;
 }
 
 /* Rules for the OpenStreetMap logo in the top left corner */
 
 #logo {
-  width: 150px;
-  min-width: 150px;
-  padding: 10px;
-  margin: 10px;
+  width: 170px;
+  min-width: 170px;
+  padding: 5px;
+  margin: 5px;
   height: 150px;
   background: #fff;
   border: 1px solid #ccd;
+  border-radius: 5px;
+  -moz-border-radius: 5px;
 }
 
 #logo h1 {
@@ -61,16 +75,25 @@ hr {
   margin: 0px;
 }
 
+/* Rules for the site name */
+
+#small-title {
+  display: none;
+}
+
 /* Rules for the introductory text displayed in the left sidebar to new users */
 
 #intro {
   width: 170px;
-  margin: 10px;
+  padding: 5px;
+  margin: 5px;
   border: 1px solid #ccc;
   font-size: 11px;
+  border-radius: 5px;
+  -moz-border-radius: 5px;
 }
 
-#intro p { margin: 10px; }
+#intro p { margin: 5px; }
 
 /*
  * Rules for alert boxes shown in the left sidebar when important
@@ -79,14 +102,16 @@ hr {
  */
 
 #alert {
-  width: 150px;
-  margin: 10px;
-  padding: 10px;
+  width: 170px;
+  margin: 5px;
+  padding: 5px;
   border: 1px solid #ccc;
   background: #d00;
   line-height: 1.2em;
   text-align: left;
   font-size: 14px;
+  border-radius: 5px;
+  -moz-border-radius: 5px;
 }
 
 /*
@@ -96,30 +121,38 @@ hr {
  */
 
 .notice {
-  width: 150px;
-  margin: 10px;
-  padding: 10px;
+  width: 170px;
+  margin: 5px;
+  padding: 5px;
   border: 1px solid #ccc;
   background: #ea0;
   line-height: 1.2em;
   text-align: left;
   font-size: 14px;
+  border-radius: 5px;
+  -moz-border-radius: 5px;
 }
 
 /* Rules for the menu displayed in the left sidebar */
 
 .left_menu {
-  width: 150px;
-  min-width: 150px;
-  margin: 10px;
-  padding: 10px;
+  width: 170px;
+  min-width: 170px;
+  margin: 5px;
+  padding: 5px;
   border: 1px solid #ccc;
   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 {
@@ -135,8 +168,13 @@ hr {
 }
 
 .left_menu ul {
-  padding-left: 10px;
+  padding-left: 0px;
   margin: 0px;
+  list-style-type: none;
+}
+
+html[dir='rtl'] .left_menu ul {
+  padding-right: 0px;
 }
 
 .left_menu li {
@@ -155,8 +193,12 @@ hr {
 /* Rules for SOTM advert */
 
 #sotm {
-  width: 170px;
+  width: 180px;
+  min-width: 180px;
+  margin: 5px;
   padding: 0px;
+  border: 0px;
+  background: #fff;
 }
 
 /*
@@ -166,16 +208,18 @@ hr {
  */
 
 .optionalbox {
-  width: 150px;
-  min-width: 150px;
-  margin: 10px;
-  padding: 10px;
+  width: 170px;
+  min-width: 170px;
+  margin: 5px;
+  padding: 5px;
   border: 1px solid #ccc;
   left: 0px;
   line-height: 1.2em;
-  text-align: left;
+/*  text-align: left; */
   font-size: 12px;
   background: #eee;
+  border-radius: 5px;
+  -moz-border-radius: 5px;
 }
 
 .optionalbox h1 {
@@ -194,7 +238,7 @@ hr {
   float: right;
 }
 
-.search_form {
+.search_container {
   height: 16px;
   padding-bottom: 6px;
 }
@@ -206,11 +250,13 @@ hr {
 }
 
 #search_field input[type="text"] {
-  width: 116px;
+  width: 136px;
 }
 
 #search_field input[type="submit"] {
   width: 26px;
+  padding-left: 0px;
+  padding-right: 0px;
 }
 
 .search_help {
@@ -223,14 +269,16 @@ hr {
 /* Rules for donation request box */
 
 .donate {
-  width: 150px;
-  margin: 10px;
-  padding: 10px;
+  width: 170px;
+  margin: 5px;
+  padding: 5px;
   border: 1px solid #ccc;
   background: #cbeea7;
   line-height: 1.2em;
   text-align: center;
   font-size: 14px;
+  border-radius: 5px;
+  -moz-border-radius: 5px;
 }
 
 /* Rules for Creative Commons logo button */
@@ -251,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; 
@@ -259,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;
@@ -271,6 +328,10 @@ hr {
   border: 1px solid #ccc;
   text-decoration: none;
   color: #333;
+  border-top-right-radius: 5px;
+  -moz-border-radius-topright: 5px;
+  border-top-left-radius: 5px;
+  -moz-border-radius-topleft: 5px;
 }
 
 #tabnav a:link.active, #tabnav a:visited.active
@@ -305,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;
 }
@@ -335,15 +401,36 @@ hr {
   display: none !important;
 }
 
-#map #permalink {
-  z-index:10000;
-  position:absolute;
-  bottom:15px;
-  right:15px;
-  font-size:smaller;
+#permalink {
+  z-index: 10000;
+  position: absolute;
+  bottom: 15px;
+  right: 15px;
+  font-size: smaller;
   text-align: right;
 }
 
+/* Rules for edit menu */
+
+#editmenu {
+  display: none;
+  z-index: 10000;
+  position: absolute;
+  background-color: #ffffff;
+  border: 1px solid black;
+}
+
+#editmenu ul {
+  margin-top: 10px;
+  margin-bottom: 10px;
+  padding-left: 10px;
+  padding-right: 10px;
+}
+
+#editmenu li {
+  list-style-type: none;
+}
+
 /* Rules for attribution text under the main map shown on printouts */
 
 #attribution {
@@ -500,14 +587,63 @@ hr {
   text-align: left;
 }
 
-/* Rules for the changeset list shown by the history tab etc */
+html[dir='rtl'] #content {
+  margin-right: 190px;
+  left: 10px;
+  text-align: right;
+}
 
-#changeset_list, #keyvalue {
+#slim_container {
   width: 100%;
+}
+
+#slim_container_content {
+  max-width: 50em;
+  background-color: #FFFFFF;
+  margin: 10px auto;
+  padding: 3px;
+  border-radius: 25px;
+  -moz-border-radius: 25px;
+  border: 1px solid #e6e6e6;
+}
+
+#slim_content {
+  margin: 10px;
+  margin-top: 90px;
+  max-width: 50em;
+}
+
+#slim_header {
+  margin: 10px;
+  position: absolute;
+  top: 0px;
+}
+
+#slim_header img {
+  vertical-align: middle;
+  margin-right: 5px;
+  margin-bottom: 5px;
+}
+
+/* Rules for the changeset list shown by the history tab etc */
+
+#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 {
@@ -522,8 +658,20 @@ hr {
   white-space: nowrap;
 }
 
-#changeset_list.th {
-  font-weight: bold;
+#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 */
@@ -535,6 +683,10 @@ hr {
   margin-left: 10px;
 }
 
+table.browse_details th {
+  white-space: nowrap;
+}
+
 #browse_map {
   float: right;
   width: 250px;
@@ -570,7 +722,7 @@ hr {
 }
 
 #user_list tr {
-  vertical-align: center;
+  vertical-align: middle;
 }
 
 #user_list p {
@@ -583,14 +735,62 @@ hr {
   margin-top: 10px;
 }
 
+/* Rules for the login page */
+
+#login_wrapper div {
+  margin: 5px;
+  padding: 15px;
+  border-radius: 15px;
+  -moz-border-radius: 15px;
+}
+
+#login_wrapper input[type=submit] {
+  float: right;
+}
+
+#login_login {
+  background-color: #f5f5ff;
+  border: 1px solid #f3f3ff;
+  border-radius: 15px;
+  -moz-border-radius: 15px;
+}
+
+#login_login h1 {
+  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;
+}
+
 /* Rules for the account confirmation page */
 
 div#contributorTerms {
   border: 1px solid black;
   padding: 4px;
   overflow: auto;
-  width: 80%;
-  height: 60%;
+  width: 95%;
+  height: 400px;
+}
+
+div#slim_content div#contributorTerms {
+  width: auto;
 }
 
 div#contributorTerms p#first {
@@ -613,7 +813,12 @@ div#contributorTerms img {
 }
 
 form#termsForm {
-  width: 80%;
+  width: 95%;
+  margin-bottom: 3em;
+}
+
+div#slim_content form#termsForm {
+  width: auto;
 }
 
 form#termsForm div#buttons {
@@ -624,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 {
@@ -684,6 +897,8 @@ form#termsForm input#agree {
   padding: 7px;
   background-color: #fff0f0;
   margin-bottom: 20px;
+  border-radius: 5px;
+  -moz-border-radius: 5px;
 }
 
 #warning {
@@ -691,6 +906,8 @@ form#termsForm input#agree {
   padding: 7px;
   background-color: #fff6f0;
   margin-bottom: 20px;
+  border-radius: 5px;
+  -moz-border-radius: 5px;
 }
 
 #notice {
@@ -698,6 +915,8 @@ form#termsForm input#agree {
   padding: 7px;
   background-color: #f0fff0;
   margin-bottom: 20px;
+  border-radius: 5px;
+  -moz-border-radius: 5px;
 }
 
 /* Rules for highlighting fields with rails validation errors */
@@ -759,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 {
@@ -801,3 +1025,10 @@ abbr.geo {
 .table1 { 
   background: #fff;
 }
+
+/* Rules for OpenID logo */
+
+.openid_logo {
+  vertical-align: text-bottom;
+  border: 0;
+}