Files
firefox/browser/themes/linux/customizableui/panelUI.css
T
Gijs Kruitbosch c947c1b510 Bug 1374815 - fix sidebar hover styling and unify photon styling with the default, r=nhnt11
This consolidates the photon styles into the old pre-photon styles, simplifying the CSS.
As a result, it fixes the layout of the bookmarks menu as well. There's still some work
left to do there to make submenus align properly with their parent once opened on
Windows, but that isn't a regression caused by this bug so I am not addressing it here.

I have deliberately not updated the checkmark besides aligning it properly on OS X - it
seems we need more design details as to how that should look in the sidebar header menu
as well as the bookmarks panel before changing that further (if indeed it does need
further changes).

MozReview-Commit-ID: JPl2VwUh3e1
2017-08-21 17:37:27 +01:00

63 lines
1.8 KiB
CSS

/* 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;
}