# HG changeset patch
# User t_mrc-ct@users.osdn.jp
# Date 1438597345 -32400
#      Mon Aug 03 19:22:25 2015 +0900
# Branch THUNDERBIRD3880_2016050308_RELBRANCH
# Node ID 00af99767f2f1ab2ce4dd06abdb4e9421789c164
# Parent  113dfd36725ead193b03d1271d4f9d1f83dfe344
optimize tabbar buttons position

diff --git a/mail/themes/osx/mail/messenger.css b/mail/themes/osx/mail/messenger.css
--- a/mail/themes/osx/mail/messenger.css
+++ b/mail/themes/osx/mail/messenger.css
@@ -163,20 +163,33 @@
 }
 
 /* ::::: Tabs in Titlebar :::::: */
 
 #messengerWindow[tabsintitlebar="true"]:not(:-moz-lwtheme) > #titlebar {
   -moz-appearance: -moz-window-titlebar;
 }
 
+#messengerWindow[tabsintitlebar="true"] #tabbar-toolbar {
+  -moz-margin-end : 1px;
+}
+
+#messengerWindow[tabsintitlebar="true"] > #navigation-toolbox >
+  #tabs-toolbar > #alltabs-button {
+  margin-top: 10px;
+}
+
+#messengerWindow[tabsintitlebar="true"] #tabcontainer:not([overflow="true"]) ~
+  #alltabs-button {
+  visibility: hidden;
+}
+
 /* We modify the .tabs-alltabs-button to make it seem like a titlebar button */
 #messengerWindow[tabsintitlebar="true"]:not([sizemode="fullscreen"]) >
   #navigation-toolbox > #tabs-toolbar  > .tabs-alltabs-button {
-  margin-bottom: 8px;
   opacity: .8;
 }
 
 #messengerWindow[tabsintitlebar="true"]:not([sizemode="fullscreen"]) >
   #navigation-toolbox > #tabs-toolbar  > .tabs-alltabs-button:hover {
   opacity: 1;
 }
 
