From: Eden Halperin Date: Wed, 6 Nov 2013 20:07:35 +0000 (-0500) Subject: compact menu fix, changeset highlight styles X-Git-Tag: live~4621^2~174 X-Git-Url: https://git.openstreetmap.org/rails.git/commitdiff_plain/821f9498694dd744a9da1dbdd90c54da53c8b8f0 compact menu fix, changeset highlight styles --- diff --git a/app/assets/javascripts/index/history.js b/app/assets/javascripts/index/history.js index 70366efbe..ed4e2b417 100644 --- a/app/assets/javascripts/index/history.js +++ b/app/assets/javascripts/index/history.js @@ -29,7 +29,7 @@ OSM.History = function(map) { }; function highlightChangeset(id) { - group.getLayer(id).setStyle({fillOpacity: 0.5}); + group.getLayer(id).setStyle({fillOpacity: 0.3}); $("#changeset_" + id).addClass("selected"); } diff --git a/app/assets/javascripts/leaflet.extend.js.erb b/app/assets/javascripts/leaflet.extend.js.erb index cec25081b..90c629752 100644 --- a/app/assets/javascripts/leaflet.extend.js.erb +++ b/app/assets/javascripts/leaflet.extend.js.erb @@ -125,7 +125,7 @@ L.extend(L.Map.prototype, { area: options.style, changeset: { weight: 2, - color: '#e90', + color: '#7ebc6f', fillOpacity: 0 } } diff --git a/app/assets/stylesheets/common.css.scss b/app/assets/stylesheets/common.css.scss index 399ac6e61..cdbf7e58d 100644 --- a/app/assets/stylesheets/common.css.scss +++ b/app/assets/stylesheets/common.css.scss @@ -397,6 +397,7 @@ nav.secondary { a { padding: 5px 15px; + } &.logged-in > a { @@ -404,7 +405,9 @@ nav.secondary { > .user-button { padding: 5px 10px 5px 6px; display: inline-block; + color: $darkgrey; } + &:hover > .user-button { color: darken($darkgrey, 5%); } } } @@ -433,7 +436,8 @@ nav.secondary { .dropdown-menu { left: auto; - right: 0; + right: -1px; + border-radius: 3px 0 3px 3px; .count-number { float: right; @@ -443,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 { @@ -2281,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); diff --git a/app/views/layouts/_head.html.erb b/app/views/layouts/_head.html.erb index 95984ca97..5b2a0aa6f 100644 --- a/app/views/layouts/_head.html.erb +++ b/app/views/layouts/_head.html.erb @@ -2,8 +2,8 @@ <%= javascript_include_tag "application" %> - <%= stylesheet_link_tag "small-#{dir}", :media => "only screen and (max-width:641px)" %> - <%= stylesheet_link_tag "large-#{dir}", :media => "screen and (min-width: 642px)" %> + <%= stylesheet_link_tag "small-#{dir}", :media => "only screen and (max-width:721px)" %> + <%= stylesheet_link_tag "large-#{dir}", :media => "screen and (min-width: 722px)" %> <%= stylesheet_link_tag "print-#{dir}", :media => "print" %> <%= stylesheet_link_tag "leaflet-all", :media => "screen, print" %>