Bug 1398264 - position private browsing indicator and/or 10.9 fullscreen button to cope with the background on the toolbox, r=adw

MozReview-Commit-ID: 27neu3DHqnp

--HG--
extra : rebase_source : 3148855f78b3bd598da64b8d59587d76a0bb3c82
This commit is contained in:
Gijs Kruitbosch 2017-09-11 11:41:14 +01:00
parent 9a02daa232
commit cea42033ef
2 changed files with 11 additions and 1 deletions

View File

@ -57,7 +57,14 @@
display: none;
}
/* NB: these would be margin-inline-start/end if it wasn't for the fact that OS X
/* Making the toolbox position:relative (browser.inc.css) occludes titlebar indicators
* if the toolbox has a background. Fix this by positioning the relevant elements, too: */
#titlebar-secondary-buttonbox {
position: relative;
z-index: 1;
}
/* These would be margin-inline-start/end if it wasn't for the fact that OS X
* doesn't reverse the order of the items in the titlebar in RTL mode. */
.titlebar-placeholder[type="caption-buttons"],
#titlebar-buttonbox {

View File

@ -1099,6 +1099,9 @@ notification[value="translation"] {
#private-browsing-indicator-titlebar {
display: block;
position: absolute;
/* Need to ensure this gets positioned on top of the position:relative #navigator-toolbox
* in case the dark/light themes give that item a background. */
z-index: 1;
}
#main-window[privatebrowsingmode=temporary][tabsintitlebar] #private-browsing-indicator-titlebar > .private-browsing-indicator {