diff --git a/background.html b/background.html index baccbe84..fc78138d 100644 --- a/background.html +++ b/background.html @@ -14,6 +14,9 @@
+
+ +
diff --git a/images/pencil.png b/images/pencil.png index 85cff0b9..9efbaae2 100644 Binary files a/images/pencil.png and b/images/pencil.png differ diff --git a/js/views/inbox_view.js b/js/views/inbox_view.js index 8d6ea238..2b673974 100644 --- a/js/views/inbox_view.js +++ b/js/views/inbox_view.js @@ -108,7 +108,7 @@ 'click': 'closeMenu', 'click .hamburger': 'toggleMenu', 'click .show-debug-log': 'showDebugLog', - 'click .fab': 'showCompose', + 'click .show-new-conversation': 'showCompose', 'select .gutter .contact': 'openConversation' }, openConversation: function(e, data) { diff --git a/stylesheets/_index.scss b/stylesheets/_index.scss index 3572a904..730971a1 100644 --- a/stylesheets/_index.scss +++ b/stylesheets/_index.scss @@ -22,6 +22,7 @@ width: 300px; border-right: solid 1px #ddd; .conversations { + height: calc(100% - #{$header-height}); width: 100%; } } @@ -63,6 +64,7 @@ } } +.tool-bar, .conversation-header { background: $grey_l; border-bottom: solid 1px darken($grey_l, 10%); @@ -89,26 +91,20 @@ input.search { outline: 0; } -.fab { - z-index: 1; - position: fixed; - left: 215px;; - bottom: 22px; - height: 50px; - width: 50px; - border: 0; - border-radius: (60px / 2); - outline: 0; - font: 300 36px $roboto; - color: white; - background: $blue url('/images/pencil.png') no-repeat center center; - box-shadow: 0 8px 8px -8px rgba(darken($blue, 50%), 0.8); - transition: box-shadow 0.33s, transform 0.33s, background 0.33s; +.tool-bar { + button.show-new-conversation { + float: right; + height: $header-height; + width: $header-height; + border: 0; + outline: 0; + font: 300 36px $roboto; + color: white; + background: url('/images/pencil.png') no-repeat center center; - &:hover { - background-color: darken($blue, 3%); - box-shadow: 0 8px 18px -8px rgba(darken($blue, 50%), 0.9); - transform: translate3d(0, -1px, 0); + &:hover { + background-color: darken($grey_l, 3%); + } } } diff --git a/stylesheets/manifest.css b/stylesheets/manifest.css index e6eb4ce5..8c48fee1 100644 --- a/stylesheets/manifest.css +++ b/stylesheets/manifest.css @@ -401,6 +401,7 @@ img.emoji { width: 300px; border-right: solid 1px #ddd; } .gutter .conversations { + height: calc(100% - 36px); width: 100%; } .socket-status { @@ -429,6 +430,7 @@ img.emoji { .conversation-stack .conversation:first-child { display: block; } +.tool-bar, .conversation-header { background: #f3f3f3; border-bottom: solid 1px #d9d9d9; } @@ -449,25 +451,17 @@ input.search { margin: 0; outline: 0; } -.fab { - z-index: 1; - position: fixed; - left: 215px; - bottom: 22px; - height: 50px; - width: 50px; +.tool-bar button.show-new-conversation { + float: right; + height: 36px; + width: 36px; border: 0; - border-radius: 30px; outline: 0; font: 300 36px Roboto, "Helvetica Neue", Arial, Helvetica, sans-serif; color: white; - background: #2090ea url("/images/pencil.png") no-repeat center center; - box-shadow: 0 8px 8px -8px rgba(1, 6, 10, 0.8); - transition: box-shadow 0.33s, transform 0.33s, background 0.33s; } - .fab:hover { - background-color: #1689e5; - box-shadow: 0 8px 18px -8px rgba(1, 6, 10, 0.9); - transform: translate3d(0, -1px, 0); } + background: url("/images/pencil.png") no-repeat center center; } + .tool-bar button.show-new-conversation:hover { + background-color: #ebebeb; } .last-timestamp { font-size: smaller; }