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

Commit

Permalink
tweaked noScropt button
Browse files Browse the repository at this point in the history
  • Loading branch information
Suguru Hirahara committed Nov 30, 2016
1 parent b4b60b4 commit d09c1aa
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 11 deletions.
14 changes: 8 additions & 6 deletions js/components/navigationBar.js
Original file line number Diff line number Diff line change
Expand Up @@ -192,12 +192,14 @@ class NavigationBar extends ImmutableComponent {
{
!this.showNoScriptInfo
? null
: <Button iconClass='fa-ban'
l10nId='noScriptButton'
className={cx({
'noScript': true
})}
onClick={this.onNoScript} />
: <span className='noScriptButtonContainer'>
<Button iconClass='fa-ban'
l10nId='noScriptButton'
className={cx({
'noScript': true
})}
onClick={this.onNoScript} />
</span>
}
</div>
}
Expand Down
15 changes: 10 additions & 5 deletions less/navigationBar.less
Original file line number Diff line number Diff line change
Expand Up @@ -609,6 +609,16 @@
background-size: 14px 14px;
}

.noScriptButtonContainer {
display: flex;
margin-left: 6px;

.noScript {
font-size: 16px;
color: @braveOrange;
}
}

#navigator {
.bookmarkButtons {
display: flex;
Expand Down Expand Up @@ -851,11 +861,6 @@
}
}

.noScript {
font-size: 16px;
color: @braveOrange;
}

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

0 comments on commit d09c1aa

Please sign in to comment.