Skip to content

Commit f3e896c

Browse files
gijskdiracdeltas
authored andcommitted
Fix issue 215 by changing some negative margins, inheriting wrap, and fixing the horizontal orientation to only apply in toolbars
1 parent 8692415 commit f3e896c

File tree

2 files changed

+11
-3
lines changed

2 files changed

+11
-3
lines changed

src/chrome/content/toolbar_button_binding.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ See: https://developer.mozilla.org/en-US/docs/XBL
2424
class="https-everywhere-button toolbarbutton-1 chromeclass-toolbar-additional"
2525
flex="1"
2626
allowevents="true"
27-
xbl:inherits="type,crop,image,label,accesskey,command,align,dir,pack,orient">
27+
xbl:inherits="type,crop,image,label,accesskey,command,align,dir,pack,orient,wrap">
2828

2929
<children includes="menupopup" />
3030
</xul:toolbarbutton>

src/chrome/skin/https-everywhere.css

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,17 @@
11
#https-everywhere-button {
22
-moz-binding: url("chrome://https-everywhere/content/toolbar_button_binding.xml#https-everywhere-binding");
3-
-moz-box-orient: horizontal;
43
}
54

65
#https-everywhere-button > .https-everywhere-button {
76
list-style-image: url("chrome://https-everywhere/skin/https-everywhere-24.png");
8-
-moz-box-orient: horizontal;
97
}
108

119
toolbar[iconsize="small"] #https-everywhere-button > .https-everywhere-button {
1210
list-style-image: url("chrome://https-everywhere/skin/https-everywhere-16.png");
11+
}
12+
13+
#https-everywhere-button[cui-areatype=toolbar],
14+
#https-everywhere-button[cui-areatype=toolbar] > .https-everywhere-button {
1315
-moz-box-orient: horizontal;
1416
}
1517

@@ -29,6 +31,12 @@ toolbar[iconsize="small"] #https-everywhere-button[status="disabled"] > .https-e
2931
-moz-box-sizing: border-box;
3032
}
3133

34+
/* increase negative margins in the palette and panel so the button isn't too wide. */
35+
#wrapper-https-everywhere-button[place="palette"] > #https-everywhere-button > #rscounter,
36+
#https-everywhere-button[cui-areatype="menu-panel"] > #rscounter {
37+
margin: 3px -16px 0 -8px;
38+
}
39+
3240
/* rulesets applied label */
3341
#rsapplied {
3442
-moz-box-sizing: border-box;

0 commit comments

Comments
 (0)