gecko-dev/browser/themes/shared/browser.inc.css
Amola Singh 273176fa28 Bug 1377537 - Move urlbar zoom icon styling into urlbar-searchbar.inc.css, r=gijs
MozReview-Commit-ID: 9hIk7xRc3hL

--HG--
extra : rebase_source : 0024018c232678f8e5019ca33a6c60c35afa1775
2017-07-06 15:10:52 +01:00

79 lines
1.8 KiB
CSS

/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
%ifdef MOZ_PHOTON_THEME
%ifdef CAN_DRAW_IN_TITLEBAR
/* Add space for dragging the window */
%ifdef MOZ_WIDGET_COCOA
:root[tabsintitlebar]:not([sizemode=fullscreen]) #TabsToolbar
%elifdef MENUBAR_CAN_AUTOHIDE
:root[tabsintitlebar][sizemode=normal] #toolbar-menubar[autohide=true] ~ #TabsToolbar
%else
:root[tabsintitlebar][sizemode=normal] #TabsToolbar
%endif
{
padding-inline-start: 40px;
}
%endif
%ifdef MOZ_PHOTON_THEME
:root {
--toolbar-background-color: -moz-dialog;
--toolbar-foreground-color: -moz-dialogtext;
}
/* Colour to use for toolbars and customize mode */
%if defined(XP_WIN) || defined(XP_MACOSX)
%ifdef XP_WIN
@media (-moz-windows-default-theme) {
%endif
:root {
--toolbar-background-color: #f9f9fa;
--toolbar-foreground-color: #0c0c0d;
}
%ifdef XP_WIN
}
%endif
%endif
%endif
/* 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);
}
}
%endif