Bug 900162: make bookmark panel items look like panel items, not contextmenu items. r=Gijs

This commit is contained in:
Mike de Boer 2013-10-23 17:23:26 +02:00
Родитель 74e7b064e4
Коммит 561255abd9
5 изменённых файлов: 69 добавлений и 23 удалений

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

@ -3,3 +3,7 @@
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
%include ../../shared/customizableui/panelUIOverlay.inc.css
#BMB_bookmarksPopup > menuitem[type="checkbox"] {
-moz-appearance: none !important; /* important, to override toolkit rule */
}

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

@ -1891,10 +1891,6 @@ richlistitem[type~="action"][actiontype="switchtab"][selected="true"] > .ac-url-
height: 16px;
}
#BMB_bookmarksPopup > .panel-arrowcontainer > .panel-arrowcontent {
padding: 6px;
}
#BMB_bookmarksPopup[side="top"],
#BMB_bookmarksPopup[side="bottom"] {
margin-left: -26px;
@ -1907,18 +1903,6 @@ richlistitem[type~="action"][actiontype="switchtab"][selected="true"] > .ac-url-
margin-bottom: -26px;
}
/* Native styling background is bad on arrow panels */
#BMB_bookmarksPopup > menuitem,
#BMB_bookmarksPopup > menu,
#BMB_bookmarksPopup > menuseparator {
-moz-appearance: none;
}
#BMB_bookmarksPopup > menuseparator {
border-top: 1px solid ThreeDShadow;
margin: 5px 0;
}
@media (min-resolution: 2dppx) {
#urlbar > toolbarbutton {
list-style-image: url("chrome://browser/skin/reload-stop-go@2x.png");

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

@ -64,3 +64,15 @@ toolbarpaletteitem[place="palette"] > #zoom-controls > #zoom-out-button {
toolbarbutton[cui-areatype="menu-panel"] {
margin: 0;
}
#BMB_bookmarksPopup > menu,
#BMB_bookmarksPopup > menuitem {
padding-top: 5px;
padding-bottom: 5px;
}
/* Override OSX-specific toolkit styles for the bookmarks panel */
#BMB_bookmarksPopup > menuitem > .menu-accel-container,
#BMB_bookmarksPopup > menu > .menu-right {
-moz-margin-end: 0;
}

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

@ -5,6 +5,8 @@
%filter substitution
%define menuPanelWidth 21em
%define exitSubviewGutterWidth 38px
%define buttonStateHover :not(:-moz-any([disabled],[checked],[open],:active)):hover
%define buttonStateActive :not([disabled]):-moz-any([open],[checked],:hover:active)
%include ../browser.inc
@ -291,7 +293,9 @@ toolbarpaletteitem[place="palette"] > toolbaritem > toolbarbutton {
panelview toolbarbutton,
#widget-overflow-list > toolbarbutton,
.customizationmode-button {
.customizationmode-button,
#BMB_bookmarksPopup > menu,
#BMB_bookmarksPopup > menuitem {
-moz-appearance: none;
padding: 2px 6px;
background-color: hsla(210,32%,93%,0);
@ -306,11 +310,13 @@ panelview toolbarbutton,
transition-duration: 150ms;
}
panelview toolbarbutton:not([disabled]):not([checked]):not([open]):not(:active):hover,
#widget-overflow-list > toolbarbutton:not([disabled]):not([checked]):not([open]):not(:active):hover,
panelview toolbarbutton@buttonStateHover@,
#widget-overflow-list > toolbarbutton@buttonStateHover@,
#edit-controls@inAnyPanel@ > toolbarbutton,
#zoom-controls@inAnyPanel@ > toolbarbutton,
.customizationmode-button {
.customizationmode-button,
#BMB_bookmarksPopup > menu@buttonStateHover@,
#BMB_bookmarksPopup > menuitem@buttonStateHover@ {
background-image: -moz-linear-gradient(hsla(0,0%,100%,.6), hsla(0,0%,100%,.1));
border-color: hsla(210,54%,20%,.15) hsla(210,54%,20%,.2) hsla(210,54%,20%,.25);
box-shadow: 0 1px hsla(0,0%,100%,.3) inset,
@ -318,9 +324,11 @@ panelview toolbarbutton:not([disabled]):not([checked]):not([open]):not(:active):
0 0 2px hsla(210,54%,20%,.1);
}
panelview toolbarbutton:not([disabled]):-moz-any([open],[checked],:hover:active),
panelview toolbarbutton@buttonStateActive@,
.customizationmode-button:not([disabled]):hover:active,
#widget-overflow-list > toolbarbutton:not([disabled]):-moz-any([open],[checked],:hover:active) {
#widget-overflow-list > toolbarbutton@buttonStateActive@,
#BMB_bookmarksPopup > menu@buttonStateActive@,
#BMB_bookmarksPopup > menuitem@buttonStateActive@ {
background-image: -moz-linear-gradient(hsla(0,0%,100%,.6), hsla(0,0%,100%,.1));
background-color: hsla(210,54%,20%,.15);
border-color: hsla(210,54%,20%,.3) hsla(210,54%,20%,.35) hsla(210,54%,20%,.4);
@ -332,7 +340,25 @@ panelview toolbarbutton:not([disabled]):-moz-any([open],[checked],:hover:active)
transition: none;
}
panelview toolbarseparator {
#BMB_bookmarksPopup > menu,
#BMB_bookmarksPopup > menuitem {
font: inherit;
}
#BMB_bookmarksPopup > menu:not([disabled="true"]),
#BMB_bookmarksPopup > menuitem:not([disabled="true"]) {
color: inherit;
}
#BMB_bookmarksPopup > .panel-arrowcontainer > .panel-arrowcontent > .popup-internal-box > .autorepeatbutton-up,
#BMB_bookmarksPopup > .panel-arrowcontainer > .panel-arrowcontent > .popup-internal-box > .autorepeatbutton-down {
-moz-appearance: none;
margin-top: 0;
margin-bottom: 0;
}
panelview toolbarseparator,
#BMB_bookmarksPopup > menuseparator {
-moz-appearance: none;
min-height: 0;
border-top: 1px solid ThreeDShadow;
@ -466,8 +492,13 @@ toolbarbutton.panel-multiview-anchor {
-moz-padding-start: 0px;
}
#BMB_bookmarksPopup > menuitem[checked]::before,
.PanelUI-characterEncodingView-list > toolbarbutton[current]::before {
content: "✓";
display: -moz-box;
width: 12px;
}
#BMB_bookmarksPopup > menuitem[checked] > .menu-iconic-left {
display: none;
}

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

@ -13,3 +13,18 @@
padding-left: 12px;
padding-right: 12px;
}
#BMB_bookmarksPopup > menu,
#BMB_bookmarksPopup > menuitem {
padding-top: 1px;
padding-bottom: 1px;
}
#BMB_bookmarksPopup > menu > .menu-text,
#BMB_bookmarksPopup > menuitem > .menu-text,
#BMB_bookmarksPopup > menu > .menu-iconic-text,
#BMB_bookmarksPopup > menuitem > .menu-iconic-text,
#BMB_bookmarksPopup > menuseparator {
padding-top: 0;
padding-bottom: 0;
}