Bug 1391395 - Consolidate Go button styling. r=daleharvey
MozReview-Commit-ID: 4WLQemuir4k --HG-- extra : rebase_source : 0a2272e5db394bb5461a542b92ea3982a9157836
|
@ -41,8 +41,8 @@ file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
|||
allowevents="true"
|
||||
inputmode="url"
|
||||
xbl:inherits="tooltiptext=inputtooltiptext,value,maxlength,disabled,size,readonly,placeholder,tabindex,accesskey,focused,textoverflow"/>
|
||||
<xul:image anonid="go-button"
|
||||
class="urlbar-go-button"
|
||||
<xul:image anonid="urlbar-go-button"
|
||||
class="urlbar-go-button urlbar-icon"
|
||||
onclick="gURLBar.handleCommand(event);"
|
||||
tooltiptext="&goEndCap.tooltip;"
|
||||
xbl:inherits="pageproxystate,parentfocused=focused"/>
|
||||
|
@ -159,7 +159,7 @@ file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
|||
]]></destructor>
|
||||
|
||||
<field name="goButton">
|
||||
document.getAnonymousElementByAttribute(this, "anonid", "go-button");
|
||||
document.getAnonymousElementByAttribute(this, "anonid", "urlbar-go-button");
|
||||
</field>
|
||||
|
||||
<field name="_value">""</field>
|
||||
|
|
|
@ -59,7 +59,7 @@
|
|||
</xul:hbox>
|
||||
</xul:box>
|
||||
<xul:hbox class="search-go-container">
|
||||
<xul:image class="search-go-button" hidden="true"
|
||||
<xul:image class="search-go-button urlbar-icon" hidden="true"
|
||||
anonid="search-go-button"
|
||||
onclick="handleSearchCommand(event);"
|
||||
tooltiptext="&contentSearchSubmit.tooltip;"/>
|
||||
|
|
|
@ -23,8 +23,6 @@ browser.jar:
|
|||
skin/classic/browser/pageInfo.png
|
||||
skin/classic/browser/page-livemarks.png
|
||||
skin/classic/browser/privatebrowsing-mask.png
|
||||
skin/classic/browser/reload-stop-go.png
|
||||
skin/classic/browser/reload-stop-go@2x.png
|
||||
skin/classic/browser/searchbar.css
|
||||
skin/classic/browser/setDesktopBackground.css
|
||||
skin/classic/browser/slowStartup-16.png
|
||||
|
|
Двоичные данные
browser/themes/linux/reload-stop-go.png
До Ширина: | Высота: | Размер: 1.9 KiB |
Двоичные данные
browser/themes/linux/reload-stop-go@2x.png
До Ширина: | Высота: | Размер: 3.6 KiB |
|
@ -10,7 +10,6 @@
|
|||
margin: 0;
|
||||
}
|
||||
|
||||
/* Engine button */
|
||||
.searchbar-engine-image {
|
||||
height: 16px;
|
||||
width: 16px;
|
||||
|
@ -18,30 +17,10 @@
|
|||
margin-inline-start: -1px;
|
||||
}
|
||||
|
||||
/* Search go button */
|
||||
.search-go-container {
|
||||
-moz-box-align: center;
|
||||
}
|
||||
|
||||
.search-go-button {
|
||||
padding: 1px;
|
||||
list-style-image: url("chrome://browser/skin/reload-stop-go.png");
|
||||
-moz-image-region: rect(0, 42px, 14px, 28px);
|
||||
width: 14px;
|
||||
}
|
||||
|
||||
.search-go-button:hover {
|
||||
-moz-image-region: rect(14px, 42px, 28px, 28px);
|
||||
}
|
||||
|
||||
.search-go-button:hover:active {
|
||||
-moz-image-region: rect(28px, 42px, 42px, 28px);
|
||||
}
|
||||
|
||||
.search-go-button:-moz-locale-dir(rtl) {
|
||||
transform: scaleX(-1);
|
||||
}
|
||||
|
||||
menuitem[cmd="cmd_clearhistory"] {
|
||||
list-style-image: url("moz-icon://stock/gtk-clear?size=menu");
|
||||
}
|
||||
|
@ -92,19 +71,6 @@ menuitem[cmd="cmd_clearhistory"][disabled] {
|
|||
.searchbar-search-button:hover:active {
|
||||
-moz-image-region: rect(0, 120px, 40px, 80px);
|
||||
}
|
||||
|
||||
.search-go-button {
|
||||
list-style-image: url("chrome://browser/skin/reload-stop-go@2x.png");
|
||||
-moz-image-region: rect(0, 84px, 28px, 56px);
|
||||
}
|
||||
|
||||
.search-go-button:hover {
|
||||
-moz-image-region: rect(28px, 84px, 56px, 56px);
|
||||
}
|
||||
|
||||
.search-go-button:hover:active {
|
||||
-moz-image-region: rect(56px, 84px, 84px, 56px);
|
||||
}
|
||||
}
|
||||
|
||||
.search-panel-current-engine {
|
||||
|
|
|
@ -31,8 +31,6 @@ browser.jar:
|
|||
skin/classic/browser/privatebrowsing-mask@2x.png
|
||||
skin/classic/browser/privatebrowsing-mask-short.png
|
||||
skin/classic/browser/privatebrowsing-mask-short@2x.png
|
||||
skin/classic/browser/reload-stop-go.png
|
||||
skin/classic/browser/reload-stop-go@2x.png
|
||||
skin/classic/browser/searchbar.css
|
||||
skin/classic/browser/slowStartup-16.png
|
||||
skin/classic/browser/toolbarbutton-dropmarker.png
|
||||
|
@ -92,8 +90,6 @@ browser.jar:
|
|||
skin/classic/browser/yosemite/menuPanel-exit@2x.png (menuPanel-exit-yosemite@2x.png)
|
||||
skin/classic/browser/yosemite/menuPanel-help.png (menuPanel-help-yosemite.png)
|
||||
skin/classic/browser/yosemite/menuPanel-help@2x.png (menuPanel-help-yosemite@2x.png)
|
||||
skin/classic/browser/yosemite/reload-stop-go.png (reload-stop-go-yosemite.png)
|
||||
skin/classic/browser/yosemite/reload-stop-go@2x.png (reload-stop-go-yosemite@2x.png)
|
||||
#ifdef E10S_TESTING_ONLY
|
||||
skin/classic/browser/e10s-64@2x.png (../shared/e10s-64@2x.png)
|
||||
#endif
|
||||
|
@ -111,5 +107,3 @@ browser.jar:
|
|||
% override chrome://browser/skin/menuPanel-exit@2x.png chrome://browser/skin/yosemite/menuPanel-exit@2x.png os=Darwin osversion>=10.10
|
||||
% override chrome://browser/skin/menuPanel-help.png chrome://browser/skin/yosemite/menuPanel-help.png os=Darwin osversion>=10.10
|
||||
% override chrome://browser/skin/menuPanel-help@2x.png chrome://browser/skin/yosemite/menuPanel-help@2x.png os=Darwin osversion>=10.10
|
||||
% override chrome://browser/skin/reload-stop-go.png chrome://browser/skin/yosemite/reload-stop-go.png os=Darwin osversion>=10.10
|
||||
% override chrome://browser/skin/reload-stop-go@2x.png chrome://browser/skin/yosemite/reload-stop-go@2x.png os=Darwin osversion>=10.10
|
||||
|
|
Двоичные данные
browser/themes/osx/reload-stop-go-yosemite.png
До Ширина: | Высота: | Размер: 923 B |
Двоичные данные
browser/themes/osx/reload-stop-go-yosemite@2x.png
До Ширина: | Высота: | Размер: 1.6 KiB |
Двоичные данные
browser/themes/osx/reload-stop-go.png
До Ширина: | Высота: | Размер: 912 B |
Двоичные данные
browser/themes/osx/reload-stop-go@2x.png
До Ширина: | Высота: | Размер: 1.8 KiB |
|
@ -23,28 +23,11 @@
|
|||
list-style-image: url("chrome://mozapps/skin/places/defaultFavicon.svg");
|
||||
}
|
||||
|
||||
.search-go-container {
|
||||
-moz-box-align: center;
|
||||
padding-inline-end: 6px;
|
||||
}
|
||||
|
||||
.search-go-container,
|
||||
.searchbar-search-button-container {
|
||||
-moz-box-align: center;
|
||||
}
|
||||
|
||||
.search-go-button {
|
||||
list-style-image: url("chrome://browser/skin/reload-stop-go.png");
|
||||
-moz-image-region: rect(0, 42px, 14px, 28px);
|
||||
}
|
||||
|
||||
.search-go-button:hover:active {
|
||||
-moz-image-region: rect(14px, 42px, 28px, 28px);
|
||||
}
|
||||
|
||||
.search-go-button:-moz-locale-dir(rtl) {
|
||||
transform: scaleX(-1);
|
||||
}
|
||||
|
||||
.searchbar-search-button {
|
||||
list-style-image: url("chrome://browser/skin/search-indicator.png");
|
||||
-moz-image-region: rect(0, 20px, 20px, 0);
|
||||
|
@ -65,18 +48,6 @@
|
|||
}
|
||||
|
||||
@media (min-resolution: 2dppx) {
|
||||
.search-go-button {
|
||||
list-style-image: url("chrome://browser/skin/reload-stop-go@2x.png");
|
||||
-moz-image-region: rect(0, 84px, 28px, 56px);
|
||||
width: 14px;
|
||||
}
|
||||
|
||||
.search-go-button:hover:active {
|
||||
list-style-image: url("chrome://browser/skin/reload-stop-go@2x.png");
|
||||
-moz-image-region: rect(28px, 84px, 56px, 56px);
|
||||
width: 14px;
|
||||
}
|
||||
|
||||
.searchbar-search-button {
|
||||
list-style-image: url("chrome://browser/skin/search-indicator@2x.png");
|
||||
width: 20px;
|
||||
|
|
|
@ -55,40 +55,3 @@
|
|||
padding-bottom: 0;
|
||||
}
|
||||
|
||||
/* Go button */
|
||||
.urlbar-go-button {
|
||||
padding: 0 3px;
|
||||
list-style-image: url("chrome://browser/skin/reload-stop-go.png");
|
||||
}
|
||||
|
||||
.urlbar-go-button {
|
||||
-moz-image-region: rect(0, 42px, 14px, 28px);
|
||||
}
|
||||
|
||||
.urlbar-go-button:hover {
|
||||
-moz-image-region: rect(14px, 42px, 28px, 28px);
|
||||
}
|
||||
|
||||
.urlbar-go-button:hover:active {
|
||||
-moz-image-region: rect(28px, 42px, 42px, 28px);
|
||||
}
|
||||
|
||||
.urlbar-go-button:-moz-locale-dir(rtl) {
|
||||
transform: scaleX(-1);
|
||||
}
|
||||
|
||||
@media (min-resolution: 1.1dppx) {
|
||||
.urlbar-go-button {
|
||||
list-style-image: url("chrome://browser/skin/reload-stop-go@2x.png");
|
||||
-moz-image-region: rect(0, 84px, 28px, 56px);
|
||||
width: 20px;
|
||||
}
|
||||
|
||||
.urlbar-go-button:hover {
|
||||
-moz-image-region: rect(28px, 84px, 56px, 56px);
|
||||
}
|
||||
|
||||
.urlbar-go-button:hover:active {
|
||||
-moz-image-region: rect(56px, 84px, 84px, 56px);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -111,22 +111,6 @@
|
|||
|
||||
/* URL bar and page action buttons */
|
||||
|
||||
.urlbar-history-dropmarker {
|
||||
-moz-appearance: none;
|
||||
list-style-image: url(chrome://global/skin/icons/arrow-dropdown-16.svg);
|
||||
transition: opacity 0.15s ease;
|
||||
}
|
||||
|
||||
#urlbar[switchingtabs] > .urlbar-textbox-container > .urlbar-history-dropmarker {
|
||||
transition: none;
|
||||
}
|
||||
|
||||
#navigator-toolbox:not(:hover) > #nav-bar:not([customizing="true"]) > #nav-bar-customization-target > #urlbar-container > #urlbar:not([focused]) > .urlbar-textbox-container > .urlbar-history-dropmarker {
|
||||
opacity: 0;
|
||||
}
|
||||
|
||||
/* Page actions */
|
||||
|
||||
#page-action-buttons {
|
||||
-moz-box-align: center;
|
||||
/* Add more space between the last icon and the urlbar's edge. */
|
||||
|
@ -148,6 +132,37 @@
|
|||
fill-opacity: 0.8;
|
||||
}
|
||||
|
||||
.urlbar-go-button,
|
||||
.search-go-button {
|
||||
list-style-image: url("chrome://browser/skin/back.svg");
|
||||
width: 26px;
|
||||
}
|
||||
|
||||
.urlbar-go-button:-moz-locale-dir(ltr),
|
||||
.search-go-button:-moz-locale-dir(ltr) {
|
||||
transform: scaleX(-1);
|
||||
}
|
||||
|
||||
.urlbar-go-button:hover,
|
||||
.search-go-button:hover {
|
||||
fill: #058b00;
|
||||
fill-opacity: 1;
|
||||
}
|
||||
|
||||
.urlbar-history-dropmarker {
|
||||
-moz-appearance: none;
|
||||
list-style-image: url(chrome://global/skin/icons/arrow-dropdown-16.svg);
|
||||
transition: opacity 0.15s ease;
|
||||
}
|
||||
|
||||
#urlbar[switchingtabs] > .urlbar-textbox-container > .urlbar-history-dropmarker {
|
||||
transition: none;
|
||||
}
|
||||
|
||||
#navigator-toolbox:not(:hover) > #nav-bar:not([customizing="true"]) > #nav-bar-customization-target > #urlbar-container > #urlbar:not([focused]) > .urlbar-textbox-container > .urlbar-history-dropmarker {
|
||||
opacity: 0;
|
||||
}
|
||||
|
||||
#pageActionButton {
|
||||
list-style-image: url("chrome://browser/skin/page-action.svg");
|
||||
}
|
||||
|
|
|
@ -28,10 +28,6 @@ browser.jar:
|
|||
skin/classic/browser/privatebrowsing-mask-titlebar.png
|
||||
skin/classic/browser/privatebrowsing-mask-titlebar-win7.png
|
||||
skin/classic/browser/privatebrowsing-mask-titlebar-win7-tall.png
|
||||
skin/classic/browser/reload-stop-go.png
|
||||
skin/classic/browser/reload-stop-go@2x.png
|
||||
skin/classic/browser/reload-stop-go-win7.png
|
||||
skin/classic/browser/reload-stop-go-win7@2x.png
|
||||
skin/classic/browser/searchbar.css
|
||||
skin/classic/browser/setDesktopBackground.css
|
||||
skin/classic/browser/slowStartup-16.png
|
||||
|
@ -103,8 +99,6 @@ browser.jar:
|
|||
|
||||
% override chrome://browser/skin/privatebrowsing-mask-tabstrip.png chrome://browser/skin/privatebrowsing-mask-tabstrip-win7.png os=WINNT osversion<=6.1
|
||||
% override chrome://browser/skin/privatebrowsing-mask-titlebar.png chrome://browser/skin/privatebrowsing-mask-titlebar-win7.png os=WINNT osversion<=6.1
|
||||
% override chrome://browser/skin/reload-stop-go.png chrome://browser/skin/reload-stop-go-win7.png os=WINNT osversion<=6.1
|
||||
% override chrome://browser/skin/reload-stop-go@2x.png chrome://browser/skin/reload-stop-go-win7@2x.png os=WINNT osversion<=6.1
|
||||
% override chrome://browser/skin/toolbarbutton-dropdown-arrow.png chrome://browser/skin/toolbarbutton-dropdown-arrow-win7.png os=WINNT osversion<=6.1
|
||||
|
||||
% override chrome://browser/skin/tabbrowser/tab-background-start.png chrome://browser/skin/tabbrowser/tab-background-start-preWin10.png os=WINNT osversion<=6.3
|
||||
|
|
Двоичные данные
browser/themes/windows/reload-stop-go-win7.png
До Ширина: | Высота: | Размер: 1.9 KiB |
Двоичные данные
browser/themes/windows/reload-stop-go-win7@2x.png
До Ширина: | Высота: | Размер: 3.6 KiB |
Двоичные данные
browser/themes/windows/reload-stop-go.png
До Ширина: | Высота: | Размер: 966 B |
Двоичные данные
browser/themes/windows/reload-stop-go@2x.png
До Ширина: | Высота: | Размер: 1.5 KiB |
|
@ -10,8 +10,6 @@
|
|||
margin: 0;
|
||||
}
|
||||
|
||||
/* ::::: searchbar-engine-button ::::: */
|
||||
|
||||
.searchbar-engine-image {
|
||||
height: 16px;
|
||||
width: 16px;
|
||||
|
@ -19,32 +17,7 @@
|
|||
margin-inline-start: -1px;
|
||||
}
|
||||
|
||||
/* ::::: search-go-button ::::: */
|
||||
|
||||
.search-go-container {
|
||||
-moz-box-align: center;
|
||||
}
|
||||
|
||||
.search-go-button {
|
||||
padding: 1px;
|
||||
list-style-image: url("chrome://browser/skin/reload-stop-go.png");
|
||||
-moz-image-region: rect(0, 42px, 14px, 28px);
|
||||
width: 14px;
|
||||
}
|
||||
|
||||
.search-go-button:-moz-locale-dir(rtl) {
|
||||
transform: scaleX(-1);
|
||||
}
|
||||
|
||||
.search-go-button:hover {
|
||||
-moz-image-region: rect(14px, 42px, 28px, 28px);
|
||||
}
|
||||
|
||||
.search-go-button:hover:active {
|
||||
-moz-image-region: rect(28px, 42px, 42px, 28px);
|
||||
}
|
||||
|
||||
|
||||
.search-go-container,
|
||||
.searchbar-search-button-container {
|
||||
-moz-box-align: center;
|
||||
}
|
||||
|
@ -87,19 +60,6 @@
|
|||
.searchbar-search-button:hover:active {
|
||||
-moz-image-region: rect(0, 120px, 40px, 80px);
|
||||
}
|
||||
|
||||
.search-go-button {
|
||||
list-style-image: url("chrome://browser/skin/reload-stop-go@2x.png");
|
||||
-moz-image-region: rect(0, 84px, 28px, 56px);
|
||||
}
|
||||
|
||||
.search-go-button:hover {
|
||||
-moz-image-region: rect(28px, 84px, 56px, 56px);
|
||||
}
|
||||
|
||||
.search-go-button:hover:active {
|
||||
-moz-image-region: rect(56px, 84px, 84px, 56px);
|
||||
}
|
||||
}
|
||||
|
||||
.search-panel-current-engine {
|
||||
|
|