From 04654fd5c1882e79bfd47fdee63a293ae2a95128 Mon Sep 17 00:00:00 2001 From: Gijs Kruitbosch Date: Wed, 15 Jun 2016 12:42:53 +0100 Subject: [PATCH] Bug 1280177 - fix titlebar button position in devedition, r=mstange MozReview-Commit-ID: 5lTpdW38gOL --HG-- extra : rebase_source : 0d0fede93d77fb113f2bc6d52f3a37ffe6119162 --- browser/themes/osx/devedition.css | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/browser/themes/osx/devedition.css b/browser/themes/osx/devedition.css index 09de57ce28ab..3905c24625c8 100644 --- a/browser/themes/osx/devedition.css +++ b/browser/themes/osx/devedition.css @@ -32,6 +32,16 @@ margin-top: 6px; } +/* In private windows, the #titlebar-content is higher because of the + * private browsing indicator. With the margin-top the titlebar buttons + * align to the top correctly in that case, but only if we don't stretch + * the box they're in because the container is too high, so we override + * the default alignment value (stretch). + */ +#main-window[tabsintitlebar] > #titlebar > #titlebar-content > #titlebar-buttonbox-container { + -moz-box-align: start; +} + /* Square back and forward buttons. Need !important on these because there are a lot of more specific selectors sprinkled around elsewhere for changing background / shadows for different states */