Wed, 31 Dec 2014 06:09:35 +0100
Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.
michael@0 | 1 | /* This Source Code Form is subject to the terms of the Mozilla Public |
michael@0 | 2 | * License, v. 2.0. If a copy of the MPL was not distributed with this |
michael@0 | 3 | * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ |
michael@0 | 4 | |
michael@0 | 5 | /* ===== menu.css ======================================================= |
michael@0 | 6 | == Styles used by XUL menu-related elements. |
michael@0 | 7 | ======================================================================= */ |
michael@0 | 8 | |
michael@0 | 9 | @namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"); |
michael@0 | 10 | |
michael@0 | 11 | /* ::::: menu/menuitem ::::: */ |
michael@0 | 12 | |
michael@0 | 13 | menu, |
michael@0 | 14 | menuitem, |
michael@0 | 15 | .splitmenu-menuitem { |
michael@0 | 16 | -moz-appearance: menuitem; |
michael@0 | 17 | -moz-box-align: center; |
michael@0 | 18 | color: MenuText; |
michael@0 | 19 | font: menu; |
michael@0 | 20 | list-style-image: none; |
michael@0 | 21 | -moz-image-region: auto; |
michael@0 | 22 | } |
michael@0 | 23 | |
michael@0 | 24 | menuitem[default="true"] { |
michael@0 | 25 | font-weight: bold; |
michael@0 | 26 | } |
michael@0 | 27 | |
michael@0 | 28 | menu[disabled="true"], |
michael@0 | 29 | menuitem[disabled="true"], |
michael@0 | 30 | .splitmenu-menuitem[disabled="true"], |
michael@0 | 31 | menu[_moz-menuactive="true"][disabled="true"], |
michael@0 | 32 | menuitem[_moz-menuactive="true"][disabled="true"], |
michael@0 | 33 | .splitmenu-menuitem[_moz-menuactive="true"][disabled="true"] { |
michael@0 | 34 | color: GrayText; |
michael@0 | 35 | text-shadow: none; |
michael@0 | 36 | } |
michael@0 | 37 | |
michael@0 | 38 | @media (-moz-windows-classic) { |
michael@0 | 39 | menu[disabled="true"], |
michael@0 | 40 | menubar > menu[disabled="true"][_moz-menuactive="true"], |
michael@0 | 41 | menuitem[disabled="true"], |
michael@0 | 42 | .splitmenu-menuitem[disabled="true"] { |
michael@0 | 43 | color: ThreeDShadow; |
michael@0 | 44 | text-shadow: 1px 1px ThreeDHighlight; |
michael@0 | 45 | } |
michael@0 | 46 | } |
michael@0 | 47 | |
michael@0 | 48 | menuitem.spell-suggestion { |
michael@0 | 49 | font-weight: bold; |
michael@0 | 50 | } |
michael@0 | 51 | |
michael@0 | 52 | /* ..... internal content .... */ |
michael@0 | 53 | |
michael@0 | 54 | .menu-accel, |
michael@0 | 55 | .menu-iconic-accel, |
michael@0 | 56 | .menu-text, |
michael@0 | 57 | .menu-iconic-text { |
michael@0 | 58 | margin: 0px !important; |
michael@0 | 59 | padding: 1px 0px; |
michael@0 | 60 | color: inherit; |
michael@0 | 61 | } |
michael@0 | 62 | |
michael@0 | 63 | .menu-text { |
michael@0 | 64 | -moz-padding-start: 1.45em !important; |
michael@0 | 65 | -moz-appearance: menuitemtext; |
michael@0 | 66 | } |
michael@0 | 67 | |
michael@0 | 68 | .menu-text, |
michael@0 | 69 | .menu-iconic-text { |
michael@0 | 70 | font-weight: inherit; |
michael@0 | 71 | -moz-margin-start: 2px !important; |
michael@0 | 72 | -moz-padding-end: 2px; |
michael@0 | 73 | } |
michael@0 | 74 | |
michael@0 | 75 | .menu-description { |
michael@0 | 76 | font-style: italic; |
michael@0 | 77 | color: GrayText; |
michael@0 | 78 | -moz-margin-start: 1ex !important; |
michael@0 | 79 | } |
michael@0 | 80 | |
michael@0 | 81 | .menu-accel, |
michael@0 | 82 | .menu-iconic-accel { |
michael@0 | 83 | color: inherit; |
michael@0 | 84 | -moz-margin-start: 0.74em !important; |
michael@0 | 85 | -moz-margin-end: 1.35em !important; |
michael@0 | 86 | } |
michael@0 | 87 | |
michael@0 | 88 | .menu-iconic-left { |
michael@0 | 89 | min-width: 1.45em; |
michael@0 | 90 | } |
michael@0 | 91 | |
michael@0 | 92 | .menu-iconic-icon { |
michael@0 | 93 | width: 16px; |
michael@0 | 94 | height: 16px; |
michael@0 | 95 | } |
michael@0 | 96 | |
michael@0 | 97 | menu.menu-iconic > .menu-iconic-left, |
michael@0 | 98 | menuitem.menuitem-iconic > .menu-iconic-left, |
michael@0 | 99 | .splitmenu-menuitem[iconic="true"] > .menu-iconic-left { |
michael@0 | 100 | -moz-appearance: menuimage; |
michael@0 | 101 | padding-top: 2px; |
michael@0 | 102 | } |
michael@0 | 103 | |
michael@0 | 104 | /* ..... menu arrow box ..... */ |
michael@0 | 105 | |
michael@0 | 106 | .menu-right { |
michael@0 | 107 | -moz-appearance: menuarrow; |
michael@0 | 108 | -moz-margin-end: -2px; |
michael@0 | 109 | list-style-image: none; |
michael@0 | 110 | min-width: 1.28em; |
michael@0 | 111 | padding-top: 1px; |
michael@0 | 112 | } |
michael@0 | 113 | |
michael@0 | 114 | /* ::::: menu/menuitems in menubar ::::: */ |
michael@0 | 115 | |
michael@0 | 116 | menubar > menu { |
michael@0 | 117 | border: 2px solid transparent; |
michael@0 | 118 | } |
michael@0 | 119 | |
michael@0 | 120 | menubar > menu[_moz-menuactive="true"]:not([disabled="true"]) { |
michael@0 | 121 | color: -moz-menubarhovertext; |
michael@0 | 122 | } |
michael@0 | 123 | |
michael@0 | 124 | menubar > menu[_moz-menuactive="true"][open="true"] { |
michael@0 | 125 | border-width: 3px 1px 1px 3px; |
michael@0 | 126 | } |
michael@0 | 127 | |
michael@0 | 128 | menubar > menu:-moz-lwtheme { |
michael@0 | 129 | -moz-appearance: none; |
michael@0 | 130 | border-style: none; |
michael@0 | 131 | } |
michael@0 | 132 | |
michael@0 | 133 | menubar > menu:-moz-lwtheme:not([disabled="true"]) { |
michael@0 | 134 | color: inherit !important; |
michael@0 | 135 | } |
michael@0 | 136 | |
michael@0 | 137 | menubar > menu:-moz-lwtheme[_moz-menuactive="true"]:not([disabled="true"]) { |
michael@0 | 138 | background-color: Highlight; |
michael@0 | 139 | color: HighlightText !important; |
michael@0 | 140 | text-shadow: none; |
michael@0 | 141 | } |
michael@0 | 142 | |
michael@0 | 143 | %ifdef XP_WIN |
michael@0 | 144 | menubar > menu:-moz-window-inactive { |
michael@0 | 145 | color: ThreeDShadow; |
michael@0 | 146 | } |
michael@0 | 147 | %endif |
michael@0 | 148 | |
michael@0 | 149 | /* ..... internal content .... */ |
michael@0 | 150 | |
michael@0 | 151 | .menubar-left { |
michael@0 | 152 | color: inherit; |
michael@0 | 153 | } |
michael@0 | 154 | |
michael@0 | 155 | .menubar-text { |
michael@0 | 156 | margin: 1px 6px 2px 6px !important; |
michael@0 | 157 | color: inherit; |
michael@0 | 158 | } |
michael@0 | 159 | |
michael@0 | 160 | /* ::::: menu/menuitems in popups ::::: */ |
michael@0 | 161 | |
michael@0 | 162 | menupopup > menu, |
michael@0 | 163 | menupopup > menuitem { |
michael@0 | 164 | max-width: 42em; |
michael@0 | 165 | } |
michael@0 | 166 | |
michael@0 | 167 | menu[_moz-menuactive="true"], |
michael@0 | 168 | menuitem[_moz-menuactive="true"], |
michael@0 | 169 | .splitmenu-menuitem[_moz-menuactive="true"] { |
michael@0 | 170 | background-color: -moz-menuhover; |
michael@0 | 171 | color: -moz-menuhovertext; |
michael@0 | 172 | } |
michael@0 | 173 | |
michael@0 | 174 | /* ::::: menu/menuitems in menulist popups ::::: */ |
michael@0 | 175 | |
michael@0 | 176 | .menulist-menupopup > menuitem, |
michael@0 | 177 | menulist > menupopup > menuitem, |
michael@0 | 178 | .menulist-menupopup > menu, |
michael@0 | 179 | menulist > menupopup > menu { |
michael@0 | 180 | -moz-appearance: none; |
michael@0 | 181 | border: 1px solid transparent; |
michael@0 | 182 | -moz-padding-start: 5px; |
michael@0 | 183 | -moz-padding-end: 5px; |
michael@0 | 184 | max-width: none; |
michael@0 | 185 | font: message-box; |
michael@0 | 186 | color: -moz-FieldText; |
michael@0 | 187 | } |
michael@0 | 188 | |
michael@0 | 189 | .menulist-menupopup > menuitem[_moz-menuactive="true"], |
michael@0 | 190 | menulist > menupopup > menuitem[_moz-menuactive="true"], |
michael@0 | 191 | .menulist-menupopup > menu[_moz-menuactive="true"], |
michael@0 | 192 | menulist > menupopup > menu[_moz-menuactive="true"] { |
michael@0 | 193 | background-color: highlight; |
michael@0 | 194 | color: highlighttext; |
michael@0 | 195 | } |
michael@0 | 196 | |
michael@0 | 197 | .menulist-menupopup > menuitem > .menu-iconic-left, |
michael@0 | 198 | menulist > menupopup > menuitem > .menu-iconic-left, |
michael@0 | 199 | .menulist-menupopup > menu > .menu-iconic-left, |
michael@0 | 200 | menulist > menupopup > menu > .menu-iconic-left { |
michael@0 | 201 | display: none; |
michael@0 | 202 | padding-top: 0px; |
michael@0 | 203 | } |
michael@0 | 204 | |
michael@0 | 205 | .menulist-menupopup > menuitem > label, |
michael@0 | 206 | menulist > menupopup > menuitem > label, |
michael@0 | 207 | .menulist-menupopup > menu > label, |
michael@0 | 208 | menulist > menupopup > menu > label { |
michael@0 | 209 | padding-top: 0px; |
michael@0 | 210 | padding-bottom: 0px; |
michael@0 | 211 | } |
michael@0 | 212 | |
michael@0 | 213 | menulist:-moz-focusring > menupopup > menuitem[_moz-menuactive="true"] { |
michael@0 | 214 | border: 1px dotted #F5DB95; |
michael@0 | 215 | } |
michael@0 | 216 | |
michael@0 | 217 | menulist > menupopup > menuitem[_moz-menuactive="true"][disabled="true"] { |
michael@0 | 218 | color: GrayText; |
michael@0 | 219 | } |
michael@0 | 220 | |
michael@0 | 221 | menulist > menupopup > menuitem[disabled="true"]:not([_moz-menuactive="true"]):-moz-system-metric(windows-classic) { |
michael@0 | 222 | color: GrayText; |
michael@0 | 223 | text-shadow: none; |
michael@0 | 224 | } |
michael@0 | 225 | |
michael@0 | 226 | menulist > menupopup > menuitem:not(.menuitem-iconic) > .menu-iconic-text { |
michael@0 | 227 | margin: 0 !important; |
michael@0 | 228 | } |
michael@0 | 229 | |
michael@0 | 230 | /* ::::: checkbox and radio menuitems ::::: */ |
michael@0 | 231 | |
michael@0 | 232 | menuitem[type="checkbox"], |
michael@0 | 233 | menuitem[checked="true"] { |
michael@0 | 234 | -moz-appearance: checkmenuitem; |
michael@0 | 235 | } |
michael@0 | 236 | menuitem[type="checkbox"] > .menu-iconic-left, |
michael@0 | 237 | menuitem[checked="true"] > .menu-iconic-left { |
michael@0 | 238 | -moz-appearance: menucheckbox; |
michael@0 | 239 | padding-top: 0px; |
michael@0 | 240 | } |
michael@0 | 241 | |
michael@0 | 242 | menuitem[type="radio"] { |
michael@0 | 243 | -moz-appearance: radiomenuitem; |
michael@0 | 244 | } |
michael@0 | 245 | menuitem[type="radio"] > .menu-iconic-left { |
michael@0 | 246 | -moz-appearance: menuradio; |
michael@0 | 247 | padding-top: 0px; |
michael@0 | 248 | } |
michael@0 | 249 | |
michael@0 | 250 | menuitem[type="checkbox"] > .menu-iconic-left > .menu-iconic-icon, |
michael@0 | 251 | menuitem[checked="true"] > .menu-iconic-left > .menu-iconic-icon, |
michael@0 | 252 | menuitem[type="radio"] > .menu-iconic-left > .menu-iconic-icon { |
michael@0 | 253 | /* prevent .menu-iconic-icon from enforcing a minimal height of 16px (see bug 411064) |
michael@0 | 254 | XXXzeniko apply that .menu-iconic-icon rule only for children of .menu-iconic */ |
michael@0 | 255 | display: none; |
michael@0 | 256 | } |
michael@0 | 257 | |
michael@0 | 258 | /* ::::: menuseparator ::::: */ |
michael@0 | 259 | |
michael@0 | 260 | menuseparator { |
michael@0 | 261 | -moz-appearance: menuseparator; |
michael@0 | 262 | padding: 3px 1px 4px 1px; |
michael@0 | 263 | border-top: 1px solid ThreeDShadow; |
michael@0 | 264 | border-bottom: 1px solid ThreeDHighlight; |
michael@0 | 265 | } |
michael@0 | 266 | |
michael@0 | 267 | menulist > menupopup > menuseparator, |
michael@0 | 268 | .menulist-menupopup > menuseparator { |
michael@0 | 269 | padding: 6px 0 5px 0; |
michael@0 | 270 | border-top: 1px solid #000000; |
michael@0 | 271 | border-bottom: none; |
michael@0 | 272 | } |
michael@0 | 273 | |
michael@0 | 274 | /* ::::: autocomplete ::::: */ |
michael@0 | 275 | |
michael@0 | 276 | .autocomplete-history-popup > menuitem { |
michael@0 | 277 | max-width: none !important; |
michael@0 | 278 | font: message-box; |
michael@0 | 279 | } |
michael@0 | 280 | |
michael@0 | 281 | /* ::::: tree column picker ::::: */ |
michael@0 | 282 | |
michael@0 | 283 | .treecell-popupcell-menu { |
michael@0 | 284 | -moz-margin-start: -2px; |
michael@0 | 285 | list-style-image: url("chrome://global/skin/columnselect.gif"); |
michael@0 | 286 | -moz-image-region: auto; |
michael@0 | 287 | } |