mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 869543: move findbar to the top. r=dao
This commit is contained in:
parent
0dcea61e3d
commit
66757c1a9a
@ -158,7 +158,8 @@
|
||||
let findBar = document.createElementNS(this.namespaceURI, "findbar");
|
||||
let browser = this.getBrowserForTab(aTab);
|
||||
let browserContainer = this.getBrowserContainer(browser);
|
||||
browserContainer.appendChild(findBar);
|
||||
findBar.setAttribute("position", "top");
|
||||
browserContainer.insertBefore(findBar, browserContainer.firstChild);
|
||||
|
||||
// Force a style flush to ensure that our binding is attached.
|
||||
findBar.clientTop;
|
||||
|
@ -2139,7 +2139,7 @@ sidebarheader > .tabs-closebutton > .toolbarbutton-text {
|
||||
|
||||
.browserContainer > findbar {
|
||||
background: @scopeBarBackground@;
|
||||
border-top: @scopeBarSeparatorBorder@;
|
||||
border-bottom: @scopeBarSeparatorBorder@;
|
||||
color: -moz-DialogText;
|
||||
text-shadow: none;
|
||||
}
|
||||
|
@ -207,10 +207,9 @@
|
||||
</toolbox>
|
||||
|
||||
<vbox id="appcontent" flex="1">
|
||||
|
||||
<findbar id="FindToolbar" browserid="content" position="top"/>
|
||||
<browser id="content" type="content-primary" name="content" src="about:blank" flex="1"
|
||||
context="viewSourceContextMenu" showcaret="true" tooltip="aHTMLTooltip"/>
|
||||
<findbar id="FindToolbar" browserid="content"/>
|
||||
</vbox>
|
||||
|
||||
<statusbar id="status-bar" class="chromeclass-status">
|
||||
|
@ -14,6 +14,12 @@ findbar {
|
||||
transition-timing-function: ease-in-out, ease-in-out, linear;
|
||||
}
|
||||
|
||||
findbar[position="top"] {
|
||||
border-top-style: none;
|
||||
border-bottom: 1px solid ThreeDShadow;
|
||||
transition-property: margin-top, opacity, visibility;
|
||||
}
|
||||
|
||||
findbar[hidden] {
|
||||
/* Override display:none to make the transition work. */
|
||||
display: -moz-box;
|
||||
@ -23,6 +29,11 @@ findbar[hidden] {
|
||||
transition-delay: 0s, 0s, 150ms;
|
||||
}
|
||||
|
||||
findbar[position="top"][hidden] {
|
||||
margin-bottom: auto;
|
||||
margin-top: -1em;
|
||||
}
|
||||
|
||||
.findbar-closebutton {
|
||||
-moz-margin-start: 4px;
|
||||
list-style-image: url("moz-icon://stock/gtk-close?size=menu");
|
||||
|
@ -15,6 +15,12 @@ findbar {
|
||||
transition-timing-function: ease-in-out, ease-in-out, linear;
|
||||
}
|
||||
|
||||
findbar[position="top"] {
|
||||
border-top: none;
|
||||
border-bottom: @scopeBarSeparatorBorder@;
|
||||
transition-property: margin-top, opacity, visibility;
|
||||
}
|
||||
|
||||
findbar[hidden] {
|
||||
/* Override display:none to make the transition work. */
|
||||
display: -moz-box;
|
||||
@ -24,6 +30,11 @@ findbar[hidden] {
|
||||
transition-delay: 0s, 0s, 150ms;
|
||||
}
|
||||
|
||||
findbar[position="top"][hidden] {
|
||||
margin-bottom: auto;
|
||||
margin-top: -1em;
|
||||
}
|
||||
|
||||
findbar:-moz-lwtheme {
|
||||
-moz-appearance: none;
|
||||
background: none;
|
||||
|
@ -16,6 +16,11 @@ findbar {
|
||||
transition-timing-function: ease-in-out, ease-in-out, linear;
|
||||
}
|
||||
|
||||
findbar[position="top"] {
|
||||
box-shadow: 0 -1px 1px rgba(0,0,0,.1) inset;
|
||||
transition-property: margin-top, opacity, visibility;
|
||||
}
|
||||
|
||||
findbar[hidden] {
|
||||
/* Override display:none to make the transition work. */
|
||||
display: -moz-box;
|
||||
@ -25,6 +30,11 @@ findbar[hidden] {
|
||||
transition-delay: 0s, 0s, 150ms;
|
||||
}
|
||||
|
||||
findbar[position="top"][hidden] {
|
||||
margin-bottom: auto;
|
||||
margin-top: -1em;
|
||||
}
|
||||
|
||||
.findbar-closebutton {
|
||||
-moz-margin-start: 4px;
|
||||
border: none;
|
||||
|
Loading…
Reference in New Issue
Block a user