Thu, 22 Jan 2015 13:21:57 +0100
Incorporate requested changes from Mozilla in review:
https://bugzilla.mozilla.org/show_bug.cgi?id=1123480#c6
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 | @namespace html url("http://www.w3.org/1999/xhtml"); |
michael@0 | 7 | |
michael@0 | 8 | menulist { |
michael@0 | 9 | -moz-appearance: menulist; |
michael@0 | 10 | margin: 5px 2px 3px; |
michael@0 | 11 | min-height: 20px !important; |
michael@0 | 12 | color: -moz-DialogText; |
michael@0 | 13 | text-shadow: none; |
michael@0 | 14 | } |
michael@0 | 15 | |
michael@0 | 16 | .menulist-label-box { |
michael@0 | 17 | -moz-appearance: menulist-text; |
michael@0 | 18 | -moz-box-align: center; |
michael@0 | 19 | -moz-box-pack: center; |
michael@0 | 20 | margin-bottom: 1px; |
michael@0 | 21 | } |
michael@0 | 22 | |
michael@0 | 23 | .menulist-label { |
michael@0 | 24 | margin: 1px 3px !important; |
michael@0 | 25 | } |
michael@0 | 26 | |
michael@0 | 27 | .menulist-description { |
michael@0 | 28 | font-style: italic; |
michael@0 | 29 | color: GrayText; |
michael@0 | 30 | -moz-margin-start: 1ex !important; |
michael@0 | 31 | } |
michael@0 | 32 | |
michael@0 | 33 | /* ..... dropmarker ..... */ |
michael@0 | 34 | |
michael@0 | 35 | .menulist-dropmarker { |
michael@0 | 36 | display: none; |
michael@0 | 37 | } |
michael@0 | 38 | |
michael@0 | 39 | /* ..... disabled state ..... */ |
michael@0 | 40 | |
michael@0 | 41 | menulist[disabled="true"] { |
michael@0 | 42 | color: GrayText; |
michael@0 | 43 | } |
michael@0 | 44 | |
michael@0 | 45 | menulist[disabled="true"] > .menulist-dropmarker { |
michael@0 | 46 | -moz-padding-start: 7px !important; |
michael@0 | 47 | } |
michael@0 | 48 | |
michael@0 | 49 | /* ::::: editable menulists ::::: */ |
michael@0 | 50 | |
michael@0 | 51 | menulist[editable="true"] { |
michael@0 | 52 | -moz-appearance: menulist-textfield; |
michael@0 | 53 | margin: 4px 2px; |
michael@0 | 54 | } |
michael@0 | 55 | |
michael@0 | 56 | html|*.menulist-editable-input { |
michael@0 | 57 | margin: 0px !important; |
michael@0 | 58 | border: none !important; |
michael@0 | 59 | padding: 0px !important; |
michael@0 | 60 | background: inherit; |
michael@0 | 61 | font: inherit; |
michael@0 | 62 | } |
michael@0 | 63 | |
michael@0 | 64 | /* ::::: compact menulists ::::: */ |
michael@0 | 65 | |
michael@0 | 66 | .menulist-compact { |
michael@0 | 67 | -moz-box-align: center; |
michael@0 | 68 | -moz-box-pack: center; |
michael@0 | 69 | margin: 0; |
michael@0 | 70 | border: 2px solid; |
michael@0 | 71 | -moz-border-top-colors: ThreeDLightShadow ThreeDHighlight; |
michael@0 | 72 | -moz-border-right-colors: ThreeDDarkShadow ThreeDShadow; |
michael@0 | 73 | -moz-border-bottom-colors: ThreeDDarkShadow ThreeDShadow; |
michael@0 | 74 | -moz-border-left-colors: ThreeDLightShadow ThreeDHighlight; |
michael@0 | 75 | background-color: -moz-Dialog; |
michael@0 | 76 | } |
michael@0 | 77 | |
michael@0 | 78 | .menulist-compact > .menulist-label { |
michael@0 | 79 | margin: 0 3px !important; |
michael@0 | 80 | text-align: end; |
michael@0 | 81 | } |
michael@0 | 82 | |
michael@0 | 83 | .menulist-compact > .menulist-dropmarker { |
michael@0 | 84 | -moz-margin-start: 2px; |
michael@0 | 85 | border: none; |
michael@0 | 86 | padding: 0 !important; |
michael@0 | 87 | background: transparent; |
michael@0 | 88 | } |
michael@0 | 89 | |
michael@0 | 90 | .menulist-compact[open="true"] { |
michael@0 | 91 | -moz-border-top-colors: ThreeDDarkShadow ThreeDShadow; |
michael@0 | 92 | -moz-border-right-colors: ThreeDDarkShadow ThreeDShadow; |
michael@0 | 93 | -moz-border-bottom-colors: ThreeDDarkShadow ThreeDShadow; |
michael@0 | 94 | -moz-border-left-colors: ThreeDDarkShadow ThreeDShadow; |
michael@0 | 95 | background-color: ThreeDShadow; |
michael@0 | 96 | } |