Skip to content
This repository has been archived by the owner on Dec 11, 2019. It is now read-only.

Commit

Permalink
Prevented properties of "#navigator input" from being applied to ".bo…
Browse files Browse the repository at this point in the history
…okmarkForm input"

Auditors: @bbondy

Test Plan:
  • Loading branch information
Suguru Hirahara committed Dec 6, 2016
1 parent 94be03e commit 19360c1
Showing 1 changed file with 68 additions and 66 deletions.
134 changes: 68 additions & 66 deletions less/navigationBar.less
Original file line number Diff line number Diff line change
Expand Up @@ -817,87 +817,89 @@
text-overflow: ellipsis;
}

.loadTime {
color: @loadTimeColor;
background: @navigationBarBackground;
font-size: 12px;
right: 10px;
text-align: right;
margin: 2px 0 0 0;
top: 9px;
cursor: default;
padding-top: 1px;
.urlbarForm {
.loadTime {
color: @loadTimeColor;
background: @navigationBarBackground;
font-size: 12px;
right: 10px;
text-align: right;
margin: 2px 0 0 0;
top: 9px;
cursor: default;
padding-top: 1px;

&.onFocus {
display: none;
&.onFocus {
display: none;
}
}
}

/* Disable selection of button text */
> span {
-webkit-user-select: none;
}
/* Disable selection of button text */
> span {
-webkit-user-select: none;
}

> * {
-webkit-app-region: no-drag;
}
> * {
-webkit-app-region: no-drag;
}

.inputbar-wrapper {
background: white;
display: flex;
flex: 1 1 0;
border-radius: 4px;
align-items: center;
justify-content: center;
}
.inputbar-wrapper {
background: white;
display: flex;
flex: 1 1 0;
border-radius: 4px;
align-items: center;
justify-content: center;
}

input {
background: @navigationBarBackground;
border: none;
box-sizing: border-box;
color: @chromeText;
cursor: text;
font-size: @defaultFontSize;
font-weight: normal;
margin: 2px 0 0 3px;
outline: none;
text-overflow: ellipsis;
flex-grow: 1;
min-width: 0%; // allow the navigator to shrink
input {
background: @navigationBarBackground;
border: none;
box-sizing: border-box;
color: @chromeText;
cursor: text;
font-size: @defaultFontSize;
font-weight: normal;
margin: 2px 0 0 3px;
outline: none;
text-overflow: ellipsis;
flex-grow: 1;
min-width: 0%; // allow the navigator to shrink

&:hover {
background: @chromeControlsBackground2;
}
&:hover {
background: @chromeControlsBackground2;
}


&.private {
background: @privateTabBackground;
color: @chromeText;
&.private {
background: @privateTabBackground;
color: @chromeText;
}
}
}

.urlbarIcon {
color: @siteSecureColor;
left: 14px;
margin-top: 1px;
font-size: 13px;
min-height: 10px;
min-width: 16px;

&.fa-lock,
&.fa-unlock {
margin-top: 2px;
font-size: 15px;
.urlbarIcon {
color: @siteSecureColor;
left: 14px;
margin-top: 1px;
font-size: 13px;
min-height: 10px;
min-width: 16px;
}

&.fa-unlock {
color: @siteInsecureColor;
}
&.fa-lock,
&.fa-unlock {
margin-top: 1px;
font-size: 16px;
min-height: 10px;
min-width: 16px;
}

&.fa-unlock {
color: @siteInsecureColor;
}

&.extendedValidation {
color: @siteEVColor;
&.extendedValidation {
color: @siteEVColor;
}
}
}
}
Expand Down

2 comments on commit 19360c1

@bbondy
Copy link
Member

@bbondy bbondy commented on 19360c1 Dec 11, 2016

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

++ but for future changes pls always post an issue. It is used to generate ideas for areas to test. Thanks!

@luixxiul
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

Please sign in to comment.