X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/4f49ef07e653e91fae3a75976074833905c79aa8..dba5b2f86e3b91eade86a851932004a56b34134e:/website/css/search.css diff --git a/website/css/search.css b/website/css/search.css index 14eca2ef..d018ab94 100644 --- a/website/css/search.css +++ b/website/css/search.css @@ -1,166 +1,146 @@ -* {-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; + + +form { + width: 100%; + padding: 1em 15px; } -#searchresultsfade1{ - width:1px; +form #q { + min-width: 500px; } -#searchresultsfade2{ - width:2px; +@media (max-width: 850px) { +form #q { + min-width: 400px; } -#searchresultsfade3{ - width:3px; } -#searchresultsfade4{ - width:4px; +form .checkbox-inline { + margin-left: 10px; +} +form label { + font-weight: normal; } -#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; +.search-type-link { + display: inline; + margin-right: 2em; + position: absolute; + right: 0 } -#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; + +.sidebar { + width: 25%; + padding: 15px; + padding-top: 0; + display: inline-block; + float: left; } -#report table { - margin-left:20px; + + +#map-wrapper { + position: relative; + min-height: 700px; + width: 75%; + padding-right: 20px; + display: inline-block; + float: left; } -#report th { - vertical-align:top; - text-align:left; + +#map { + height: 100%; + min-height: 700px; + background:#eee; } -#report td.button { - text-align:right; + +#map-position { + display: none; + 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; } + +#map-position-close { + text-align: right; +} + .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%; + } + .search-button-group { + display: inline + } +}