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 | /* ===== datetimepicker.css ============================================= |
michael@0 | 6 | == Styles used by the XUL datepicker and timepicker 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 | @namespace html url("http://www.w3.org/1999/xhtml"); |
michael@0 | 11 | |
michael@0 | 12 | datepicker, timepicker { |
michael@0 | 13 | margin: 2px 4px; |
michael@0 | 14 | padding: 0; |
michael@0 | 15 | border: none; |
michael@0 | 16 | background: none; |
michael@0 | 17 | cursor: default; |
michael@0 | 18 | } |
michael@0 | 19 | |
michael@0 | 20 | .datetimepicker-input-box { |
michael@0 | 21 | -moz-appearance: textfield; |
michael@0 | 22 | cursor: text; |
michael@0 | 23 | -moz-margin-end: 2px; |
michael@0 | 24 | border: 2px solid; |
michael@0 | 25 | -moz-border-top-colors: ThreeDShadow ThreeDDarkShadow; |
michael@0 | 26 | -moz-border-right-colors: ThreeDHighlight ThreeDLightShadow; |
michael@0 | 27 | -moz-border-bottom-colors: ThreeDHighlight ThreeDLightShadow; |
michael@0 | 28 | -moz-border-left-colors: ThreeDShadow ThreeDDarkShadow; |
michael@0 | 29 | padding: 2px 0 3px 0; |
michael@0 | 30 | -moz-padding-start: 4px; |
michael@0 | 31 | -moz-padding-end: 2px; |
michael@0 | 32 | background-color: -moz-Field; |
michael@0 | 33 | color: -moz-FieldText; |
michael@0 | 34 | } |
michael@0 | 35 | |
michael@0 | 36 | .datetimepicker-input-subbox { |
michael@0 | 37 | width: 1.6em; |
michael@0 | 38 | } |
michael@0 | 39 | |
michael@0 | 40 | html|*.datetimepicker-input { |
michael@0 | 41 | text-align: end; |
michael@0 | 42 | } |
michael@0 | 43 | |
michael@0 | 44 | .datetimepicker-separator { |
michael@0 | 45 | margin: 0 !important; |
michael@0 | 46 | } |
michael@0 | 47 | |
michael@0 | 48 | .datetimepicker-year { |
michael@0 | 49 | width: 3.2em; |
michael@0 | 50 | } |
michael@0 | 51 | |
michael@0 | 52 | datepicker[readonly="true"], |
michael@0 | 53 | timepicker[readonly="true"] { |
michael@0 | 54 | background-color: -moz-Dialog; |
michael@0 | 55 | color: -moz-DialogText; |
michael@0 | 56 | } |
michael@0 | 57 | |
michael@0 | 58 | datepicker[disabled="true"], |
michael@0 | 59 | timepicker[disabled="true"] { |
michael@0 | 60 | cursor: default; |
michael@0 | 61 | background-color: -moz-Dialog; |
michael@0 | 62 | color: GrayText; |
michael@0 | 63 | } |
michael@0 | 64 | |
michael@0 | 65 | .datepicker-mainbox { |
michael@0 | 66 | margin: 2px 4px; |
michael@0 | 67 | border: 2px solid; |
michael@0 | 68 | -moz-border-top-colors: ThreeDShadow ThreeDDarkShadow; |
michael@0 | 69 | -moz-border-right-colors: ThreeDHighlight ThreeDLightShadow; |
michael@0 | 70 | -moz-border-bottom-colors: ThreeDHighlight ThreeDLightShadow; |
michael@0 | 71 | -moz-border-left-colors: ThreeDShadow ThreeDDarkShadow; |
michael@0 | 72 | background-color: -moz-Field; |
michael@0 | 73 | color: -moz-FieldText; |
michael@0 | 74 | } |
michael@0 | 75 | |
michael@0 | 76 | .datepicker-popupgrid > .datepicker-mainbox { |
michael@0 | 77 | margin: 0; |
michael@0 | 78 | border: none; |
michael@0 | 79 | } |
michael@0 | 80 | |
michael@0 | 81 | .datepicker-gridlabel, .datepicker-weeklabel { |
michael@0 | 82 | text-align: center; |
michael@0 | 83 | } |
michael@0 | 84 | |
michael@0 | 85 | .datepicker-gridlabel[today="true"] { |
michael@0 | 86 | background-color: darkgrey; |
michael@0 | 87 | color: white; |
michael@0 | 88 | } |
michael@0 | 89 | |
michael@0 | 90 | .datepicker-gridlabel[selected="true"] { |
michael@0 | 91 | background-color: Highlight; |
michael@0 | 92 | color: HighlightText; |
michael@0 | 93 | } |
michael@0 | 94 | |
michael@0 | 95 | .datepicker-button { |
michael@0 | 96 | -moz-appearance: none; |
michael@0 | 97 | min-width: 8px; |
michael@0 | 98 | padding: 0px; |
michael@0 | 99 | } |
michael@0 | 100 | |
michael@0 | 101 | .datepicker-previous { |
michael@0 | 102 | list-style-image: url("chrome://global/skin/arrow/arrow-lft.gif"); |
michael@0 | 103 | } |
michael@0 | 104 | |
michael@0 | 105 | .datepicker-next { |
michael@0 | 106 | list-style-image: url("chrome://global/skin/arrow/arrow-rit.gif"); |
michael@0 | 107 | } |
michael@0 | 108 | |
michael@0 | 109 | .datepicker-previous:hover { |
michael@0 | 110 | list-style-image: url("chrome://global/skin/arrow/arrow-lft-hov.gif"); |
michael@0 | 111 | } |
michael@0 | 112 | |
michael@0 | 113 | .datepicker-next:hover { |
michael@0 | 114 | list-style-image: url("chrome://global/skin/arrow/arrow-rit-hov.gif"); |
michael@0 | 115 | } |
michael@0 | 116 | |
michael@0 | 117 | .datepicker-previous[disabled="true"] { |
michael@0 | 118 | list-style-image: url("chrome://global/skin/arrow/arrow-lft-dis.gif"); |
michael@0 | 119 | } |
michael@0 | 120 | |
michael@0 | 121 | .datepicker-next[disabled="true"] { |
michael@0 | 122 | list-style-image: url("chrome://global/skin/arrow/arrow-rit-dis.gif"); |
michael@0 | 123 | } |
michael@0 | 124 | |
michael@0 | 125 | .datepicker-previous:-moz-locale-dir(rtl) { |
michael@0 | 126 | list-style-image: url("chrome://global/skin/arrow/arrow-rit.gif"); |
michael@0 | 127 | } |
michael@0 | 128 | |
michael@0 | 129 | .datepicker-next:-moz-locale-dir(rtl) { |
michael@0 | 130 | list-style-image: url("chrome://global/skin/arrow/arrow-lft.gif"); |
michael@0 | 131 | } |
michael@0 | 132 | |
michael@0 | 133 | .datepicker-previous:-moz-locale-dir(rtl) { |
michael@0 | 134 | list-style-image: url("chrome://global/skin/arrow/arrow-rit-hov.gif"); |
michael@0 | 135 | } |
michael@0 | 136 | |
michael@0 | 137 | .datepicker-next:-moz-locale-dir(rtl):hover { |
michael@0 | 138 | list-style-image: url("chrome://global/skin/arrow/arrow-lft-hov.gif"); |
michael@0 | 139 | } |
michael@0 | 140 | |
michael@0 | 141 | .datepicker-previous[disabled="true"]:-moz-locale-dir(rtl) { |
michael@0 | 142 | list-style-image: url("chrome://global/skin/arrow/arrow-rit-dis.gif"); |
michael@0 | 143 | } |
michael@0 | 144 | |
michael@0 | 145 | .datepicker-next[disabled="true"]:-moz-locale-dir(rtl) { |
michael@0 | 146 | list-style-image: url("chrome://global/skin/arrow/arrow-lft-dis.gif"); |
michael@0 | 147 | } |