Bug 924388 - There should be small separators between the sub-edit controls and sub-zoom controls when each controls is placed in a toolbar. r=gijs

This commit is contained in:
Jared Wein 2013-10-08 17:45:07 -04:00
Родитель 2edda04fc0
Коммит 1c499b70aa
4 изменённых файлов: 9 добавлений и 8 удалений

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

@ -812,7 +812,7 @@
command="Social:SharePage"/>
<toolbaritem id="social-toolbar-item"
class="chromeclass-toolbar-additional"
class="chromeclass-toolbar-additional toolbaritem-with-separator"
removable="false"
title="&socialToolbar.title;"
hidden="true"

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

@ -277,6 +277,7 @@ const CustomizableWidgets = [{
// Set this as an attribute in addition to the property to make sure we can style correctly.
node.setAttribute("removable", "true");
node.classList.add("chromeclass-toolbar-additional");
node.classList.add("toolbaritem-combined-buttons");
node.classList.add(kWidePanelItemClass);
buttons.forEach(function(aButton) {
@ -424,6 +425,7 @@ const CustomizableWidgets = [{
// Set this as an attribute in addition to the property to make sure we can style correctly.
node.setAttribute("removable", "true");
node.classList.add("chromeclass-toolbar-additional");
node.classList.add("toolbaritem-combined-buttons");
node.classList.add(kWidePanelItemClass);
buttons.forEach(function(aButton) {

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

@ -393,12 +393,10 @@ toolbarbutton.bookmark-item > menupopup {
/**
* Draw seperators before toolbar button dropmarkers, as well as between
* consecutive toolbarbutton-1's within a toolbaritem. We special-case
* the urlbar-container, since the back and forward buttons certainly do
* not need a separator between them.
* consecutive toolbarbutton-1's within a toolbaritem.
*/
#nav-bar .toolbarbutton-1 > .toolbarbutton-menubutton-dropmarker::before,
#nav-bar toolbaritem:not(#urlbar-container) > .toolbarbutton-1 + .toolbarbutton-1::before {
#nav-bar .toolbaritem-combined-buttons > .toolbarbutton-1 + .toolbarbutton-1::before {
content: "";
display: -moz-box;
position: absolute;

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

@ -429,18 +429,19 @@ menuitem.bookmark-item {
padding: 8px 5px 7px;
}
#nav-bar #social-toolbar-item {
#nav-bar .toolbaritem-combined-buttons {
margin-left: 2px;
margin-right: 2px;
}
#nav-bar #social-toolbar-item > .toolbarbutton-1 {
#nav-bar .toolbaritem-combined-buttons > .toolbarbutton-1 {
padding-left: 0;
padding-right: 0;
}
#nav-bar .toolbarbutton-1:not(:hover):not(:active):not([open]) > .toolbarbutton-menubutton-dropmarker::before,
#nav-bar #social-toolbar-item > .toolbarbutton-1:not(:hover):not(:active):not([open]) + .toolbarbutton-1:not(:hover):not(:active):not([open])::before {
#nav-bar .toolbaritem-combined-buttons > .toolbarbutton-1:not([open]) + .toolbarbutton-1:not(:hover):not(:active):not([open])::before,
#nav-bar .toolbaritem-combined-buttons > .toolbarbutton-1[disabled]:not(:active):not([open]) + .toolbarbutton-1[disabled]:not(:active):not([open])::before {
content: "";
display: -moz-box;
width: 1px;