X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/582ab35ecd0b0cfacaedf8cbe1d6eadff302973b..821f9498694dd744a9da1dbdd90c54da53c8b8f0:/app/assets/stylesheets/common.css.scss diff --git a/app/assets/stylesheets/common.css.scss b/app/assets/stylesheets/common.css.scss index 46f679955..cdbf7e58d 100644 --- a/app/assets/stylesheets/common.css.scss +++ b/app/assets/stylesheets/common.css.scss @@ -238,14 +238,20 @@ table { /* Rules for the header */ #menu-icon { - display: none; - float: right; + display: none !important; + float: right; + background: url("/assets/menu-icon.png") no-repeat; + background-size: 30px 30px; + display: block; + width: 30px; + height: 30px; + margin: 14px 10px 0 0; + opacity: 0.6; } header { height: $headerHeight; position: relative; - // border-bottom: $keyline; z-index: 1001; font-size: 13px; @@ -292,6 +298,7 @@ nav.primary { > li { border-right: $border; + float: left; &:last-child { border-right: 0; > a { border-radius: 0 $border-radius $border-radius 0; } @@ -350,14 +357,16 @@ nav.secondary { position: absolute; right: 0; - > ul a, - .dropdown-toggle { - display: inline-block; - text-decoration: none; - color: $darkgrey; - padding: 5px; + > ul { + vertical-align: middle; + a, .dropdown-toggle { + display: inline-block; + text-decoration: none; + color: $darkgrey; + padding: 5px; - &:hover { color: darken($darkgrey, 10%); } + &:hover { color: darken($darkgrey, 10%); } + } } > ul li.current a { @@ -374,6 +383,7 @@ nav.secondary { > li { border-right: $border; + float: left; &:last-child { border-right: 0; @@ -387,6 +397,7 @@ nav.secondary { a { padding: 5px 15px; + } &.logged-in > a { @@ -394,7 +405,9 @@ nav.secondary { > .user-button { padding: 5px 10px 5px 6px; display: inline-block; + color: $darkgrey; } + &:hover > .user-button { color: darken($darkgrey, 5%); } } } @@ -423,7 +436,8 @@ nav.secondary { .dropdown-menu { left: auto; - right: 0; + right: -1px; + border-radius: 3px 0 3px 3px; .count-number { float: right; @@ -433,6 +447,25 @@ nav.secondary { } } +#compact-secondary-nav { + display: none; + ul li a { + width: 100%; + color: #333; + &:hover { color: #fff; } + } +} + +@media only screen and (max-width:960px) { + #compact-secondary-nav { + display: inline-block; + } + .compact-hide { + display: none; + } +} + + /* Utility for styling notification numbers */ .count-number { @@ -1029,7 +1062,8 @@ a.donate { border-bottom: $keyline; cursor: pointer; - &.selected { background: lighten($green, 35%); } + &.selected { background: #FFFFE6; } + /* color is derived from changeset bbox fillColor in history.js */ } .comment a { @@ -2270,6 +2304,7 @@ a.button { list-style: none; background-color: #ffffff; border: 1px solid #ccc; + border-radius: 0 3px 3px; *border-right-width: 2px; *border-bottom-width: 2px; -webkit-box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);