toolkit/themes/osx/global/menu.css

Wed, 31 Dec 2014 06:09:35 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 06:09:35 +0100
changeset 0
6474c204b198
permissions
-rw-r--r--

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 @namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul");
michael@0 6
michael@0 7 menu,
michael@0 8 menuitem {
michael@0 9 -moz-appearance: menuitem;
michael@0 10 -moz-box-align: center;
michael@0 11 color: MenuText;
michael@0 12 font: -moz-pull-down-menu;
michael@0 13 list-style-image: none;
michael@0 14 -moz-image-region: auto;
michael@0 15 padding: 0 21px 2px;
michael@0 16 }
michael@0 17
michael@0 18 menu[disabled="true"], menuitem[disabled="true"],
michael@0 19 menu[_moz-menuactive="true"][disabled="true"],
michael@0 20 menuitem[_moz-menuactive="true"][disabled="true"] {
michael@0 21 color: -moz-mac-menutextdisable;
michael@0 22 }
michael@0 23
michael@0 24 /* ..... internal content .... */
michael@0 25
michael@0 26 .menu-text,
michael@0 27 .menu-iconic-text,
michael@0 28 .menu-accel,
michael@0 29 .menu-iconic-accel {
michael@0 30 margin: 0 !important;
michael@0 31 }
michael@0 32
michael@0 33 .menu-text,
michael@0 34 .menu-iconic-text {
michael@0 35 font-weight: inherit;
michael@0 36 color: inherit;
michael@0 37 }
michael@0 38
michael@0 39 .menu-description {
michael@0 40 font-style: italic;
michael@0 41 color: -moz-mac-menutextdisable;
michael@0 42 -moz-margin-start: 1ex !important;
michael@0 43 }
michael@0 44
michael@0 45 .menu-iconic-icon {
michael@0 46 height: 16px;
michael@0 47 margin-top: -2px;
michael@0 48 margin-bottom: -2px;
michael@0 49 -moz-margin-end: 5px;
michael@0 50 /* Empty icons shouldn't take up room, so we need to compensate
michael@0 51 * the 5px margin-end with a negative margin-start.
michael@0 52 */
michael@0 53 -moz-margin-start: -5px;
michael@0 54 }
michael@0 55
michael@0 56 /* menuitems with icons */
michael@0 57 .menuitem-iconic,
michael@0 58 .menu-iconic,
michael@0 59 menuitem[image],
michael@0 60 menuitem[src] {
michael@0 61 /* 2px higher than those without icons */
michael@0 62 padding-top: 1px;
michael@0 63 padding-bottom: 3px;
michael@0 64 }
michael@0 65
michael@0 66 .menuitem-iconic > .menu-iconic-left > .menu-iconic-icon,
michael@0 67 .menu-iconic > .menu-iconic-left > .menu-iconic-icon,
michael@0 68 menuitem[image] > .menu-iconic-left > .menu-iconic-icon,
michael@0 69 menuitem[src] > .menu-iconic-left > .menu-iconic-icon {
michael@0 70 -moz-margin-start: 0;
michael@0 71 width: 16px;
michael@0 72 }
michael@0 73
michael@0 74 /* ..... menu arrow box ..... */
michael@0 75
michael@0 76 .menu-right,
michael@0 77 .menu-accel-container {
michael@0 78 -moz-margin-start: 21px;
michael@0 79 -moz-box-pack: end;
michael@0 80 }
michael@0 81
michael@0 82 .menu-accel-container {
michael@0 83 -moz-margin-end: -9px;
michael@0 84 }
michael@0 85
michael@0 86 .menu-right {
michael@0 87 -moz-margin-end: -10px;
michael@0 88 width: 9px;
michael@0 89 list-style-image: url("chrome://global/skin/menu/menu-arrow.png");
michael@0 90 -moz-image-region: rect(0, 9px, 10px, 0);
michael@0 91 }
michael@0 92
michael@0 93 .menu-right[_moz-menuactive="true"]:not([disabled="true"]) {
michael@0 94 -moz-image-region: rect(0, 18px, 10px, 9px);
michael@0 95 }
michael@0 96
michael@0 97 .menu-right[disabled="true"] {
michael@0 98 -moz-image-region: rect(0, 27px, 10px, 18px);
michael@0 99 }
michael@0 100
michael@0 101 .menu-right:-moz-locale-dir(rtl) {
michael@0 102 transform: scaleX(-1);
michael@0 103 }
michael@0 104
michael@0 105 @media (min-resolution: 2dppx) {
michael@0 106 .menu-right > image {
michael@0 107 list-style-image: url("chrome://global/skin/menu/menu-arrow@2x.png");
michael@0 108 -moz-image-region: rect(0, 18px, 20px, 0);
michael@0 109 width: 9px;
michael@0 110 height: 10px;
michael@0 111 }
michael@0 112
michael@0 113 .menu-right[_moz-menuactive="true"]:not([disabled="true"]) > image {
michael@0 114 -moz-image-region: rect(0, 36px, 20px, 18px);
michael@0 115 }
michael@0 116
michael@0 117 .menu-right[disabled="true"] > image {
michael@0 118 -moz-image-region: rect(0, 54px, 20px, 36px);
michael@0 119 }
michael@0 120 }
michael@0 121
michael@0 122 /* ::::: menu/menuitems in menubar ::::: */
michael@0 123
michael@0 124 menubar > menu {
michael@0 125 -moz-appearance: none;
michael@0 126 padding: 2px 5px 2px 7px;
michael@0 127 margin: 1px 0;
michael@0 128 }
michael@0 129
michael@0 130 menubar > menu[_moz-menuactive="true"] {
michael@0 131 color: inherit;
michael@0 132 background-color: transparent;
michael@0 133 }
michael@0 134
michael@0 135 menubar > menu[_moz-menuactive="true"][open="true"] {
michael@0 136 -moz-appearance: menuitem;
michael@0 137 color: -moz-mac-menutextselect;
michael@0 138 }
michael@0 139
michael@0 140 /* ..... internal content .... */
michael@0 141
michael@0 142 .menubar-left {
michael@0 143 margin: 0 2px;
michael@0 144 color: inherit;
michael@0 145 }
michael@0 146
michael@0 147 .menubar-text {
michael@0 148 margin: 0 1px !important;
michael@0 149 color: inherit;
michael@0 150 }
michael@0 151
michael@0 152 /* ::::: menu/menuitems in popups ::::: */
michael@0 153
michael@0 154 menupopup > menu,
michael@0 155 menupopup > menuitem {
michael@0 156 max-width: 42em;
michael@0 157 }
michael@0 158
michael@0 159 menu[_moz-menuactive="true"],
michael@0 160 menuitem[_moz-menuactive="true"] {
michael@0 161 color: -moz-mac-menutextselect;
michael@0 162 background-color: Highlight;
michael@0 163 }
michael@0 164
michael@0 165 /* ::::: menu/menuitems in menulist popups ::::: */
michael@0 166
michael@0 167 .menulist-menupopup > menuitem,
michael@0 168 menulist > menupopup > menuitem,
michael@0 169 .menulist-menupopup > menu,
michael@0 170 menulist > menupopup > menu {
michael@0 171 max-width: none;
michael@0 172 font: inherit;
michael@0 173 color: -moz-FieldText;
michael@0 174 }
michael@0 175
michael@0 176 /* ::::: menuitems in editable menulist popups ::::: */
michael@0 177
michael@0 178 menulist[editable="true"] > menupopup > menuitem {
michael@0 179 -moz-appearance: none;
michael@0 180 }
michael@0 181
michael@0 182 menulist[editable="true"] > menupopup > menuitem > .menu-iconic-left {
michael@0 183 display: none;
michael@0 184 }
michael@0 185
michael@0 186 /* ::::: checked menuitems ::::: */
michael@0 187
michael@0 188 :not(menulist) > menupopup > menuitem[checked="true"] > .menu-iconic-left,
michael@0 189 :not(menulist) > menupopup > menuitem[selected="true"] > .menu-iconic-left {
michael@0 190 padding-top: 1px;
michael@0 191 -moz-margin-start: -15px;
michael@0 192 -moz-padding-start: 15px;
michael@0 193 background: -moz-image-rect("chrome://global/skin/menu/menu-check.png", 0, 11, 11, 0) bottom left no-repeat transparent;
michael@0 194 }
michael@0 195
michael@0 196 :not(menulist) > menupopup > menuitem[checked="true"] > .menu-iconic-left:-moz-locale-dir(rtl),
michael@0 197 :not(menulist) > menupopup > menuitem[selected="true"] > .menu-iconic-left:-moz-locale-dir(rtl) {
michael@0 198 background-position: bottom right;
michael@0 199 }
michael@0 200
michael@0 201 :not(menulist) > menupopup > menuitem[checked="true"][_moz-menuactive="true"]:not([disabled="true"]) > .menu-iconic-left,
michael@0 202 :not(menulist) > menupopup > menuitem[selected="true"][_moz-menuactive="true"]:not([disabled="true"]) > .menu-iconic-left {
michael@0 203 background-image: -moz-image-rect("chrome://global/skin/menu/menu-check.png", 0, 22, 11, 11);
michael@0 204 }
michael@0 205
michael@0 206 @media (min-resolution: 2dppx) {
michael@0 207 :not(menulist) > menupopup > menuitem[checked="true"] > .menu-iconic-left,
michael@0 208 :not(menulist) > menupopup > menuitem[selected="true"] > .menu-iconic-left {
michael@0 209 background-size: 11px 11px;
michael@0 210 background-image: -moz-image-rect("chrome://global/skin/menu/menu-check@2x.png", 0, 22, 22, 0);
michael@0 211 }
michael@0 212
michael@0 213 :not(menulist) > menupopup > menuitem[checked="true"][_moz-menuactive="true"]:not([disabled="true"]) > .menu-iconic-left,
michael@0 214 :not(menulist) > menupopup > menuitem[selected="true"][_moz-menuactive="true"]:not([disabled="true"]) > .menu-iconic-left {
michael@0 215 background-image: -moz-image-rect("chrome://global/skin/menu/menu-check@2x.png", 0, 44, 22, 22);
michael@0 216 }
michael@0 217 }
michael@0 218
michael@0 219 menulist:not([editable="true"]) > menupopup > menuitem[checked="true"]::before,
michael@0 220 menulist:not([editable="true"]) > menupopup > menuitem[selected="true"]::before {
michael@0 221 content: '\2713'; /* a checkmark */
michael@0 222 display: block;
michael@0 223 width: 15px;
michael@0 224 -moz-margin-start: -15px;
michael@0 225 }
michael@0 226
michael@0 227 /* ::::: menuseparator ::::: */
michael@0 228
michael@0 229 menuseparator {
michael@0 230 -moz-appearance: menuseparator;
michael@0 231 margin: 5px 0;
michael@0 232 padding: 1px 0 !important;
michael@0 233 }
michael@0 234
michael@0 235 /* ::::: autocomplete ::::: */
michael@0 236
michael@0 237 .autocomplete-history-popup > menuitem {
michael@0 238 max-width: none !important;
michael@0 239 font: message-box;
michael@0 240 }
michael@0 241
michael@0 242 /* ::::: tree column picker ::::: */
michael@0 243
michael@0 244 .treecell-popupcell-menu {
michael@0 245 margin-left: -2px;
michael@0 246 list-style-image: url("chrome://global/skin/columnselect.gif");
michael@0 247 -moz-image-region: auto;
michael@0 248 }

mercurial