From 55e0c231cf59a1be5626e6e7d0545a1c3002f8bf Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Sat, 11 Feb 2012 13:11:52 +0000 Subject: [PATCH] Tidy up the stylesheets --- app/assets/stylesheets/common.css.scss | 3 +++ app/assets/stylesheets/ltr.css.scss | 16 ++++++++++------ app/assets/stylesheets/rtl.css.scss | 4 ++-- 3 files changed, 15 insertions(+), 8 deletions(-) diff --git a/app/assets/stylesheets/common.css.scss b/app/assets/stylesheets/common.css.scss index 04ee87d9f..d7424fb74 100644 --- a/app/assets/stylesheets/common.css.scss +++ b/app/assets/stylesheets/common.css.scss @@ -36,6 +36,8 @@ hr { height: 1px; } +/* Default rules for headings */ + h2 { margin: 5px 0; font-size: 25px; @@ -325,6 +327,7 @@ h2 { } /* Rules for OpenLayers maps */ + #map { margin: 0px; padding: 0px; diff --git a/app/assets/stylesheets/ltr.css.scss b/app/assets/stylesheets/ltr.css.scss index 67faffc77..5dfbc8471 100644 --- a/app/assets/stylesheets/ltr.css.scss +++ b/app/assets/stylesheets/ltr.css.scss @@ -72,7 +72,9 @@ html body { margin-left: 185px; } -#tabnav a, #tabnav a:link, #tabnav a:visited { +#tabnav a, +#tabnav a:link, +#tabnav a:visited { float: left; margin-right: 4px; } @@ -90,6 +92,12 @@ html body { left: 15px } +/* Rules for OpenLayers maps */ + +#map { + border-left: 1px solid #ccc; +} + /* Rules for attribution text under the main map shown on printouts */ .attribution_license { @@ -100,10 +108,6 @@ html body { text-align: right; } -#map { - border-left: 1px solid #ccc; -} - /* Rules for the popout map sidebar */ #sidebar { @@ -237,7 +241,7 @@ form#termsForm input#agree { text-align: right; } -input.openid_url { +input.openid_url { background: image-url('openid_input.png') repeat-y left white; padding-left: 16px; } diff --git a/app/assets/stylesheets/rtl.css.scss b/app/assets/stylesheets/rtl.css.scss index 5d3bad582..eed94d528 100644 --- a/app/assets/stylesheets/rtl.css.scss +++ b/app/assets/stylesheets/rtl.css.scss @@ -68,7 +68,6 @@ html body { /* Rules for tabbed navigation bar */ - #tabnav { margin-right: 185px; } @@ -93,6 +92,7 @@ html body { right: 15px } +/* Rules for OpenLayers maps */ #map { border-right: 1px solid #ccc; @@ -241,7 +241,7 @@ form#termsForm input#agree { text-align: left; } -input.openid_url { +input.openid_url { background: image-url('openid_input.png') repeat-y right white; padding-right: 16px; } -- 2.39.5