Bug 987586 - flex and wrap customization footer, r=jaws, ui-r=phlsa

--HG--
extra : rebase_source : 7bc03a130bdadaeb61854d3e199d285e37e56b80
This commit is contained in:
Gijs Kruitbosch 2014-07-02 10:30:46 +01:00
parent 44bf3127d8
commit b39bea76c3
4 changed files with 35 additions and 15 deletions

View File

@ -1041,12 +1041,29 @@ toolbarpaletteitem[dragover] {
border-right-color: transparent;
}
#customization-palette-container {
display: flex;
flex-direction: column;
}
#customization-palette:not([hidden]) {
display: block;
flex: 1 1 auto;
overflow: auto;
min-height: 3em;
}
#customization-footer-spacer,
#customization-spacer {
flex: 1 1 auto;
}
#customization-footer {
display: flex;
flex-shrink: 0;
flex-wrap: wrap;
}
#customization-toolbar-visibility-button > .box-inherit > .button-menu-dropmarker {
display: -moz-box;
}

View File

@ -16,8 +16,8 @@
&customizeMode.menuAndToolbars.emptyLink;
</label>
</hbox>
<vbox id="customization-palette" class="customization-palette" flex="1"/>
<spacer id="customization-spacer" flex="1"/>
<vbox id="customization-palette" class="customization-palette"/>
<spacer id="customization-spacer"/>
<hbox id="customization-footer">
#ifdef CAN_DRAW_IN_TITLEBAR
<button id="customization-titlebar-visibility-button" class="customizationmode-button"
@ -29,13 +29,16 @@
<button id="customization-toolbar-visibility-button" label="&customizeMode.toolbars;" class="customizationmode-button" type="menu">
<menupopup id="customization-toolbar-menu" onpopupshowing="onViewToolbarsPopupShowing(event)"/>
</button>
<spacer flex="1"/>
<spacer id="customization-footer-spacer"/>
<button id="customization-undo-reset-button"
class="customizationmode-button"
hidden="true"
oncommand="gCustomizeMode.undoReset();"
label="&undoCmd.label;"/>
<button id="customization-reset-button" oncommand="gCustomizeMode.reset();" label="&customizeMode.restoreDefaults;" class="customizationmode-button"/>
<button id="customization-reset-button"
oncommand="gCustomizeMode.reset();"
label="&customizeMode.restoreDefaults;"
class="customizationmode-button"/>
</hbox>
</vbox>
<vbox id="customization-panel-container">

View File

@ -4426,10 +4426,6 @@ window > chatbox {
-moz-image-region: rect(0, 96px, 48px, 48px);
}
#customization-titlebar-visibility-button > .button-box > .button-icon {
width: 24px;
}
.customization-tipPanel-infoBox {
background-image: url(chrome://browser/skin/customizableui/info-icon-customizeTip@2x.png);
background-size: 25px 25px;

View File

@ -114,13 +114,13 @@
#customization-footer {
border-top: 1px solid rgb(221,221,221);
padding: 15px;
padding: 10px;
}
.customizationmode-button {
border: 1px solid rgb(192,192,192);
border-radius: 3px;
margin: 0;
margin: 5px;
padding: 2px 12px;
background-color: rgb(251,251,251);
color: rgb(71,71,71);
@ -133,11 +133,15 @@
opacity: .5;
}
.customizationmode-button > .box-inherit > .box-inherit > .button-icon,
.customizationmode-button > .button-box > .button-icon {
height: 24px;
}
#customization-titlebar-visibility-button {
list-style-image: url("chrome://browser/skin/customizableui/customize-titleBar-toggle.png");
-moz-image-region: rect(0, 24px, 24px, 0);
padding: 2px 7px;
-moz-margin-end: 10px;
}
#customization-titlebar-visibility-button > .button-box > .button-text {
@ -145,6 +149,10 @@
-moz-margin-start: 6px !important;
}
#customization-titlebar-visibility-button > .button-box > .button-icon {
vertical-align: middle;
}
#customization-titlebar-visibility-button[checked] {
-moz-image-region: rect(0, 48px, 24px, 24px);
background-color: rgb(218, 218, 218);
@ -154,10 +162,6 @@
inset 0 1px rgb(196, 196, 196);
}
#customization-undo-reset-button {
-moz-margin-end: 10px;
}
#main-window[customize-entered] #customization-panel-container {
background-image: url("chrome://browser/skin/customizableui/customizeMode-separatorHorizontal.png"),
url("chrome://browser/skin/customizableui/customizeMode-separatorVertical.png"),