click through location icon and route dots, react only on input focus

This commit is contained in:
Laura Klünder 2017-11-15 16:03:41 +01:00
parent 8184684a2a
commit 08fbb27fe4
2 changed files with 3 additions and 1 deletions

View file

@ -122,6 +122,7 @@ main:not([data-view=route-result]) #route-result-buttons{
cursor: default;
color: #7C848A;
transition: color 150ms, transform 150ms, top 150ms;
pointer-events: none;
}
.location .icon:empty::before {
display: block;
@ -221,6 +222,7 @@ main:not([data-view=route-result]) #route-result-buttons{
text-shadow: 2px 0 1px #fff, -2px 0 1px #fff;
transition: top 150ms, opacity 150ms, color 150ms, transform 150ms;
color: #7C848A;
pointer-events: none;
}
main:not([data-view^=route]) #route-dots {
position: absolute;

View file

@ -281,7 +281,7 @@ c3nav = {
}
if (!$(e.target).is('#search *')) {
$('#search').removeClass('focused');
} else if ($(e.target).is('.locationinput *')) {
} else if ($(e.target).is('.locationinput input')) {
$('#search').addClass('focused');
}
},