X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/4f49ef07e653e91fae3a75976074833905c79aa8..97c572b92f5e09d646ce045a949e40d53f87243a:/website/css/search.css diff --git a/website/css/search.css b/website/css/search.css index 14eca2ef..89ccc8ef 100644 --- a/website/css/search.css +++ b/website/css/search.css @@ -1,166 +1,157 @@ -* {-moz-box-sizing: border-box;} -body { - margin:0px; - padding:0px; - overflow: hidden; - background:#ffffff; - height: 100%; - font: normal 12px/15px arial,sans-serif; -} -#seachheader { - position:absolute; - z-index:5; - top:0px; - left:0px; - width:100%; - height:38px; - background:#F0F7FF; - border-bottom: 2px solid #75ADFF; -} -#q { - width:300px; -} -#seachheaderfade1, #seachheaderfade2, #seachheaderfade3, #seachheaderfade4{ - position:absolute; - z-index:4; - top:0px; - left:0px; - width:100%; - opacity: 0.15; - filter: alpha(opacity = 15); - background:#000000; - border: 1px solid #000000; -} -#seachheaderfade1{ - height:39px; -} -#seachheaderfade2{ - height:40px; -} -#seachheaderfade3{ - height:41px; -} -#seachheaderfade4{ - height:42px; -} -#searchresultsfade1, #searchresultsfade2, #searchresultsfade3, #searchresultsfade4 { - position:absolute; - z-index:2; - top:0px; - left:200px; - height: 100%; - opacity: 0.2; - filter: alpha(opacity = 20); - background:#ffffff; - border: 1px solid #ffffff; +header { + width: 100%; + padding: 15px; + z-index: 5; } -#searchresultsfade1{ - width:1px; + +header .brand { + white-space: nowrap; } -#searchresultsfade2{ - width:2px; + +header .brand a:hover{ + text-decoration: none; } -#searchresultsfade3{ - width:3px; + +header .brand h1 { + display: inline; + font-size: 1.5em; + color: #333; } -#searchresultsfade4{ - width:4px; + +header .brand > img { + display: inline-block; + margin-right: 5px; + margin-top: -5px; } -#searchresults{ - position:absolute; - z-index:3; - top:41px; - width:200px; - height: 100%; - background:#ffffff; - border: 1px solid #ffffff; - overflow: auto; -} -#map{ - position:absolute; - z-index:1; - top:38px; - left:200px; - width:100%; - height:100%; - background:#eee; +header #last-updated { + font-size: 0.7em; + white-space: nowrap; + text-align: center; } -#report{ - position:absolute; - z-index:2; - top:38px; - left:200px; - width:100%; - height:100%; - background:#eee; - font: normal 12px/15px arial,sans-serif; - padding:20px; + + +form { + width: 100%; + padding: 1em 15px; +} +form #q { + min-width: 500px; } -#report table { - margin-left:20px; +form .checkbox-inline { + margin-left: 10px; } -#report th { - vertical-align:top; - text-align:left; +form label { + font-weight: normal; +} + +.sidebar { + width: 25%; + padding: 10px; + padding-top: 0; + display: inline-block; + float: left; } -#report td.button { - text-align:right; + + +#map-wrapper { + position: relative; + min-height: 700px; + width: 75%; + padding-right: 20px; + display: inline-block; + float: left; } + +#map { + height: 100%; + min-height: 700px; + background:#eee; +} + +#map-position { + position: absolute; + top: 0; + right: 20px; + padding: 0 5px; + color: #333; + font-size: 11px; + background-color: rgba(255, 255, 255, 0.7); + z-index: 100; +} + .result { - margin:5px; - margin-bottom:0px; - padding:2px; - padding-left:4px; - padding-right:4px; - border-radius: 5px; - -moz-border-radius: 5px; - -webkit-border-radius: 5px; + font-size: 0.8em; + margin: 5px; + margin-top:0px; + padding: 4px 8px; + border-radius: 2px; background:#F0F7FF; border: 2px solid #D7E7FF; - font: normal 12px/15px arial,sans-serif; cursor:pointer; + min-height: 5em; } -.result img{ - float:right; + + +.result.highlight { + background-color: #D9E7F7; + border-color: #9DB9E4; } -.result .latlon{ - display: none; +.result.highlight .details { + margin: 10px auto; + display: block; + max-width: 10em; } -.result .place_id{ - display: none; +.result img{ + float: right; } .result .type{ - color: #999; - text-align:center; - font: normal 9px/10px arial,sans-serif; - padding-top:4px; + color: gray; + font-size: 0.8em; } -.result .details, .result .details a{ - color: #999; - text-align:center; - font: normal 9px/10px arial,sans-serif; - padding-top:4px; +.result .details { + display: none; } .noresults{ - color: #000; - text-align:center; - font: normal 12px arial,sans-serif; - padding-top:4px; + text-align: center; + padding: 1em; } + .more{ - color: #ccc; text-align:center; - padding-top:4px; + margin-top: 1em; } -.disclaimer{ - color: #ccc; - text-align:center; - font: normal 9px/10px arial,sans-serif; - padding-top:4px; + +footer { + text-align: center; + padding: 2em 0; + font-size: 0.8em; + clear: both; + color: #333; } -form{ - margin:0px; - padding:0px; + +footer p { + margin: 1em; } +@media (max-width: 768px) { + #content { + top: 0; + position: relative; + } + #map-wrapper { + width: 100%; + max-height: 300px; + padding: 20px; + } + #map-position { + top: 20px; + right: 20px; + } + #map { + height: 300px; + } + .sidebar { + width: 100%; + } +}