|
1 /* This Source Code Form is subject to the terms of the Mozilla Public |
|
2 * License, v. 2.0. If a copy of the MPL was not distributed with this |
|
3 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ |
|
4 |
|
5 %include ../../shared/customizableui/panelUIOverlay.inc.css |
|
6 |
|
7 #PanelUI-contents #zoom-out-btn { |
|
8 padding-left: 12px; |
|
9 padding-right: 12px; |
|
10 } |
|
11 |
|
12 #PanelUI-contents #zoom-in-btn { |
|
13 padding-left: 12px; |
|
14 padding-right: 12px; |
|
15 } |
|
16 |
|
17 /* bookmark panel submenus */ |
|
18 |
|
19 #BMB_bookmarksPopup menupopup[placespopup=true] { |
|
20 -moz-appearance: none; |
|
21 background: transparent; |
|
22 border: none; |
|
23 padding: 6px; |
|
24 } |
|
25 |
|
26 #BMB_bookmarksPopup menupopup[placespopup=true] > hbox { |
|
27 /* emulating chrome://browser/content/places/menu.xml#places-popup-arrow but without the arrow */ |
|
28 box-shadow: 0 0 4px rgba(0,0,0,0.2); |
|
29 background: #FFF; |
|
30 border: 1px solid rgba(0,0,0,0.25); |
|
31 border-radius: 3.5px; |
|
32 margin-top: -4px; |
|
33 } |
|
34 |
|
35 #BMB_bookmarksPopup menupopup { |
|
36 padding-top: 2px; |
|
37 } |
|
38 |
|
39 /* Add some space at the top because there are no headers: */ |
|
40 #BMB_bookmarksPopup menupopup[placespopup=true] > hbox > .popup-internal-box > .arrowscrollbox-scrollbox > .scrollbox-innerbox { |
|
41 padding-top: 4px; |
|
42 } |
|
43 |
|
44 #BMB_bookmarksPopup .menu-text { |
|
45 color: #000; |
|
46 } |
|
47 |
|
48 #BMB_bookmarksPopup .subviewbutton[disabled=true] > .menu-text { |
|
49 color: #6d6d6d; |
|
50 } |
|
51 |
|
52 /* bookmark panel separator */ |
|
53 #BMB_bookmarksPopup menuseparator { |
|
54 padding-top: 0; |
|
55 padding-bottom: 0; |
|
56 } |
|
57 |
|
58 .subviewbutton > .menu-right, |
|
59 .subviewbutton > .menu-iconic-left { |
|
60 padding-top: 1px; |
|
61 margin-top: 1px; |
|
62 margin-bottom: 2px; |
|
63 } |
|
64 |
|
65 /* Disabled empty item looks too small otherwise, because it has no icon. */ |
|
66 menuitem.subviewbutton[disabled]:not(.menuitem-iconic), |
|
67 /* Same for checkbox menu items, whose icons lose size due to -moz-appearance: none: */ |
|
68 menuitem[type="checkbox"].subviewbutton { |
|
69 /* This is 16px for an icon + 3px for its margins + 1px for its padding + |
|
70 * 2px for its border, see above */ |
|
71 min-height: 22px; |
|
72 } |
|
73 |
|
74 .subviewbutton > .toolbarbutton-text { |
|
75 padding-top: 3px; |
|
76 padding-bottom: 3px; |
|
77 } |
|
78 |
|
79 .widget-overflow-list .toolbarbutton-1 > .toolbarbutton-menubutton-button { |
|
80 -moz-appearance: none; |
|
81 border: 0; |
|
82 -moz-margin-start: 3px; |
|
83 } |
|
84 |
|
85 .widget-overflow-list .toolbarbutton-1 > .toolbarbutton-menubutton-dropmarker { |
|
86 padding: 0 2px; |
|
87 -moz-padding-start: 0; |
|
88 height: 18px; |
|
89 } |
|
90 |
|
91 .widget-overflow-list .toolbarbutton-1 > .toolbarbutton-menubutton-dropmarker > .dropmarker-icon { |
|
92 padding: 0 6px; |
|
93 } |
|
94 |
|
95 .subviewbutton > .toolbarbutton-text { |
|
96 -moz-padding-start: 16px; |
|
97 } |
|
98 |
|
99 .subviewbutton:-moz-any([image],[targetURI],.cui-withicon, .restoreallitem, .bookmark-item) > .toolbarbutton-text { |
|
100 -moz-padding-start: 0; |
|
101 } |
|
102 |
|
103 .subviewbutton.bookmark-item > .toolbarbutton-icon { |
|
104 -moz-margin-start: 3px; |
|
105 } |
|
106 |
|
107 /* subviewbutton entries for social sidebars have images that come from external |
|
108 /* sources, and are not guaranteed to be the size we want, so force the size on |
|
109 /* those icons. */ |
|
110 toolbarbutton.social-provider-menuitem > .toolbarbutton-icon { |
|
111 width: 16px; |
|
112 height: 16px; |
|
113 } |
|
114 |
|
115 .subviewbutton:-moz-any([image],[targetURI],.cui-withicon, .restoreallitem, .bookmark-item)[checked="true"] > .toolbarbutton-icon { |
|
116 visibility: hidden; |
|
117 } |
|
118 |
|
119 menu.subviewbutton > .menu-right { |
|
120 -moz-appearance: none; |
|
121 list-style-image: url(chrome://browser/skin/places/bookmarks-menu-arrow.png); |
|
122 -moz-image-region: rect(0, 16px, 16px, 0); |
|
123 } |
|
124 |
|
125 menu[disabled="true"].subviewbutton > .menu-right { |
|
126 -moz-image-region: rect(0, 32px, 16px, 16px); |
|
127 } |
|
128 |
|
129 %ifdef WINDOWS_AERO |
|
130 /* Win8 and beyond. */ |
|
131 @media not all and (-moz-os-version: windows-vista) { |
|
132 @media not all and (-moz-os-version: windows-win7) { |
|
133 panelview .toolbarbutton-1, |
|
134 .subviewbutton, |
|
135 .widget-overflow-list .toolbarbutton-1, |
|
136 .panelUI-grid .toolbarbutton-1 > .toolbarbutton-menubutton-button, |
|
137 #BMB_bookmarksPopup menupopup[placespopup=true] > hbox, |
|
138 #edit-controls@inAnyPanel@, |
|
139 #zoom-controls@inAnyPanel@, |
|
140 #edit-controls@inAnyPanel@ > toolbarbutton, |
|
141 #zoom-controls@inAnyPanel@ > toolbarbutton { |
|
142 border-radius: 0; |
|
143 } |
|
144 } |
|
145 } |
|
146 %endif |