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 | %filter substitution |
michael@0 | 6 | %include defines.inc |
michael@0 | 7 | |
michael@0 | 8 | .details { |
michael@0 | 9 | width: 100%; |
michael@0 | 10 | } |
michael@0 | 11 | |
michael@0 | 12 | .details > div { |
michael@0 | 13 | display: inline; |
michael@0 | 14 | } |
michael@0 | 15 | |
michael@0 | 16 | .version { |
michael@0 | 17 | /* title is not localized, so keep the margin on the left side */ |
michael@0 | 18 | margin-left: .67em; |
michael@0 | 19 | } |
michael@0 | 20 | |
michael@0 | 21 | #header-button { |
michael@0 | 22 | background-image: url("chrome://browser/skin/images/amo-logo.png"), url("chrome://browser/skin/images/chevron.png"); |
michael@0 | 23 | background-size: 20px 20px, 8px 20px; |
michael@0 | 24 | background-position: left, right 3px center; |
michael@0 | 25 | } |
michael@0 | 26 | |
michael@0 | 27 | .description { |
michael@0 | 28 | width: 100%; |
michael@0 | 29 | overflow: hidden; |
michael@0 | 30 | white-space: nowrap; |
michael@0 | 31 | text-overflow: ellipsis; |
michael@0 | 32 | } |
michael@0 | 33 | |
michael@0 | 34 | .status { |
michael@0 | 35 | background-color: @color_about_item_inner@; |
michael@0 | 36 | border-top: 2px solid; |
michael@0 | 37 | -moz-border-top-colors: #bac2ac #ffffff; |
michael@0 | 38 | font-weight: bold; |
michael@0 | 39 | padding: 0.5em; |
michael@0 | 40 | width: 100%; |
michael@0 | 41 | } |
michael@0 | 42 | |
michael@0 | 43 | .options-header { |
michael@0 | 44 | font-weight: bold; |
michael@0 | 45 | text-transform: uppercase; |
michael@0 | 46 | margin-top: 1em; |
michael@0 | 47 | } |
michael@0 | 48 | |
michael@0 | 49 | .addon-item[isDisabled="true"] .options-header, |
michael@0 | 50 | .addon-item:not([optionsURL]) .options-header, |
michael@0 | 51 | .addon-item[optionsURL=""] .options-header, |
michael@0 | 52 | .addon-item[isDisabled="true"] .options-box, |
michael@0 | 53 | .addon-item:not([optionsURL]) .options-box, |
michael@0 | 54 | .addon-item[optionsURL=""] .options-box { |
michael@0 | 55 | display: none; |
michael@0 | 56 | } |
michael@0 | 57 | |
michael@0 | 58 | /* Settings */ |
michael@0 | 59 | |
michael@0 | 60 | setting { |
michael@0 | 61 | padding-bottom: 1em; |
michael@0 | 62 | -moz-box-align: center; |
michael@0 | 63 | box-sizing: border-box; |
michael@0 | 64 | width: 100%; |
michael@0 | 65 | } |
michael@0 | 66 | |
michael@0 | 67 | setting[type="integer"], |
michael@0 | 68 | setting[type="string"], |
michael@0 | 69 | setting[type="menulist"], |
michael@0 | 70 | setting[type="control"] { |
michael@0 | 71 | -moz-box-orient: vertical; |
michael@0 | 72 | -moz-box-align: start; |
michael@0 | 73 | } |
michael@0 | 74 | |
michael@0 | 75 | setting > vbox { |
michael@0 | 76 | -moz-box-flex: 1; |
michael@0 | 77 | } |
michael@0 | 78 | |
michael@0 | 79 | .preferences-description { |
michael@0 | 80 | margin-top: 4px; |
michael@0 | 81 | color: #666; |
michael@0 | 82 | } |
michael@0 | 83 | |
michael@0 | 84 | .preferences-description:empty { |
michael@0 | 85 | display: none; |
michael@0 | 86 | } |
michael@0 | 87 | |
michael@0 | 88 | /* Checkbox */ |
michael@0 | 89 | |
michael@0 | 90 | checkbox { |
michael@0 | 91 | -moz-binding: url("chrome://global/content/bindings/checkbox.xml#checkbox-with-spacing") !important; |
michael@0 | 92 | margin: 0; |
michael@0 | 93 | } |
michael@0 | 94 | |
michael@0 | 95 | checkbox[label=""] > .checkbox-label-box, |
michael@0 | 96 | checkbox:not([label]) > .checkbox-label-box { |
michael@0 | 97 | display: none; |
michael@0 | 98 | } |
michael@0 | 99 | |
michael@0 | 100 | .checkbox-check { |
michael@0 | 101 | background-color: transparent; |
michael@0 | 102 | background-image: url("chrome://browser/skin/images/checkbox_unchecked.png"); |
michael@0 | 103 | border: none; |
michael@0 | 104 | height: 48px; |
michael@0 | 105 | width: 48px; |
michael@0 | 106 | } |
michael@0 | 107 | |
michael@0 | 108 | setting:active checkbox > .checkbox-spacer-box > .checkbox-check { |
michael@0 | 109 | background-image: url("chrome://browser/skin/images/checkbox_unchecked_pressed.png"); |
michael@0 | 110 | } |
michael@0 | 111 | |
michael@0 | 112 | checkbox[disabled="true"] > .checkbox-spacer-box > .checkbox-check { |
michael@0 | 113 | background-image: url("chrome://browser/skin/images/checkbox_unchecked_disabled.png"); |
michael@0 | 114 | } |
michael@0 | 115 | |
michael@0 | 116 | checkbox[checked="true"] > .checkbox-spacer-box > .checkbox-check { |
michael@0 | 117 | background-image: url("chrome://browser/skin/images/checkbox_checked.png"); |
michael@0 | 118 | } |
michael@0 | 119 | |
michael@0 | 120 | setting:active checkbox[checked="true"] > .checkbox-spacer-box > .checkbox-check { |
michael@0 | 121 | background-image: url("chrome://browser/skin/images/checkbox_checked_pressed.png"); |
michael@0 | 122 | } |
michael@0 | 123 | |
michael@0 | 124 | checkbox[checked="true"][disabled="true"] > .checkbox-spacer-box > .checkbox-check { |
michael@0 | 125 | background-image: url("chrome://browser/skin/images/checkbox_checked_disabled.png"); |
michael@0 | 126 | } |
michael@0 | 127 | |
michael@0 | 128 | /* Textbox */ |
michael@0 | 129 | |
michael@0 | 130 | textbox[type="number"] > spinbuttons { |
michael@0 | 131 | visibility: collapse; |
michael@0 | 132 | } |
michael@0 | 133 | |
michael@0 | 134 | textbox { |
michael@0 | 135 | min-width: 200px; |
michael@0 | 136 | margin: 2px 0; |
michael@0 | 137 | padding: 0.5em !important; |
michael@0 | 138 | background: #fff; |
michael@0 | 139 | border: 1px solid #ccc; |
michael@0 | 140 | border-radius: 4px; |
michael@0 | 141 | color: #333; |
michael@0 | 142 | } |
michael@0 | 143 | |
michael@0 | 144 | /* Button */ |
michael@0 | 145 | |
michael@0 | 146 | button { |
michael@0 | 147 | margin: 2px 0; |
michael@0 | 148 | background: #fff; |
michael@0 | 149 | border: 1px solid #ccc; |
michael@0 | 150 | padding: 0.5em; |
michael@0 | 151 | } |
michael@0 | 152 | |
michael@0 | 153 | /* Menulist */ |
michael@0 | 154 | |
michael@0 | 155 | menulist { |
michael@0 | 156 | -moz-appearance: none !important; |
michael@0 | 157 | -moz-user-focus: ignore; |
michael@0 | 158 | min-width: 200px; |
michael@0 | 159 | margin: 2px 0; |
michael@0 | 160 | background: #fff; |
michael@0 | 161 | border: 1px solid #ccc; |
michael@0 | 162 | border-radius: 4px; |
michael@0 | 163 | padding: 0.5em; |
michael@0 | 164 | } |
michael@0 | 165 | |
michael@0 | 166 | menulist > dropmarker { |
michael@0 | 167 | height: 1.8em; |
michael@0 | 168 | width: 1.8em; |
michael@0 | 169 | margin-left: @margin_snormal@; |
michael@0 | 170 | background-color: transparent; |
michael@0 | 171 | border: none; |
michael@0 | 172 | -moz-box-align: center; |
michael@0 | 173 | -moz-box-pack: center; |
michael@0 | 174 | list-style-image: url("chrome://browser/skin/images/dropmarker.svg") !important; |
michael@0 | 175 | -moz-image-region: auto; |
michael@0 | 176 | display: block; |
michael@0 | 177 | } |
michael@0 | 178 | |
michael@0 | 179 | /* Select */ |
michael@0 | 180 | |
michael@0 | 181 | select { |
michael@0 | 182 | min-width: 200px; |
michael@0 | 183 | margin: 2px 0; |
michael@0 | 184 | background: #fff; |
michael@0 | 185 | border: 1px solid #ccc; |
michael@0 | 186 | border-radius: 4px; |
michael@0 | 187 | padding: 1em; |
michael@0 | 188 | } |
michael@0 | 189 | |
michael@0 | 190 | /* XBL bindings */ |
michael@0 | 191 | |
michael@0 | 192 | settings { |
michael@0 | 193 | -moz-binding: url("chrome://mozapps/content/extensions/setting.xml#settings"); |
michael@0 | 194 | } |
michael@0 | 195 | |
michael@0 | 196 | setting { |
michael@0 | 197 | display: none; |
michael@0 | 198 | } |
michael@0 | 199 | |
michael@0 | 200 | setting[type="bool"] { |
michael@0 | 201 | display: -moz-box; |
michael@0 | 202 | -moz-binding: url("chrome://browser/content/bindings/settings.xml#setting-fulltoggle-bool"); |
michael@0 | 203 | } |
michael@0 | 204 | |
michael@0 | 205 | setting[type="bool"][localized="true"] { |
michael@0 | 206 | display: -moz-box; |
michael@0 | 207 | -moz-binding: url("chrome://browser/content/bindings/settings.xml#setting-fulltoggle-localized-bool"); |
michael@0 | 208 | } |
michael@0 | 209 | |
michael@0 | 210 | setting[type="boolint"] { |
michael@0 | 211 | display: -moz-box; |
michael@0 | 212 | -moz-binding: url("chrome://browser/content/bindings/settings.xml#setting-fulltoggle-boolint"); |
michael@0 | 213 | } |
michael@0 | 214 | |
michael@0 | 215 | setting[type="integer"] { |
michael@0 | 216 | display: -moz-box; |
michael@0 | 217 | -moz-binding: url("chrome://mozapps/content/extensions/setting.xml#setting-integer"); |
michael@0 | 218 | } |
michael@0 | 219 | |
michael@0 | 220 | setting[type="control"] { |
michael@0 | 221 | display: -moz-box; |
michael@0 | 222 | -moz-binding: url("chrome://mozapps/content/extensions/setting.xml#setting-control"); |
michael@0 | 223 | } |
michael@0 | 224 | |
michael@0 | 225 | setting[type="string"] { |
michael@0 | 226 | display: -moz-box; |
michael@0 | 227 | -moz-binding: url("chrome://mozapps/content/extensions/setting.xml#setting-string"); |
michael@0 | 228 | } |
michael@0 | 229 | |
michael@0 | 230 | setting[type="radio"], |
michael@0 | 231 | setting[type="menulist"] { |
michael@0 | 232 | display: -moz-box; |
michael@0 | 233 | -moz-binding: url("chrome://mozapps/content/extensions/setting.xml#setting-multi"); |
michael@0 | 234 | } |
michael@0 | 235 | |
michael@0 | 236 | .hide-on-enable, |
michael@0 | 237 | .show-on-error, |
michael@0 | 238 | .show-on-uninstall, |
michael@0 | 239 | .show-on-install, |
michael@0 | 240 | .show-on-restart, |
michael@0 | 241 | div[isDisabled="true"] .hide-on-disable { |
michael@0 | 242 | display: none; |
michael@0 | 243 | } |
michael@0 | 244 | |
michael@0 | 245 | div[error] .show-on-error, |
michael@0 | 246 | div[opType="needs-restart"] .show-on-restart, |
michael@0 | 247 | div[opType="needs-uninstall"] .show-on-uninstall, |
michael@0 | 248 | div[opType="needs-install"] .show-on-install, |
michael@0 | 249 | div[opType="needs-enable"] .show-on-enable, |
michael@0 | 250 | div[opType="needs-disable"] .show-on-disable, |
michael@0 | 251 | div[isDisabled="true"] .show-on-disable { |
michael@0 | 252 | display: -moz-box; |
michael@0 | 253 | } |
michael@0 | 254 | |
michael@0 | 255 | div[opType="needs-restart"] .hide-on-restart, |
michael@0 | 256 | div[opType="needs-uninstall"] .hide-on-uninstall, |
michael@0 | 257 | div[isDisabled="true"][opType="needs-uninstall"], |
michael@0 | 258 | div[opType="needs-install"] .hide-on-install, |
michael@0 | 259 | div[opType="needs-enable"] .hide-on-enable, |
michael@0 | 260 | div[opType="needs-disable"] .hide-on-disable { |
michael@0 | 261 | display: none; |
michael@0 | 262 | } |
michael@0 | 263 | |
michael@0 | 264 | #addons-list, #addons-details { |
michael@0 | 265 | display: none; |
michael@0 | 266 | } |