Skip to content
This repository has been archived by the owner on Mar 15, 2018. It is now read-only.

Commit

Permalink
improve header search input padding (bug 1154675)
Browse files Browse the repository at this point in the history
  • Loading branch information
ngokevin committed Apr 15, 2015
1 parent a3dba9d commit 5ec526b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/media/css/elements--header.styl
Expand Up @@ -122,7 +122,7 @@ mkt-header-child {
border-radius: 5px;
height: 100%;
min-width: $mobile-content-width + 10;
padding: 15px 0 15px 50px;
padding: 15px 0 15px 40px;
outline: none;
width: 50%;
z-index: 2;
Expand All @@ -137,7 +137,7 @@ mkt-header-child {
left: 50%;
margin: 0 0 0 25px;
min-width: 250px;
opacity: .8
opacity: .75;
position: absolute;
text-align: center;
top: 50%;
Expand Down
3 changes: 2 additions & 1 deletion src/media/js/elements/header.js
Expand Up @@ -110,7 +110,8 @@ define('elements/header',
if (e) {
var target = e.explicitOriginalTarget ||
document.activeElement;
if (target.getAttribute('for') == root.id) {
if (target.getAttribute &&
target.getAttribute('for') == root.id) {
// Don't trigger if blurring on toggle.
return;
}
Expand Down

0 comments on commit 5ec526b

Please sign in to comment.