From bd3bddc8484f4e3d0eb4afdd42f2a8cf94f1534e Mon Sep 17 00:00:00 2001 From: Hugh Barnes Date: Wed, 29 Oct 2008 13:05:14 +0000 Subject: [PATCH] Fix for bug #1242, css foreground set + css shorthands used --- public/stylesheets/site.css | 146 +++++++++++++++--------------------- 1 file changed, 60 insertions(+), 86 deletions(-) diff --git a/public/stylesheets/site.css b/public/stylesheets/site.css index c0cef39cb..6fcc5f421 100644 --- a/public/stylesheets/site.css +++ b/public/stylesheets/site.css @@ -1,21 +1,9 @@ -a { - color: #0000ff; - text-decoration: none; -} -a:visited { - color: #0000ff; - text-decoration: none; -} -a:active { - color: #0000ff; - text-decoration: none; -} -a:link { - color: #0000ff; +a, a:visited, a:active, a:link, a:hover { + color: #00f; text-decoration: none; } + a:hover { - color: #0000ff; text-decoration: underline; } @@ -33,7 +21,8 @@ a:hover { body { font-family: Arial,sans-serif; - color: Black; + color: #000; + background-color: #fff; margin: 0; padding: 0; } @@ -50,8 +39,8 @@ body { padding: 10px; margin: 10px; height: 150px; - background: #ffffff; - border: 1px solid #ccccdd; + background: #fff; + border: 1px solid #ccd; } #logo h1 { font-size: 14px; @@ -66,7 +55,7 @@ body { #greeting { float: right; height: 20px; - margin: 0px; + margin: 0; padding-right: 10px; padding-top: 5px; font-size: 13px; @@ -99,7 +88,7 @@ body { margin: 10px; padding: 10px; border: 1px solid #ccc; - left: 0px; + left: 0; background: #ddd; line-height: 1.2em; text-align: Left; @@ -134,28 +123,13 @@ body { margin: 2px 8px 0 0; } -.left_menu a { - color: #000000; - text-decoration: none; -} - -.left_menu a:visited { - color: #000000; - text-decoration: none; -} - -.left_menu a:active { - color: #000000; - text-decoration: none; -} - -.left_menu a:link { - color: #000000; +.left_menu a, .left_menu a:visited, .left_menu a:active, .left_menu a:link, .left_menu a:hover { + color: #000; text-decoration: none; } .left_menu a:hover { - color: #000000; + color: #000; text-decoration: underline; } @@ -178,7 +152,7 @@ body { #bottom_bar { position: absolute; - bottom: 0px; + bottom: 0; width: 100%; font-size: x-small; text-align: center; @@ -186,10 +160,10 @@ body { #mapImage { position: absolute; - left: 0px; + left: 0; } #drag { - top: 0px; + top: 0; left: 14px; } @@ -222,7 +196,7 @@ body { } #header ul { margin:0; - padding:10px 10px 0px 215px; + padding:10px 10px 0 215px; list-style:none; } #header li { @@ -259,7 +233,7 @@ hides rule from IE5-Mac \*/ #tabnav { height: 20px; - margin: 0px; + margin: 0; padding-left: 215px; padding-top: 5px; background: url('/images/tab_bottom.gif') repeat-x bottom; @@ -278,7 +252,7 @@ hides rule from IE5-Mac \*/ font-size: 13px; line-height: 14px; font-weight: bold; - padding: 2px 10px 2px 10px; + padding: 2px 10px; margin-right: 4px; border: 1px solid #ccc; text-decoration: none; @@ -328,9 +302,9 @@ hides rule from IE5-Mac \*/ margin: 10px; padding: 10px; border: 1px solid #ccc; - left: 0px; + left: 0; line-height: 1.2em; - text-align: Left; + text-align: left; font-size: 12px; background: #eee; } @@ -350,8 +324,8 @@ hides rule from IE5-Mac \*/ } .optionalbox form { - margin: 0px; - padding: 0px; + margin: 0; + padding: 0; } #search_field form { @@ -386,9 +360,9 @@ hides rule from IE5-Mac \*/ min-width: 150px; margin: 10px; padding: 10px; - left: 0px; + left: 0; line-height: 1.2em; - text-align: Left; + text-align: left; font-size: 14px; font-weight: bold; background: #fff; @@ -402,8 +376,8 @@ hides rule from IE5-Mac \*/ #controls { position:absolute; - top:0px; - left:0px; + top:0; + left:0; width:64px; height:32px; z-index: 9998; @@ -413,24 +387,24 @@ hides rule from IE5-Mac \*/ #map { position: absolute; border: 1px solid black; - margin: 0px; - padding: 0px; - left: 0px; + margin: 0; + padding: 0; + left: 0; right: 2px; - top: 0px; - bottom: 0px; + top: 0; + bottom: 0; } #sidebar { display: none; position: absolute; border: 1px solid black; - margin: 0px; - padding: 0px; + margin: 0; + padding: 0; width: 30%; - left: 0px; - top: 0px; - bottom: 0px; + left: 0; + top: 0; + bottom: 0; } #sidebar_content { @@ -439,14 +413,14 @@ hides rule from IE5-Mac \*/ font-size: 13px; line-height: 14px; top: 29px; - bottom: 0px; - left: 0px; - right: 0px; + bottom: 0; + left: 0; + right: 0; } .sidebar_title { - margin: 0px; - padding: 3px 6px 3px 6px; + margin: 0; + padding: 3px 6px; height: 29px; font-size: 14px; line-height: 15px; @@ -455,32 +429,32 @@ hides rule from IE5-Mac \*/ } .browse_heading { - margin: 0px; - padding: 3px 6px 3px 6px; + margin: 0; + padding: 3px 6px; border: 1px solid #ccc; background: #ddd; } .browse_details { - margin: 0px; - padding: 0px 6px 0px 6px; + margin: 0; + padding: 0 6px; } .search_results_heading { - margin: 0px; - padding: 3px 6px 3px 6px; + margin: 0; + padding: 3px 6px; border: 1px solid #ccc; background: #ddd; } .search_results_entry { - margin: 0px; - padding: 2px 6px 2px 6px; + margin: 0; + padding: 2px 6px; } .search_results_error { - margin: 0px; - padding: 2px 6px 0px 6px; + margin: 0; + padding: 2px 6px 0; color: #f00; } @@ -488,7 +462,7 @@ hides rule from IE5-Mac \*/ font-size: 10px; line-height: 1em; margin-top: 3px; - margin-bottom: 0px; + margin-bottom: 0; } .olControlAttribution { @@ -582,12 +556,12 @@ input[type="submit"] { /**State of the Map */ #sotminfo { - background: #9999FF; + background: #99F; font-size: 11px; - margin: 0px; - padding: 0px; + margin: 0; + padding: 0; border: 1px solid #ccc; - left: 0px; + left: 0; line-height: 1.2em; text-align: Left; font-weight: normal; @@ -614,8 +588,8 @@ input[type="submit"] { } .export_heading { - margin: 0px; - padding: 3px 6px 3px 6px; + margin: 0; + padding: 3px 6px; border: 1px solid #ccc; background: #ddd; } @@ -630,7 +604,7 @@ input[type="submit"] { } .export_details { - padding: 2px 6px 2px 6px; + padding: 2px 6px; } #export_osm { @@ -646,7 +620,7 @@ input[type="submit"] { } .export_hint { - padding: 0px 12px 0px 12px; + padding: 0 12px; font-style: italic; } -- 2.43.2