/* This Source Code Form is subject to the terms of the Mozilla Public
 * License, v. 2.0. If a copy of the MPL was not distributed with this
 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */

%include ../../shared/customizableui/panelUI.inc.css

.panel-subviews {
  background-color: var(--arrowpanel-background);
}

#BMB_bookmarksPopup > menuitem[type="checkbox"] {
  -moz-appearance: none !important; /* important, to override toolkit rule */
}

#BMB_bookmarksPopup menupopup {
  -moz-appearance: none;
  background: var(--arrowpanel-background);
  color: var(--arrowpanel-color);
  border: 1px solid var(--arrowpanel-border-color);
  margin-top: -6px;
  padding-top: 1px;
}

/* Add some space at the top because there are no headers: */
#BMB_bookmarksPopup menupopup > hbox > .popup-internal-box > .arrowscrollbox-scrollbox > .scrollbox-innerbox  {
  padding-top: 4px;
}

menuitem.subviewbutton {
  -moz-appearance: none !important;
}

menu.subviewbutton > .menu-right {
  -moz-appearance: none;
  list-style-image: url(chrome://browser/skin/places/bookmarks-menu-arrow.png);
  -moz-image-region: rect(0, 16px, 16px, 0);
  width: 16px;
  height: 16px;
}

menu[disabled="true"].subviewbutton > .menu-right {
  -moz-image-region: rect(0, 32px, 16px, 16px);
}

menu.subviewbutton > .menu-right:-moz-locale-dir(rtl) {
  transform: scaleX(-1);
}

.subviewradio > .radio-label-box {
  -moz-appearance: none;
}

/*
 * #pageActionFeedbackAnimatableImage is wider than the panel, and due to a
 * bug in panels on Linux, a box-shadow appears where the image would be if
 * overflow:hidden wasn't applied. Disabling the box-shadow for this panel on
 * Linux works around this issue. This bug is on file as 1394575.
 */
#pageActionFeedback > .panel-arrowcontainer > .panel-arrowcontent {
  box-shadow: none;
}

