[Pkg-mozext-commits] [adblock-plus] 11/98: Issue 4142 - Update ABP icon in FF toolbar to support for high resolution screens
David Prévot
taffit at moszumanska.debian.org
Tue Oct 24 01:30:13 UTC 2017
This is an automated email from the git hooks/post-receive script.
taffit pushed a commit to branch master
in repository adblock-plus.
commit 542e8c137c9707b741218bcf9d1843f143d09b96
Author: Wladimir Palant <trev at adblockplus.org>
Date: Thu Jun 9 16:17:10 2016 +0200
Issue 4142 - Update ABP icon in FF toolbar to support for high resolution screens
---
chrome/skin/overlay.css | 55 +++++++++++++++++++++++++++++++++++++++++++++++--
1 file changed, 53 insertions(+), 2 deletions(-)
diff --git a/chrome/skin/overlay.css b/chrome/skin/overlay.css
index a3f6c80..d94fc95 100644
--- a/chrome/skin/overlay.css
+++ b/chrome/skin/overlay.css
@@ -26,10 +26,12 @@
toolbar[iconsize="small"] #abp-toolbarbutton,
#PersonalToolbar #abp-toolbarbutton,
#header-view-toolbar > #abp-toolbarbutton,
-#abp-status {
+#abp-status
+{
list-style-image: url("abp-status-16.png");
-moz-image-region: rect(0px, 16px, 16px, 0px);
}
+
toolbar[iconsize="small"] #abp-toolbarbutton[abpstate="disabled"],
#PersonalToolbar #abp-toolbarbutton[abpstate="disabled"],
#header-view-toolbar > #abp-toolbarbutton[abpstate="disabled"],
@@ -37,10 +39,59 @@ toolbar[iconsize="small"] #abp-toolbarbutton[abpstate="disabled"],
toolbar[iconsize="small"] #abp-toolbarbutton[abpstate="whitelisted"],
#PersonalToolbar #abp-toolbarbutton[abpstate="whitelisted"],
#header-view-toolbar > #abp-toolbarbutton[abpstate="whitelisted"],
-#abp-status[abpstate="whitelisted"] {
+#abp-status[abpstate="whitelisted"]
+{
-moz-image-region: rect(16px, 16px, 32px, 0px);
}
+ at media screen and (min-resolution: 1.5dppx)
+{
+ toolbar[iconsize="small"] #abp-toolbarbutton,
+ #PersonalToolbar #abp-toolbarbutton,
+ #header-view-toolbar > #abp-toolbarbutton,
+ #abp-status
+ {
+ list-style-image: url("abp-status.png");
+ -moz-image-region: rect(0px, 24px, 24px, 0px);
+ }
+
+ toolbar[iconsize="small"] #abp-toolbarbutton[abpstate="disabled"],
+ #PersonalToolbar #abp-toolbarbutton[abpstate="disabled"],
+ #header-view-toolbar > #abp-toolbarbutton[abpstate="disabled"],
+ #abp-status[abpstate="disabled"],
+ toolbar[iconsize="small"] #abp-toolbarbutton[abpstate="whitelisted"],
+ #PersonalToolbar #abp-toolbarbutton[abpstate="whitelisted"],
+ #header-view-toolbar > #abp-toolbarbutton[abpstate="whitelisted"],
+ #abp-status[abpstate="whitelisted"]
+ {
+ -moz-image-region: rect(24px, 24px, 48px, 0px);
+ }
+}
+
+ at media screen and (min-resolution: 2dppx)
+{
+ toolbar[iconsize="small"] #abp-toolbarbutton,
+ #PersonalToolbar #abp-toolbarbutton,
+ #header-view-toolbar > #abp-toolbarbutton,
+ #abp-status
+ {
+ list-style-image: url("abp-status-32.png");
+ -moz-image-region: rect(0px, 32px, 32px, 0px);
+ }
+
+ toolbar[iconsize="small"] #abp-toolbarbutton[abpstate="disabled"],
+ #PersonalToolbar #abp-toolbarbutton[abpstate="disabled"],
+ #header-view-toolbar > #abp-toolbarbutton[abpstate="disabled"],
+ #abp-status[abpstate="disabled"],
+ toolbar[iconsize="small"] #abp-toolbarbutton[abpstate="whitelisted"],
+ #PersonalToolbar #abp-toolbarbutton[abpstate="whitelisted"],
+ #header-view-toolbar > #abp-toolbarbutton[abpstate="whitelisted"],
+ #abp-status[abpstate="whitelisted"]
+ {
+ -moz-image-region: rect(32px, 32px, 64px, 0px);
+ }
+}
+
#abp-toolbarbutton[cui-areatype="menu-panel"],
toolbarpaletteitem[place="palette"] > #abp-toolbarbutton
{
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-mozext/adblock-plus.git
More information about the Pkg-mozext-commits
mailing list