1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/toolkit/themes/linux/global/menu.css Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,204 @@ 1.4 +/* This Source Code Form is subject to the terms of the Mozilla Public 1.5 + * License, v. 2.0. If a copy of the MPL was not distributed with this 1.6 + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ 1.7 + 1.8 +/* ===== menu.css ======================================================= 1.9 + == Styles used by XUL menu-related elements. 1.10 + ======================================================================= */ 1.11 + 1.12 +@namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"); 1.13 + 1.14 +/* ::::: menu/menuitem ::::: */ 1.15 + 1.16 +menu, 1.17 +menuitem, 1.18 +.splitmenu-menuitem { 1.19 + -moz-appearance: menuitem; 1.20 + -moz-box-align: center; 1.21 + max-width: 42em; 1.22 + color: MenuText; 1.23 + font: menu; 1.24 + list-style-image: none; 1.25 + -moz-image-region: auto; 1.26 +} 1.27 + 1.28 +menuitem[default="true"] { 1.29 + font-weight: bold; 1.30 +} 1.31 + 1.32 +menu[_moz-menuactive="true"], 1.33 +menuitem[_moz-menuactive="true"], 1.34 +.splitmenu-menuitem[_moz-menuactive="true"] { 1.35 + color: -moz-menuhovertext; 1.36 + background-color: -moz-menuhover; 1.37 +} 1.38 + 1.39 +menu[disabled="true"], 1.40 +menuitem[disabled="true"], 1.41 +.splitmenu-menuitem[disabled="true"] { 1.42 + color: GrayText; 1.43 +} 1.44 + 1.45 +menubar > menu { 1.46 + padding: 0px 4px; 1.47 + color: -moz-menubartext; 1.48 +} 1.49 + 1.50 +menubar:-moz-lwtheme > menu { 1.51 + text-shadow: none; 1.52 +} 1.53 + 1.54 +menubar:-moz-lwtheme > menu:not([open="true"]) { 1.55 + color: inherit; 1.56 + text-shadow: inherit; 1.57 +} 1.58 + 1.59 +menubar > menu[_moz-menuactive="true"]:not([open]):not([disabled="true"]):not(:-moz-lwtheme) { 1.60 + color: -moz-menubartext; 1.61 +} 1.62 + 1.63 +menubar > menu[open] { 1.64 + color: -moz-menubarhovertext; 1.65 + background-color: -moz-menuhover; 1.66 +} 1.67 +menuitem.spell-suggestion { 1.68 + font-weight:bold; 1.69 +} 1.70 + 1.71 +/* ::::: menu/menuitems in menulist popups ::::: */ 1.72 + 1.73 +.menulist-menupopup > menuitem, 1.74 +menulist > menupopup > menuitem, 1.75 +.menulist-menupopup > menu, 1.76 +menulist > menupopup > menu { 1.77 + padding: 1px 5px; 1.78 + max-width: none; 1.79 + font: message-box; 1.80 +} 1.81 + 1.82 +/* ..... internal content .... */ 1.83 + 1.84 +.menu-text, 1.85 +.menu-iconic-left, 1.86 +.menu-iconic-text { 1.87 + margin-top: 0px !important; 1.88 + margin-bottom: 0px !important; 1.89 + -moz-margin-start: 0px !important; 1.90 + -moz-margin-end: 2px !important; 1.91 + color: inherit; 1.92 +} 1.93 + 1.94 +.menu-text { 1.95 + /* This is (18 + the size of end-padding on .menu-iconic-left)px */ 1.96 + -moz-margin-start: 21px !important; 1.97 + font-weight: inherit; 1.98 +} 1.99 + 1.100 +.menu-description { 1.101 + font-style: italic; 1.102 + color: GrayText; 1.103 + -moz-margin-start: 1ex !important; 1.104 +} 1.105 + 1.106 +.menu-accel, 1.107 +.menu-iconic-accel { 1.108 + margin-top: 0px !important; 1.109 + margin-bottom: 0px !important; 1.110 + -moz-margin-start: 7px !important; 1.111 + color: inherit; 1.112 +} 1.113 + 1.114 +.menu-accel-container { 1.115 + -moz-box-pack: end; 1.116 +} 1.117 + 1.118 +.menu-iconic-left { 1.119 + width: 16px; 1.120 + /* We can only hardcode this, to make the default GTK icon<->label spacing */ 1.121 + -moz-padding-end: 3px !important; 1.122 +} 1.123 + 1.124 +.menu-iconic-icon { 1.125 + width: 16px; 1.126 + height: 16px; 1.127 +} 1.128 + 1.129 +.menu-right { 1.130 + margin-top: 0px; 1.131 + margin-bottom: 0px; 1.132 + -moz-margin-start: 6px; 1.133 + -moz-margin-end: 0px; 1.134 + width: 1ex; 1.135 + height: 1ex; 1.136 + /* These next two rules are needed to prevent inheritance and thus ugliness */ 1.137 + list-style-image: none; 1.138 + -moz-image-region: auto; 1.139 + -moz-appearance: menuarrow; 1.140 +} 1.141 + 1.142 +.menubar-left { 1.143 + margin-top: 0px; 1.144 + margin-bottom: 0px; 1.145 + -moz-margin-start: 0px; 1.146 + -moz-margin-end: 2px; 1.147 + color: inherit; 1.148 +} 1.149 + 1.150 +.menubar-text { 1.151 + margin: 0 1px !important; 1.152 + color: inherit; 1.153 +} 1.154 + 1.155 + 1.156 +.menulist-menupopup > menuitem > .menu-iconic-left, 1.157 +menulist > menupopup > menuitem > .menu-iconic-left, 1.158 +.menulist-menupopup > menu > .menu-iconic-left, 1.159 +menulist > menupopup > menu > .menu-iconic-left { 1.160 + display: none; 1.161 +} 1.162 + 1.163 +/* ::::: checkbox menuitem ::::: */ 1.164 + 1.165 +menuitem[checked="true"] { 1.166 + -moz-appearance: checkmenuitem !important; 1.167 +} 1.168 + 1.169 +menuitem[type="checkbox"] { 1.170 + -moz-appearance: checkmenuitem !important; 1.171 +} 1.172 + 1.173 +/* ::::: radio menuitem ::::: */ 1.174 + 1.175 +menuitem[type="radio"] { 1.176 + -moz-appearance: radiomenuitem !important; 1.177 +} 1.178 + 1.179 +/* ::::: menuseparator ::::: */ 1.180 + 1.181 +menuseparator { 1.182 + -moz-appearance: menuseparator !important; 1.183 + margin: 2px 0; 1.184 + border-top: 1px solid ThreeDShadow; 1.185 + border-bottom: 1px solid ThreeDHighlight; 1.186 +} 1.187 + 1.188 +menulist > menupopup > menuseparator, 1.189 +.menulist-menupopup > menuseparator { 1.190 + border-top: 1px solid #000000; 1.191 + border-bottom: none; 1.192 +} 1.193 + 1.194 +/* ::::: autocomplete ::::: */ 1.195 + 1.196 +.autocomplete-history-popup > menuitem { 1.197 + max-width: none !important; 1.198 + font: message-box; 1.199 +} 1.200 + 1.201 +/* ::::: tree column picker ::::: */ 1.202 + 1.203 +.treecell-popupcell-menu { 1.204 + -moz-margin-start: -2px; 1.205 + list-style-image: url("chrome://global/skin/columnselect.gif"); 1.206 + -moz-image-region: auto; 1.207 +}