Bug 971956 - fix styling of items in widget overflow list, r=mconley

--HG--
extra : rebase_source : 972f12d649e973b820b2bd679728c435bf1908ad
This commit is contained in:
Gijs Kruitbosch 2014-03-05 16:58:27 -05:00
parent c2c4bb1df1
commit b07ebeeeb6
6 changed files with 22 additions and 10 deletions

View File

@ -925,7 +925,6 @@ let PlacesToolbarHelper = {
} else {
placeholder.removeAttribute("wrap");
}
placeholder.classList.toggle("toolbarbutton-1", shouldWrapNow);
this._shouldWrap = shouldWrapNow;
}
},

View File

@ -937,6 +937,7 @@
cui-areatype="toolbar"
removable="true">
<toolbarbutton id="bookmarks-toolbar-placeholder"
class="toolbarbutton-1"
mousethrough="never"
label="&bookmarksToolbarItem.label;"
oncommand="PlacesToolbarHelper.onPlaceholderCommand();"/>

View File

@ -81,7 +81,7 @@
/* Places toolbar */
toolbarbutton.bookmark-item,
#personal-bookmarks[cui-areatype="toolbar"] > #bookmarks-toolbar-placeholder {
#personal-bookmarks[cui-areatype="toolbar"]:not([overflowedItem=true]) > #bookmarks-toolbar-placeholder {
margin: 0;
padding: 2px 3px;
}

View File

@ -160,7 +160,7 @@ toolbarbutton.chevron:-moz-locale-dir(rtl) > .toolbarbutton-icon {
/* ----- BOOKMARK BUTTONS ----- */
toolbarbutton.bookmark-item:not(.subviewbutton):not(#bookmarks-menu-button),
#personal-bookmarks[cui-areatype="toolbar"] > #bookmarks-toolbar-placeholder {
#personal-bookmarks[cui-areatype="toolbar"]:not([overflowedItem=true]) > #bookmarks-toolbar-placeholder {
font-weight: bold;
color: #222;
border: 0;
@ -169,6 +169,10 @@ toolbarbutton.bookmark-item:not(.subviewbutton):not(#bookmarks-menu-button),
margin: 0 0 1px;
}
#personal-bookmarks[cui-areatype="toolbar"]:not([overflowedItem=true]) > #bookmarks-toolbar-placeholder {
-moz-box-orient: horizontal;
}
.bookmark-item > .toolbarbutton-menu-dropmarker {
list-style-image: url("chrome://browser/skin/places/folderDropArrow.png");
-moz-image-region: rect(0, 7px, 5px, 0);
@ -237,7 +241,7 @@ toolbarbutton.bookmark-item > menupopup {
.bookmark-item > .toolbarbutton-icon[label]:not([label=""]),
.bookmark-item > .toolbarbutton-icon[type="menu"],
#personal-bookmarks[cui-areatype="toolbar"] > #bookmarks-toolbar-placeholder > .toolbarbutton-icon[label]:not([label=""]) {
#personal-bookmarks[cui-areatype="toolbar"]:not([overflowedItem=true]) > #bookmarks-toolbar-placeholder > .toolbarbutton-icon[label]:not([label=""]) {
-moz-margin-end: 5px;
}

View File

@ -331,6 +331,14 @@ toolbarpaletteitem[place="palette"] > toolbaritem > toolbarbutton {
-moz-box-flex: 1;
}
#personal-bookmarks[overflowedItem=true] > #bookmarks-toolbar-placeholder {
-moz-box-flex: 1;
}
#personal-bookmarks[cui-areatype="toolbar"][overflowedItem=true] > #bookmarks-toolbar-placeholder > .toolbarbutton-icon {
-moz-margin-end: 2px;
}
#edit-controls@inAnyPanel@ > #copy-button,
#zoom-controls@inAnyPanel@ > #zoom-reset-button {
border-left: none;
@ -848,7 +856,7 @@ toolbarpaletteitem[place="palette"] > #search-container {
}
toolbaritem[overflowedItem=true],
toolbarbutton[overflowedItem=true] {
.widget-overflow-list .toolbarbutton-1 {
width: 100%;
max-width: @menuPanelWidth@;
min-height: 36px;
@ -856,14 +864,14 @@ toolbarbutton[overflowedItem=true] {
background-position: 0 center;
}
#widget-overflow-list > toolbarbutton,
#widget-overflow-list > toolbarbutton > toolbarbutton {
.widget-overflow-list .toolbarbutton-1,
.widget-overflow-list .toolbarbutton-1 > .toolbarbutton-menubutton-button {
-moz-box-align: center;
-moz-box-orient: horizontal;
}
#widget-overflow-list > toolbarbutton > .toolbarbutton-text,
#widget-overflow-list > #bookmarks-menu-button > toolbarbutton > .toolbarbutton-text {
.widget-overflow-list .toolbarbutton-1 > .toolbarbutton-text,
.widget-overflow-list .toolbarbutton-1 > .toolbarbutton-menubutton-button > .toolbarbutton-text {
text-align: start;
-moz-padding-start: .5em;
}

View File

@ -287,7 +287,7 @@
/* ::::: bookmark buttons ::::: */
toolbarbutton.bookmark-item,
#personal-bookmarks[cui-areatype="toolbar"] > #bookmarks-toolbar-placeholder {
#personal-bookmarks[cui-areatype="toolbar"]:not([overflowedItem=true]) > #bookmarks-toolbar-placeholder {
margin: 0;
padding: 2px 3px;
}