X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/4b2bd4835dc36384f9085aa5cc115ed6dca8e031..bd19e75214a05c2cc4cd36dd63d30cace2ab1f8e:/app/assets/stylesheets/common.css.scss diff --git a/app/assets/stylesheets/common.css.scss b/app/assets/stylesheets/common.css.scss index 21ed6930b..3845c5b31 100644 --- a/app/assets/stylesheets/common.css.scss +++ b/app/assets/stylesheets/common.css.scss @@ -1,20 +1,4 @@ -/* Parameters */ -$lineheight: 20px; -$typeheight: 14px; - -$offwhite: #f4f4ff; -$blue: #7092FF; -$lightblue: #B8C5F0; -$green: #7ebc6f; -$grey: #CCC; -$red: red; -$lightgrey: #EEE; -$darkgrey: #AAA; -$hovercolor: 20%; -$headerHeight: 54px; -$sidebarWidth: 300px; -$keyline: 1px solid $lightgrey; -$border-radius: 3px; +@import "parameters"; /* Styles common to large and small screens */ @@ -192,7 +176,7 @@ small, aside { /* Rules for links */ a { - color: #00f; + color: #24d; text-decoration: none; -webkit-appearance: none; outline: 0; @@ -264,7 +248,7 @@ header { > * { height: 100%; - padding: $lineheight/2 $lineheight; + padding: $lineheight/2; } h1, nav.primary { @@ -284,7 +268,7 @@ header { h1 { margin: 0; - padding: ($lineheight - 3) $lineheight ($lineheight + 3); + padding-top: 15px; a { color: #000; @@ -466,7 +450,6 @@ nav.secondary { } } - /* Utility for styling notification numbers */ .count-number { @@ -623,6 +606,7 @@ nav.secondary { .map-layout { #content { + overflow: hidden; position: absolute; top: $headerHeight; bottom: 0; @@ -639,6 +623,7 @@ nav.secondary { #sidebar { float: left; width: $sidebarWidth; + background: #fff; h2, h3, h4 { padding: $lineheight $lineheight $lineheight/2; @@ -651,31 +636,37 @@ nav.secondary { } .icon.close { - position: absolute; - right: $lineheight; + float: right; cursor: pointer; } - - p.large-text { - font-size: 1.7em; - line-height: 1.4em; - font-weight: 300; - } } - #sidebar.minimized { + .overlay-sidebar #sidebar { position: absolute; z-index: 1000; height: auto; - border-right: none; + border-bottom-right-radius: 5px; + overflow: hidden; + } - #sidebar_content { - display: none; + .welcome { + p { + padding: $lineheight/2 $lineheight $lineheight; + font-size: 110%; + font-weight: 300; } - #search_form { - background: none; - width: 78%; + .button { + width: 50%; + float: left; + margin: 0; + border-radius: 0; + font-weight: 400; + padding: .6em; + + &.learn-more { + border-right: 1px solid #fff; + } } } @@ -743,11 +734,6 @@ nav.secondary { font-size: 16px; text-stroke: 2px #fff; background: rgba(255,255,255,.9); - text-shadow: - -2px -2px 1px #fff, - 2px -2px 1px #fff, - -2px 2px 1px #fff, - 2px 2px 1px #fff; input[type="radio"] { display: none; } @@ -825,7 +811,7 @@ nav.secondary { } .leaflet-top { - top: $lineheight !important; + top: $lineheight/2 !important; .leaflet-control { margin-right: 0px !important; margin-top: 0px !important; @@ -874,13 +860,13 @@ nav.secondary { } } -#sidebar_content { - position: absolute; - top: 50px; - bottom: 0; - width: 100%; - overflow-y: auto; +#browse_status { + p { + padding: $lineheight; + } +} +#sidebar_content { .loader, .load_more { text-align: center; @@ -892,21 +878,25 @@ nav.secondary { /* Rules for the search box */ -#search_form { +header .search_form { + display: none; +} + +.search_form { position: relative; - padding: $lineheight/2 $lineheight; + padding: $lineheight/2; background-color: $lightgrey; - #query_wrapper { + .query_wrapper { position: relative; overflow: hidden; + border-radius: 2px 0 0 2px; } - input { + input[type=text] { width: 100%; height: 30px; border-right: none; - border-radius: 2px 0 0 2px; transition: 300ms linear; -webkit-transition: 300ms linear; @@ -925,7 +915,7 @@ nav.secondary { border-radius: 0 2px 2px 0; } - #describe_location { + .describe_location { position: absolute; top: 6px; right: 6px; @@ -934,48 +924,6 @@ nav.secondary { } } -/* Rules for donation request box */ - -a.donate { - display: block; - padding: $lineheight/4 $lineheight; - border: 1px solid $green; - font-size: $typeheight; - line-height: 1.4; - text-align: center; - border-radius: 2px; - color: #222; - margin: $lineheight/2 $lineheight; - - &:hover { - background: $green; - text-decoration: none; - } -} - -/* Rules for rotating sidebar ads */ - -.ad-container { - display: block; - height: 120px; - margin: auto; - overflow: hidden; - position: relative; - border-bottom: 1px solid #ccc; - - a { - display: block; - width: 165px; - margin: auto; - } - - .ad { - height: 100px; - border: 0; - background: #fff; - } -} - /* Rules for the map key which appears in the popout sidebar */ #mapkey { @@ -1010,27 +958,6 @@ a.donate { color: #f00; } -/* Rules for data browser information which appears in the popout sidebar */ - -#browse_content { - position: relative; - .browse_show_list.button { - position: absolute; - left: $lineheight; - right: $lineheight; - bottom: -40px; - margin-bottom: 0; - } - a.more-details { - position: absolute; - top: 0; - right: $lineheight; - } - ul li { - margin-bottom: 0; - } -} - /* Rules for entity history */ #sidebar_content { .browse_details { @@ -1083,7 +1010,7 @@ a.donate { } } - .paginate ul, .note-comments ul { + .paginate ul { padding-left: 20px; } @@ -1980,7 +1907,7 @@ a.button { float: left; border-radius: 0; margin:0; - min-width: 100px; + min-width: 75px; max-width: 180px; border-right:1px solid white; text-overflow: ellipsis;