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 | /* |
michael@0 | 6 | * The default namespace for this file is XUL. Be sure to prefix rules that |
michael@0 | 7 | * are applicable to both XUL and HTML with '*|'. |
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 | /* Page background */ |
michael@0 | 13 | *|*:root { |
michael@0 | 14 | -moz-appearance: none; |
michael@0 | 15 | padding: 18px; |
michael@0 | 16 | background-repeat: repeat; |
michael@0 | 17 | color: -moz-dialogText; |
michael@0 | 18 | background-color: -moz-dialog; |
michael@0 | 19 | background-image: /* Texture */ |
michael@0 | 20 | url("chrome://global/skin/inContentUI/background-texture.png"); |
michael@0 | 21 | } |
michael@0 | 22 | |
michael@0 | 23 | html|html { |
michael@0 | 24 | font: message-box; |
michael@0 | 25 | } |
michael@0 | 26 | |
michael@0 | 27 | %ifdef WINDOWS_AERO |
michael@0 | 28 | @media (-moz-windows-default-theme) and (-moz-os-version: windows-vista), |
michael@0 | 29 | (-moz-windows-default-theme) and (-moz-os-version: windows-win7) { |
michael@0 | 30 | *|*:root { |
michael@0 | 31 | color: #000; |
michael@0 | 32 | background-color: #CCD9EA; |
michael@0 | 33 | } |
michael@0 | 34 | } |
michael@0 | 35 | |
michael@0 | 36 | @media (-moz-windows-glass) { |
michael@0 | 37 | *|*:root { |
michael@0 | 38 | /* Blame shorlander for this monstrosity. */ |
michael@0 | 39 | background-image: /* Side gradients */ |
michael@0 | 40 | linear-gradient(to right, |
michael@0 | 41 | rgba(255,255,255,0.2), rgba(255,255,255,0) 40%, |
michael@0 | 42 | rgba(255,255,255,0) 60%, rgba(255,255,255,0.2)), |
michael@0 | 43 | /* Aero-style light beams */ |
michael@0 | 44 | -moz-linear-gradient(left 32deg, |
michael@0 | 45 | /* First light beam */ |
michael@0 | 46 | rgba(255,255,255,0) 19.5%, rgba(255,255,255,0.1) 20%, |
michael@0 | 47 | rgba(255,255,255,0.1) 21.5%, rgba(255,255,255,0.2) 22%, |
michael@0 | 48 | rgba(255,255,255,0.2) 25.5%, rgba(255,255,255,0.1) 26%, |
michael@0 | 49 | rgba(255,255,255,0.1) 27.5%, rgba(255,255,255,0) 28%, |
michael@0 | 50 | /* Second light beam */ |
michael@0 | 51 | rgba(255,255,255,0) 49.5%, rgba(255,255,255,0.1) 50%, |
michael@0 | 52 | rgba(255,255,255,0.1) 52.5%, rgba(255,255,255,0.2) 53%, |
michael@0 | 53 | rgba(255,255,255,0.2) 54.5%, rgba(255,255,255,0.1) 55%, |
michael@0 | 54 | rgba(255,255,255,0.1) 57.5%, rgba(255,255,255,0) 58%, |
michael@0 | 55 | /* Third light beam */ |
michael@0 | 56 | rgba(255,255,255,0) 87%, rgba(255,255,255,0.2) 90%), |
michael@0 | 57 | /* Texture */ |
michael@0 | 58 | url("chrome://global/skin/inContentUI/background-texture.png"); |
michael@0 | 59 | } |
michael@0 | 60 | } |
michael@0 | 61 | %endif |
michael@0 | 62 | |
michael@0 | 63 | /* Content */ |
michael@0 | 64 | *|*.main-content { |
michael@0 | 65 | /* Needed to allow the radius to clip the inner content, see bug 595656 */ |
michael@0 | 66 | overflow: hidden; |
michael@0 | 67 | background-color: rgba(255, 255, 255, 0.35); |
michael@0 | 68 | background-image: linear-gradient(rgba(255, 255, 255, 0), |
michael@0 | 69 | rgba(255, 255, 255, 0.75)); |
michael@0 | 70 | border: 1px solid #C3CEDF; |
michael@0 | 71 | } |
michael@0 | 72 | |
michael@0 | 73 | %ifdef WINDOWS_AERO |
michael@0 | 74 | @media (-moz-os-version: windows-vista), |
michael@0 | 75 | (-moz-os-version: windows-win7) { |
michael@0 | 76 | %endif |
michael@0 | 77 | *|*.main-content { |
michael@0 | 78 | border-radius: 5px; |
michael@0 | 79 | } |
michael@0 | 80 | %ifdef WINDOWS_AERO |
michael@0 | 81 | } |
michael@0 | 82 | |
michael@0 | 83 | @media (-moz-windows-glass) { |
michael@0 | 84 | /* Buttons */ |
michael@0 | 85 | *|button, |
michael@0 | 86 | menulist, |
michael@0 | 87 | colorpicker[type="button"] { |
michael@0 | 88 | -moz-appearance: none; |
michael@0 | 89 | color: black; |
michael@0 | 90 | padding: 0 5px; |
michael@0 | 91 | background: linear-gradient(rgba(251, 252, 253, 0.95), rgba(246, 247, 248, 0) 49%, |
michael@0 | 92 | rgba(211, 212, 213, 0.45) 51%, rgba(225, 226, 229, 0.3)); |
michael@0 | 93 | background-clip: padding-box; |
michael@0 | 94 | border-radius: 3px; |
michael@0 | 95 | border: 1px solid rgba(31, 64, 100, 0.4); |
michael@0 | 96 | border-top-color: rgba(31, 64, 100, 0.3); |
michael@0 | 97 | box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.25) inset, |
michael@0 | 98 | 0 0 2px 1px rgba(255, 255, 255, 0.25) inset; |
michael@0 | 99 | } |
michael@0 | 100 | |
michael@0 | 101 | menulist { |
michael@0 | 102 | -moz-padding-end: 0; |
michael@0 | 103 | } |
michael@0 | 104 | |
michael@0 | 105 | colorpicker[type="button"]:-moz-focusring:not([open="true"]) > .colorpicker-button-colorbox { |
michael@0 | 106 | outline: 1px dotted ThreeDDarkShadow; |
michael@0 | 107 | } |
michael@0 | 108 | |
michael@0 | 109 | html|button[disabled], |
michael@0 | 110 | button[disabled="true"], |
michael@0 | 111 | menulist[disabled="true"], |
michael@0 | 112 | colorpicker[type="button"][disabled="true"] { |
michael@0 | 113 | -moz-border-top-colors: rgba(31, 64, 100, 0.3) !important; |
michael@0 | 114 | -moz-border-right-colors: rgba(31, 64, 100, 0.4) !important; |
michael@0 | 115 | -moz-border-bottom-colors: rgba(31, 64, 100, 0.4) !important; |
michael@0 | 116 | -moz-border-left-colors: rgba(31, 64, 100, 0.4) !important; |
michael@0 | 117 | opacity: 0.8; |
michael@0 | 118 | color: #505050; |
michael@0 | 119 | } |
michael@0 | 120 | |
michael@0 | 121 | html|button:not([disabled]):active:hover, |
michael@0 | 122 | button:not([disabled="true"]):active:hover, |
michael@0 | 123 | menulist[open="true"]:not([disabled="true"]), |
michael@0 | 124 | colorpicker[type="button"][open="true"]:not([disabled="true"]) { |
michael@0 | 125 | background-color: rgba(61, 76, 92, 0.2); |
michael@0 | 126 | border-color: rgba(39, 53, 68, 0.5); |
michael@0 | 127 | box-shadow: 0 0 3px 1px rgba(39, 53, 68, 0.2) inset; |
michael@0 | 128 | } |
michael@0 | 129 | |
michael@0 | 130 | button > .button-box { |
michael@0 | 131 | padding: 1px !important; |
michael@0 | 132 | } |
michael@0 | 133 | |
michael@0 | 134 | spinbuttons > .spinbuttons-box > .spinbuttons-button { |
michael@0 | 135 | border-radius: 0; |
michael@0 | 136 | padding: 0 4px; |
michael@0 | 137 | } |
michael@0 | 138 | |
michael@0 | 139 | spinbuttons > .spinbuttons-box > .spinbuttons-up { |
michael@0 | 140 | list-style-image: url("chrome://global/skin/arrow/arrow-up.gif"); |
michael@0 | 141 | border-bottom-width: 0; |
michael@0 | 142 | } |
michael@0 | 143 | |
michael@0 | 144 | spinbuttons > .spinbuttons-box > .spinbuttons-down { |
michael@0 | 145 | list-style-image: url("chrome://global/skin/arrow/arrow-dn.gif"); |
michael@0 | 146 | } |
michael@0 | 147 | } |
michael@0 | 148 | %endif |
michael@0 | 149 | |
michael@0 | 150 | colorpicker[type="button"] { |
michael@0 | 151 | margin: 1px 5px 2px 5px; |
michael@0 | 152 | padding: 3px; |
michael@0 | 153 | height: 25px; |
michael@0 | 154 | } |