From: Tom MacWright Date: Sat, 11 Feb 2012 17:50:01 +0000 (-0500) Subject: Fix sidebar border and padding, tweak styles to simplify borders X-Git-Tag: live~5857 X-Git-Url: https://git.openstreetmap.org/rails.git/commitdiff_plain/3c4b20c16096d303780deea56fe274c04575bb63?ds=sidebyside Fix sidebar border and padding, tweak styles to simplify borders Move font sizes and line heights up in the stylesheet structure to make the left element more uniform. Make the padding of the menu the same as the other elements. --- diff --git a/app/assets/stylesheets/common.css.scss b/app/assets/stylesheets/common.css.scss index d7424fb74..8df206477 100644 --- a/app/assets/stylesheets/common.css.scss +++ b/app/assets/stylesheets/common.css.scss @@ -50,6 +50,8 @@ h2 { position: absolute; top: 0px; width: 185px; + font-size: 11px; + line-height: 12px; } /* Rules for the OpenStreetMap logo in the top left corner */ @@ -84,8 +86,6 @@ h2 { /* Rules for the introductory text displayed in the left sidebar to new users */ #intro { - font-size: 11px; - line-height: 12px; border-top: 1px solid #ccc; } @@ -132,7 +132,7 @@ h2 { /* Rules for the menu displayed in the left sidebar */ .left_menu { - padding: 10px; + padding: 5px; margin: 4px 0; border-top: 1px solid #ccc; border-bottom: 1px solid #ccc; @@ -141,10 +141,6 @@ h2 { font-weight: bold; } -.left_menu td { - font-size: 12px; -} - .left_menu h1 { font-style: normal; font-size: 15px; @@ -185,8 +181,6 @@ h2 { padding: 5px; margin: 4px 0; border-top: 1px solid #ccc; - line-height: 15px; - font-size: 12px; } .optionalbox h1 { @@ -226,8 +220,6 @@ h2 { } .search_help { - font-size: 10px; - line-height: 15px; margin-top: 2px; margin-bottom: 0px; } @@ -450,14 +442,15 @@ h2 { .search_results_heading { margin: 0px; - padding: 3px 6px; - border: 1px solid #ccc; - background: #ddd; + padding: 2px 5px; + border-top: 1px solid #ccc; + border-bottom: 1px solid #ccc; + background: #eee; } .search_results_entry { margin: 0px; - padding: 2px 6px; + padding: 2px 5px; } .search_results_error { diff --git a/app/assets/stylesheets/ltr.css.scss b/app/assets/stylesheets/ltr.css.scss index 5dfbc8471..aaca016e9 100644 --- a/app/assets/stylesheets/ltr.css.scss +++ b/app/assets/stylesheets/ltr.css.scss @@ -112,7 +112,6 @@ html body { #sidebar { left: 0px; - margin-right: 3px; } #sidebar #sidebar_title { diff --git a/app/assets/stylesheets/rtl.css.scss b/app/assets/stylesheets/rtl.css.scss index eed94d528..6d7ed3b34 100644 --- a/app/assets/stylesheets/rtl.css.scss +++ b/app/assets/stylesheets/rtl.css.scss @@ -112,7 +112,6 @@ html body { #sidebar { right: 0px; - margin-left: 3px; } #sidebar #sidebar_title {