Bug 1501235 - Move menubar autohide code from xul.css to browser.css. r=bgrins

Differential Revision: https://phabricator.services.mozilla.com/D9499

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Dão Gottwald 2018-10-23 14:04:13 +00:00
Родитель a948347d9e
Коммит c11feff29b
4 изменённых файлов: 13 добавлений и 14 удалений

Просмотреть файл

@ -70,6 +70,18 @@ toolbar[customizable="true"] {
-moz-binding: url("chrome://browser/content/customizableui/toolbar.xml#toolbar");
}
%ifdef MENUBAR_CAN_AUTOHIDE
#toolbar-menubar[autohide="true"] {
overflow: hidden;
}
#toolbar-menubar[autohide="true"][inactive="true"]:not([customizing="true"]) {
min-height: 0 !important;
height: 0 !important;
-moz-appearance: none !important;
}
%endif
%ifdef XP_MACOSX
#toolbar-menubar {
-moz-binding: none;

Просмотреть файл

@ -282,17 +282,6 @@ toolbar[type="menubar"] {
min-height: 0 !important;
border: 0 !important;
}
%else
toolbar[type="menubar"][autohide="true"] {
overflow: hidden;
}
toolbar[type="menubar"][autohide="true"][inactive="true"]:not([customizing="true"]) {
min-height: 0 !important;
height: 0 !important;
-moz-appearance: none !important;
border-style: none !important;
}
%endif
toolbarspring {

Просмотреть файл

@ -19,7 +19,7 @@ menulist > menupopup {
}
@media (-moz-menubar-drag) {
toolbar[type="menubar"]:not([autohide="true"]) {
toolbar[type="menubar"] {
-moz-binding: url("chrome://global/content/bindings/toolbar.xml#toolbar-drag");
}
}

Просмотреть файл

@ -18,8 +18,6 @@ toolbar {
toolbar:-moz-lwtheme {
-moz-appearance: none;
background: none;
border-color: transparent;
}
toolbarseparator {