Left: | ||
Right: |
OLD | NEW |
---|---|
1 /* | 1 /* |
2 * This file is part of Adblock Plus <https://adblockplus.org/>, | 2 * This file is part of Adblock Plus <https://adblockplus.org/>, |
3 * Copyright (C) 2006-2016 Eyeo GmbH | 3 * Copyright (C) 2006-2016 Eyeo GmbH |
4 * | 4 * |
5 * Adblock Plus is free software: you can redistribute it and/or modify | 5 * Adblock Plus is free software: you can redistribute it and/or modify |
6 * it under the terms of the GNU General Public License version 3 as | 6 * it under the terms of the GNU General Public License version 3 as |
7 * published by the Free Software Foundation. | 7 * published by the Free Software Foundation. |
8 * | 8 * |
9 * Adblock Plus is distributed in the hope that it will be useful, | 9 * Adblock Plus is distributed in the hope that it will be useful, |
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of | 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | 11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
12 * GNU General Public License for more details. | 12 * GNU General Public License for more details. |
13 * | 13 * |
14 * You should have received a copy of the GNU General Public License | 14 * You should have received a copy of the GNU General Public License |
15 * along with Adblock Plus. If not, see <http://www.gnu.org/licenses/>. | 15 * along with Adblock Plus. If not, see <http://www.gnu.org/licenses/>. |
16 */ | 16 */ |
17 | 17 |
18 @namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"); | 18 @namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"); |
19 @namespace html url("http://www.w3.org/1999/xhtml"); | 19 @namespace html url("http://www.w3.org/1999/xhtml"); |
20 | 20 |
21 #abp-status | 21 #abp-status |
22 { | 22 { |
23 cursor: pointer; | 23 cursor: pointer; |
24 } | 24 } |
25 | 25 |
26 toolbar[iconsize="small"] #abp-toolbarbutton, | 26 toolbar[iconsize="small"] #abp-toolbarbutton, |
27 #PersonalToolbar #abp-toolbarbutton, | 27 #PersonalToolbar #abp-toolbarbutton, |
28 #header-view-toolbar > #abp-toolbarbutton, | 28 #header-view-toolbar > #abp-toolbarbutton, |
29 #abp-status { | 29 #abp-status |
30 { | |
30 list-style-image: url("abp-status-16.png"); | 31 list-style-image: url("abp-status-16.png"); |
31 -moz-image-region: rect(0px, 16px, 16px, 0px); | 32 -moz-image-region: rect(0px, 16px, 16px, 0px); |
32 } | 33 } |
34 | |
33 toolbar[iconsize="small"] #abp-toolbarbutton[abpstate="disabled"], | 35 toolbar[iconsize="small"] #abp-toolbarbutton[abpstate="disabled"], |
34 #PersonalToolbar #abp-toolbarbutton[abpstate="disabled"], | 36 #PersonalToolbar #abp-toolbarbutton[abpstate="disabled"], |
35 #header-view-toolbar > #abp-toolbarbutton[abpstate="disabled"], | 37 #header-view-toolbar > #abp-toolbarbutton[abpstate="disabled"], |
36 #abp-status[abpstate="disabled"], | 38 #abp-status[abpstate="disabled"], |
37 toolbar[iconsize="small"] #abp-toolbarbutton[abpstate="whitelisted"], | 39 toolbar[iconsize="small"] #abp-toolbarbutton[abpstate="whitelisted"], |
38 #PersonalToolbar #abp-toolbarbutton[abpstate="whitelisted"], | 40 #PersonalToolbar #abp-toolbarbutton[abpstate="whitelisted"], |
39 #header-view-toolbar > #abp-toolbarbutton[abpstate="whitelisted"], | 41 #header-view-toolbar > #abp-toolbarbutton[abpstate="whitelisted"], |
40 #abp-status[abpstate="whitelisted"] { | 42 #abp-status[abpstate="whitelisted"] |
43 { | |
41 -moz-image-region: rect(16px, 16px, 32px, 0px); | 44 -moz-image-region: rect(16px, 16px, 32px, 0px); |
42 } | 45 } |
43 | 46 |
47 @media screen and (min-resolution: 1.5dppx) | |
48 { | |
49 toolbar[iconsize="small"] #abp-toolbarbutton, | |
50 #PersonalToolbar #abp-toolbarbutton, | |
51 #header-view-toolbar > #abp-toolbarbutton, | |
52 #abp-status | |
53 { | |
54 list-style-image: url("abp-status.png"); | |
55 -moz-image-region: rect(0px, 24px, 24px, 0px); | |
56 } | |
57 | |
58 toolbar[iconsize="small"] #abp-toolbarbutton[abpstate="disabled"], | |
59 #PersonalToolbar #abp-toolbarbutton[abpstate="disabled"], | |
60 #header-view-toolbar > #abp-toolbarbutton[abpstate="disabled"], | |
61 #abp-status[abpstate="disabled"], | |
62 toolbar[iconsize="small"] #abp-toolbarbutton[abpstate="whitelisted"], | |
63 #PersonalToolbar #abp-toolbarbutton[abpstate="whitelisted"], | |
64 #header-view-toolbar > #abp-toolbarbutton[abpstate="whitelisted"], | |
65 #abp-status[abpstate="whitelisted"] | |
66 { | |
67 -moz-image-region: rect(24px, 24px, 48px, 0px); | |
68 } | |
69 } | |
70 | |
71 @media screen and (min-resolution: 2dppx) | |
72 { | |
73 toolbar[iconsize="small"] #abp-toolbarbutton, | |
74 #PersonalToolbar #abp-toolbarbutton, | |
75 #header-view-toolbar > #abp-toolbarbutton, | |
76 #abp-status | |
77 { | |
78 list-style-image: url("abp-status-32.png"); | |
79 -moz-image-region: rect(0px, 32px, 32px, 0px); | |
80 } | |
81 | |
82 toolbar[iconsize="small"] #abp-toolbarbutton[abpstate="disabled"], | |
83 #PersonalToolbar #abp-toolbarbutton[abpstate="disabled"], | |
84 #header-view-toolbar > #abp-toolbarbutton[abpstate="disabled"], | |
85 #abp-status[abpstate="disabled"], | |
86 toolbar[iconsize="small"] #abp-toolbarbutton[abpstate="whitelisted"], | |
87 #PersonalToolbar #abp-toolbarbutton[abpstate="whitelisted"], | |
88 #header-view-toolbar > #abp-toolbarbutton[abpstate="whitelisted"], | |
89 #abp-status[abpstate="whitelisted"] | |
90 { | |
91 -moz-image-region: rect(32px, 32px, 64px, 0px); | |
92 } | |
93 } | |
94 | |
44 #abp-toolbarbutton[cui-areatype="menu-panel"], | 95 #abp-toolbarbutton[cui-areatype="menu-panel"], |
45 toolbarpaletteitem[place="palette"] > #abp-toolbarbutton | 96 toolbarpaletteitem[place="palette"] > #abp-toolbarbutton |
46 { | 97 { |
47 list-style-image: url("abp-status-32.png"); | 98 list-style-image: url("abp-status-32.png"); |
48 -moz-image-region: rect(0px, 32px, 32px, 0px); | 99 -moz-image-region: rect(0px, 32px, 32px, 0px); |
49 } | 100 } |
50 | 101 |
51 #abp-toolbarbutton[cui-areatype="menu-panel"][abpstate="disabled"], | 102 #abp-toolbarbutton[cui-areatype="menu-panel"][abpstate="disabled"], |
52 toolbarpaletteitem[place="palette"] > #abp-toolbarbutton[abpstate="disabled"], | 103 toolbarpaletteitem[place="palette"] > #abp-toolbarbutton[abpstate="disabled"], |
53 #abp-toolbarbutton[cui-areatype="menu-panel"][abpstate="whitelisted"], | 104 #abp-toolbarbutton[cui-areatype="menu-panel"][abpstate="whitelisted"], |
54 toolbarpaletteitem[place="palette"] > #abp-toolbarbutton[abpstate="whitelisted"] | 105 toolbarpaletteitem[place="palette"] > #abp-toolbarbutton[abpstate="whitelisted"] |
55 { | 106 { |
56 -moz-image-region: rect(32px, 32px, 64px, 0px); | 107 -moz-image-region: rect(32px, 32px, 64px, 0px); |
57 } | 108 } |
58 | 109 |
59 #abp-toolbar-popup { | 110 #abp-toolbar-popup { |
60 list-style-image: none; | 111 list-style-image: none; |
61 -moz-image-region: rect(0px, 0px, 0px, 0px); | 112 -moz-image-region: rect(0px, 0px, 0px, 0px); |
62 } | 113 } |
63 | 114 |
64 toolbox[vertical="true"] toolbar #abp-toolbarbutton dropmarker { | 115 toolbox[vertical="true"] toolbar #abp-toolbarbutton dropmarker { |
65 display: none !important; | 116 display: none !important; |
66 } | 117 } |
67 | 118 |
68 menuitem[default="true"] { | 119 menuitem[default="true"] { |
69 font-weight: bold; | 120 font-weight: bold; |
70 } | 121 } |
71 | 122 |
72 #abp-toolbarbutton, | 123 #abp-toolbarbutton, |
saroyanm
2016/06/10 10:21:58
Are this rules and one below still being used by a
Wladimir Palant
2016/06/10 14:53:27
You are right, Firefox no longer uses 24x24 icons
saroyanm
2016/06/10 16:58:19
Acknowledged.
| |
73 #abp-site-info { | 124 #abp-site-info { |
74 list-style-image: url("abp-status.png"); | 125 list-style-image: url("abp-status.png"); |
75 -moz-image-region: rect(0px, 24px, 24px, 0px); | 126 -moz-image-region: rect(0px, 24px, 24px, 0px); |
76 } | 127 } |
77 #abp-toolbarbutton[abpstate="disabled"], | 128 #abp-toolbarbutton[abpstate="disabled"], |
78 #abp-toolbarbutton[abpstate="whitelisted"], | 129 #abp-toolbarbutton[abpstate="whitelisted"], |
79 #abp-site-info[abpaction="enable"], | 130 #abp-site-info[abpaction="enable"], |
80 #abp-site-info[abpaction="enable_site"] { | 131 #abp-site-info[abpaction="enable_site"] { |
81 -moz-image-region: rect(24px, 24px, 48px, 0px); | 132 -moz-image-region: rect(24px, 24px, 48px, 0px); |
82 } | 133 } |
(...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
234 #abp-notification.abp-closing #abp-notification-content, | 285 #abp-notification.abp-closing #abp-notification-content, |
235 #abp-notification:not(.abp-closing) #abp-notification-close-content | 286 #abp-notification:not(.abp-closing) #abp-notification-close-content |
236 { | 287 { |
237 display: none; | 288 display: none; |
238 } | 289 } |
239 | 290 |
240 #abp-notification-close-content toolbarbutton label | 291 #abp-notification-close-content toolbarbutton label |
241 { | 292 { |
242 text-align: left; | 293 text-align: left; |
243 } | 294 } |
OLD | NEW |