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

Commit

Permalink
Lighter syncfolder btn in nav
Browse files Browse the repository at this point in the history
  • Loading branch information
pfrazee committed Oct 22, 2018
1 parent 3080eb9 commit 2b4b0e1
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 23 deletions.
2 changes: 1 addition & 1 deletion app/shell-window/ui/navbar.js
Original file line number Diff line number Diff line change
Expand Up @@ -410,10 +410,10 @@ function render (id, page) {
${inpageFinder}
${zoomBtn}
${!isLocationHighlighted ? [
datBtns,
syncfolderMenuNavbarBtn.render(),
liveReloadBtn,
donateBtn,
datBtns,
page ? page.datsiteMenuNavbarBtn.render() : undefined,
pageMenuNavbarBtn.render(),
bookmarkMenuNavbarBtn.render()
Expand Down
2 changes: 1 addition & 1 deletion app/shell-window/ui/navbar/syncfolder-menu.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ export class SyncfolderMenuNavbarBtn {
// render btn
return yo`
<div class="toolbar-dropdown-menu syncfolder-dropdown-menu">
<button class="btn nofocus ${this.isDropdownOpen ? 'pressed' : ''}" onclick=${e => this.onClickBtn(e)} title="Menu">
<button class="callout light ${this.isDropdownOpen ? 'pressed' : ''}" onclick=${e => this.onClickBtn(e)} title="Menu">
<span>${localSyncPath}</span>
<span class="fa fa-caret-down"></span>
</button>
Expand Down
23 changes: 2 additions & 21 deletions app/stylesheets/shell-window/toolbar-dropdown.less
Original file line number Diff line number Diff line change
Expand Up @@ -115,27 +115,8 @@
}
}

.syncfolder-dropdown-menu {
margin-right: 4px;

.btn {
height: 20px;
line-height: 20px;
font-size: 12.5px;
padding: 0 6px;
background: @lime;
color: rgba(0,0,0,0.5);
border-color: #fff;

&:hover,
&.pressed {
background: darken(@lime, 10%);
}

&.preview {
background: #E3F2FD;
}
}
.toolbar-input-group .syncfolder-dropdown-menu {
margin-left: 2px;

.toolbar-dropdown {
margin: 0;
Expand Down
5 changes: 5 additions & 0 deletions app/stylesheets/shell-window/toolbar-input-group.less
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,11 @@
background: @background-button--active;
margin: 2px;
border-radius: 2px;
line-height: 1.2;

&.light {
background: #fff;
}

&:hover {
background: @background-button--gray;
Expand Down

0 comments on commit 2b4b0e1

Please sign in to comment.