| 1 | /* ***** BEGIN LICENSE BLOCK ***** |
| 2 | * Version: MPL 1.1/GPL 2.0/LGPL 2.1 |
| 3 | * |
| 4 | * The contents of this file are subject to the Mozilla Public License Version |
| 5 | * 1.1 (the "License"); you may not use this file except in compliance with |
| 6 | * the License. You may obtain a copy of the License at |
| 7 | * http://www.mozilla.org/MPL/ |
| 8 | * |
| 9 | * Software distributed under the License is distributed on an "AS IS" basis, |
| 10 | * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License |
| 11 | * for the specific language governing rights and limitations under the |
| 12 | * License. |
| 13 | * |
| 14 | * The Original Code is the Extension Manager UI. |
| 15 | * |
| 16 | * The Initial Developer of the Original Code is |
| 17 | * the Mozilla Foundation. |
| 18 | * Portions created by the Initial Developer are Copyright (C) 2010 |
| 19 | * the Initial Developer. All Rights Reserved. |
| 20 | * |
| 21 | * Contributor(s): |
| 22 | * Blair McBride <bmcbride@mozilla.com> |
| 23 | * |
| 24 | * Alternatively, the contents of this file may be used under the terms of |
| 25 | * either the GNU General Public License Version 2 or later (the "GPL"), or |
| 26 | * the GNU Lesser General Public License Version 2.1 or later (the "LGPL"), |
| 27 | * in which case the provisions of the GPL or the LGPL are applicable instead |
| 28 | * of those above. If you wish to allow use of your version of this file only |
| 29 | * under the terms of either the GPL or the LGPL, and not to allow others to |
| 30 | * use your version of this file under the terms of the MPL, indicate your |
| 31 | * decision by deleting the provisions above and replace them with the notice |
| 32 | * and other provisions required by the GPL or the LGPL. If you do not delete |
| 33 | * the provisions above, a recipient may use your version of this file under |
| 34 | * the terms of any one of the MPL, the GPL or the LGPL. |
| 35 | * |
| 36 | * ***** END LICENSE BLOCK ***** */ |
| 37 | |
| 38 | @import url("chrome://global/skin/inContentUI.css"); |
| 39 | |
| 40 | @namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"); |
| 41 | |
| 42 | .nav-button { |
| 43 | list-style-image: url("chrome://communicator/skin/icons/communicatoricons.png"); |
| 44 | } |
| 45 | |
| 46 | #forward-btn { |
| 47 | -moz-border-start: none; |
| 48 | } |
| 49 | |
| 50 | #back-btn:-moz-locale-dir(ltr), |
| 51 | #forward-btn:-moz-locale-dir(rtl) { |
| 52 | -moz-image-region: rect(42px 25px 63px 0px); |
| 53 | } |
| 54 | |
| 55 | #back-btn[disabled="true"]:-moz-locale-dir(ltr), |
| 56 | #forward-btn[disabled="true"]:-moz-locale-dir(rtl) { |
| 57 | -moz-image-region: rect(42px 50px 63px 25px); |
| 58 | } |
| 59 | |
| 60 | #back-btn:-moz-locale-dir(rtl), |
| 61 | #forward-btn:-moz-locale-dir(ltr) { |
| 62 | -moz-image-region: rect(63px 25px 84px 0px); |
| 63 | } |
| 64 | |
| 65 | #back-btn[disabled="true"]:-moz-locale-dir(rtl), |
| 66 | #forward-btn[disabled="true"]:-moz-locale-dir(ltr) { |
| 67 | -moz-image-region: rect(63px 50px 84px 25px); |
| 68 | } |
| 69 | |
| 70 | |
| 71 | /*** global warnings ***/ |
| 72 | |
| 73 | .global-warning-container { |
| 74 | overflow-x: hidden; |
| 75 | } |
| 76 | |
| 77 | .global-warning { |
| 78 | -moz-box-align: center; |
| 79 | padding: 0 8px; |
| 80 | color: #000000; |
| 81 | font-weight: bold; |
| 82 | } |
| 83 | |
| 84 | #addons-page[warning] .global-warning-container { |
| 85 | background-color: #FFCF00; |
| 86 | } |
| 87 | |
| 88 | #detail-view .global-warning { |
| 89 | padding: 4px 12px; |
| 90 | border-bottom: 3px solid #000000; |
| 91 | } |
| 92 | |
| 93 | @media (max-width: 600px) { |
| 94 | .global-warning-text { |
| 95 | display: none; |
| 96 | } |
| 97 | |
| 98 | .global-warning .warning-icon { |
| 99 | /* background-color: #FFF; |
| 100 | box-shadow: 0px 0px 2px 5px #FFF; |
| 101 | border-radius: 10px; */ |
| 102 | } |
| 103 | } |
| 104 | |
| 105 | /*** global informations ***/ |
| 106 | #addons-page .global-info-container { |
| 107 | background-color: #9C9CFF; |
| 108 | border-top-right-radius: 5px; |
| 109 | border-top-left-radius: 5px; |
| 110 | } |
| 111 | |
| 112 | /* Plugins aren't yet disabled by safemode (bug 342333), |
| 113 | so don't show that warning when viewing plugins. */ |
| 114 | #addons-page[warning="safemode"] .view-pane[type="plugin"] .global-warning-container, |
| 115 | #addons-page[warning="safemode"] #detail-view[loading="true"] .global-warning-container { |
| 116 | background-color: inherit; |
| 117 | background-image: none; |
| 118 | } |
| 119 | |
| 120 | |
| 121 | /*** notification icons ***/ |
| 122 | |
| 123 | .warning-icon { |
| 124 | list-style-image: url("chrome://global/skin/icons/warning-16.png"); |
| 125 | width: 16px; |
| 126 | height: 16px; |
| 127 | margin: 1px 0; |
| 128 | } |
| 129 | |
| 130 | .error-icon { |
| 131 | list-style-image: url("chrome://global/skin/icons/error-16.png"); |
| 132 | width: 16px; |
| 133 | height: 16px; |
| 134 | margin: 1px 0; |
| 135 | } |
| 136 | |
| 137 | .pending-icon, |
| 138 | .info-icon { |
| 139 | list-style-image: url("chrome://global/skin/icons/information-16.png"); |
| 140 | width: 16px; |
| 141 | height: 16px; |
| 142 | margin: 1px 0; |
| 143 | } |
| 144 | |
| 145 | .addon-view[pending="disable"] .pending-icon, |
| 146 | .addon-view[pending="uninstall"] .pending-icon { |
| 147 | list-style-image: url("chrome://global/skin/icons/warning-16.png"); |
| 148 | width: 16px; |
| 149 | height: 15px; |
| 150 | margin: 3px 0; |
| 151 | } |
| 152 | |
| 153 | |
| 154 | /*** view alert boxes ***/ |
| 155 | |
| 156 | .alert-container { |
| 157 | -moz-box-align: center; |
| 158 | } |
| 159 | |
| 160 | .alert-spacer-before { |
| 161 | -moz-box-flex: 1; |
| 162 | } |
| 163 | |
| 164 | .alert-spacer-after { |
| 165 | -moz-box-flex: 3; |
| 166 | } |
| 167 | |
| 168 | .alert { |
| 169 | -moz-box-align: center; |
| 170 | padding: 10px; |
| 171 | color: #FF9F00; |
| 172 | border: 1px solid #9C9CFF; |
| 173 | border-radius: 8px; |
| 174 | background-color: #000000; |
| 175 | background-clip: padding-box; |
| 176 | } |
| 177 | |
| 178 | .alert .alert-title { |
| 179 | font-weight: bold; |
| 180 | font-size: 200%; |
| 181 | margin-bottom: 15px; |
| 182 | } |
| 183 | |
| 184 | .alert button { |
| 185 | margin: 1em 2em; |
| 186 | } |
| 187 | |
| 188 | .loading { |
| 189 | list-style-image: url("chrome://global/skin/icons/loading.gif"); |
| 190 | padding-left: 20px; |
| 191 | padding-right: 20px; |
| 192 | } |
| 193 | |
| 194 | |
| 195 | /*** category selector ***/ |
| 196 | |
| 197 | #categories { |
| 198 | -moz-appearance: none; |
| 199 | border: none; |
| 200 | -moz-margin-end: -1px; |
| 201 | background-color: transparent; |
| 202 | position: relative; |
| 203 | margin-top: 31px; |
| 204 | } |
| 205 | |
| 206 | .category { |
| 207 | background-color: transparent; |
| 208 | color: #FF9F00; |
| 209 | min-height: 0; |
| 210 | padding: 10px 4px; |
| 211 | border-width: 1px; |
| 212 | border-style: solid; |
| 213 | border-color: transparent; |
| 214 | -moz-box-align: center; |
| 215 | overflow: hidden; |
| 216 | } |
| 217 | |
| 218 | .category:-moz-locale-dir(ltr) { |
| 219 | border-top-left-radius: 5px; |
| 220 | border-bottom-left-radius: 5px; |
| 221 | } |
| 222 | |
| 223 | .category:-moz-locale-dir(rtl) { |
| 224 | border-top-right-radius: 5px; |
| 225 | border-bottom-right-radius: 5px; |
| 226 | } |
| 227 | |
| 228 | .category[disabled] { |
| 229 | border-top: 0; |
| 230 | border-bottom: 0; |
| 231 | height: 0; |
| 232 | opacity: 0; |
| 233 | -moz-transition-property: height, opacity; |
| 234 | -moz-transition-duration: 1s, 0.8s; |
| 235 | } |
| 236 | |
| 237 | .category:not([disabled]) { |
| 238 | height: 52px; |
| 239 | -moz-transition-property: height, opacity; |
| 240 | -moz-transition-duration: 1s, 0.8s; |
| 241 | } |
| 242 | |
| 243 | .category[selected] { |
| 244 | background-color: #008484; |
| 245 | color: #FFCF00; |
| 246 | border-color: #9C9CFF; |
| 247 | } |
| 248 | |
| 249 | .category-name { |
| 250 | font-size: 150%; |
| 251 | } |
| 252 | |
| 253 | /* Maximize the size of the viewport when the window is small */ |
| 254 | @media (max-width: 800px) { |
| 255 | .category-name { |
| 256 | display: none; |
| 257 | } |
| 258 | } |
| 259 | |
| 260 | .category-badge { |
| 261 | background-color: #E7ADE7; |
| 262 | padding: 2px 8px; |
| 263 | margin: 6px 0; |
| 264 | border-radius: 10000px; |
| 265 | color: #000000; |
| 266 | font-weight: bold; |
| 267 | text-align: center; |
| 268 | } |
| 269 | |
| 270 | .category-badge[value="0"] { |
| 271 | visibility: hidden; |
| 272 | } |
| 273 | |
| 274 | .category-icon { |
| 275 | width: 32px; |
| 276 | height: 32px; |
| 277 | -moz-margin-start: 6px; |
| 278 | } |
| 279 | |
| 280 | #category-search > .category-icon { |
| 281 | list-style-image: url("chrome://mozapps/skin/extensions/category-search.png"); |
| 282 | } |
| 283 | #category-discover > .category-icon { |
| 284 | list-style-image: url("chrome://mozapps/skin/extensions/category-discover.png"); |
| 285 | } |
| 286 | #category-locale > .category-icon { |
| 287 | list-style-image: url("chrome://mozapps/skin/extensions/category-languages.png"); |
| 288 | } |
| 289 | #category-searchengine > .category-icon { |
| 290 | list-style-image: url("chrome://mozapps/skin/extensions/category-searchengines.png"); |
| 291 | } |
| 292 | #category-extension > .category-icon { |
| 293 | list-style-image: url("chrome://mozapps/skin/extensions/category-extensions.png"); |
| 294 | } |
| 295 | #category-theme > .category-icon { |
| 296 | list-style-image: url("chrome://mozapps/skin/extensions/category-themes.png"); |
| 297 | } |
| 298 | #category-plugin > .category-icon { |
| 299 | list-style-image: url("chrome://mozapps/skin/extensions/category-plugins.png"); |
| 300 | } |
| 301 | #category-dictionary > .category-icon { |
| 302 | list-style-image: url("chrome://mozapps/skin/extensions/category-dictionaries.png"); |
| 303 | } |
| 304 | #category-availableUpdates > .category-icon { |
| 305 | list-style-image: url("chrome://mozapps/skin/extensions/category-available.png"); |
| 306 | } |
| 307 | #category-recentUpdates > .category-icon { |
| 308 | list-style-image: url("chrome://mozapps/skin/extensions/category-recent.png"); |
| 309 | } |
| 310 | |
| 311 | |
| 312 | /*** header ***/ |
| 313 | |
| 314 | #header { |
| 315 | margin-bottom: 18px; |
| 316 | height: 2em; |
| 317 | } |
| 318 | |
| 319 | #header-search { |
| 320 | color: #E7ADE7; |
| 321 | border: 1px solid #9C9CFF; |
| 322 | border-radius: 4px; |
| 323 | padding: 3px; |
| 324 | background-color: #000000; |
| 325 | margin: 0; |
| 326 | } |
| 327 | |
| 328 | #header-search .textbox-input:-moz-placeholder { |
| 329 | color: #8050B0; |
| 330 | } |
| 331 | |
| 332 | #header-search[focused] { |
| 333 | border-color: #008484; |
| 334 | } |
| 335 | |
| 336 | #header-utils-btn { |
| 337 | list-style-image: url("chrome://mozapps/skin/extensions/utilities.png"); |
| 338 | -moz-margin-end: 16px; |
| 339 | } |
| 340 | |
| 341 | #header-utils-btn:hover, |
| 342 | #header-utils-btn:hover:active, |
| 343 | #header-utils-btn[open="true"] { |
| 344 | list-style-image: url("chrome://mozapps/skin/extensions/utilities-hover.png"); |
| 345 | } |
| 346 | |
| 347 | #header-utils-btn > .button-box > .button-menu-dropmarker { |
| 348 | border: none; |
| 349 | background: transparent; |
| 350 | } |
| 351 | |
| 352 | #header-utils-btn:hover > .button-box > .button-menu-dropmarker { |
| 353 | list-style-image: url("chrome://global/skin/arrow/arrow-down-hover.gif"); |
| 354 | } |
| 355 | |
| 356 | .view-header { |
| 357 | background-color: #9C9CFF; |
| 358 | color: #000000; |
| 359 | border-radius: 8px; |
| 360 | padding: 0px 1em; |
| 361 | margin: 3px; |
| 362 | min-height: 31px; |
| 363 | } |
| 364 | |
| 365 | |
| 366 | /*** sorters ***/ |
| 367 | |
| 368 | .sort-controls { |
| 369 | -moz-appearance: none; |
| 370 | border-right: 3px solid #000000; |
| 371 | } |
| 372 | |
| 373 | .sorter { |
| 374 | -moz-appearance: none; |
| 375 | border: none; |
| 376 | border-left: 3px solid #000000; |
| 377 | background-color: transparent; |
| 378 | color: #8050B0; |
| 379 | border-radius: 0; |
| 380 | padding: 0 6px; |
| 381 | -moz-padding-start: 6px; |
| 382 | -moz-padding-end: 3px; |
| 383 | margin: 0; |
| 384 | min-width: 12px !important; |
| 385 | -moz-box-direction: reverse; |
| 386 | } |
| 387 | .sorter:hover { |
| 388 | background-color: #FFCF00; |
| 389 | color: #000000; |
| 390 | } |
| 391 | |
| 392 | .sorter .button-box { |
| 393 | padding-top: 0; |
| 394 | padding-bottom: 0; |
| 395 | } |
| 396 | |
| 397 | .sorter[checkState="1"], |
| 398 | .sorter[checkState="2"] { |
| 399 | background-color: #008484; |
| 400 | color: #FFCF00; |
| 401 | } |
| 402 | |
| 403 | .sorter[checkState="1"] { |
| 404 | list-style-image: url("chrome://global/skin/arrow/arrow-down.gif"); |
| 405 | } |
| 406 | |
| 407 | .sorter[checkState="2"] { |
| 408 | list-style-image: url("chrome://global/skin/arrow/arrow-up.gif"); |
| 409 | } |
| 410 | |
| 411 | .sorter .button-icon { |
| 412 | -moz-margin-start: 4px; |
| 413 | } |
| 414 | |
| 415 | |
| 416 | /*** discover view ***/ |
| 417 | |
| 418 | .discover-spacer-before, |
| 419 | .discover-spacer-after { |
| 420 | -moz-box-flex: 1; |
| 421 | } |
| 422 | |
| 423 | #discover-error .alert { |
| 424 | max-width: 45em; |
| 425 | -moz-box-flex: 1; |
| 426 | } |
| 427 | |
| 428 | .discover-logo { |
| 429 | list-style-image: url("chrome://mozapps/skin/extensions/discover-logo.png"); |
| 430 | -moz-margin-end: 15px; |
| 431 | } |
| 432 | |
| 433 | .discover-title { |
| 434 | font-weight: bold; |
| 435 | font-size: 24px; |
| 436 | /* font-family: MetaWebPro-Book, "Trebuchet MS", sans-serif; */ |
| 437 | margin: 0 0 15px 0; |
| 438 | } |
| 439 | |
| 440 | .discover-description { |
| 441 | text-align: justify; |
| 442 | margin: 0 0 15px 0; |
| 443 | } |
| 444 | |
| 445 | .discover-footer { |
| 446 | text-align: justify; |
| 447 | } |
| 448 | |
| 449 | |
| 450 | /*** list ***/ |
| 451 | |
| 452 | .list { |
| 453 | margin: 0; |
| 454 | border: none; |
| 455 | background-color: transparent; |
| 456 | } |
| 457 | |
| 458 | .addon { |
| 459 | border-bottom: 1px solid #9C9CFF; |
| 460 | padding: 5px; |
| 461 | background-origin: border-box; |
| 462 | } |
| 463 | |
| 464 | .details { |
| 465 | cursor: pointer; |
| 466 | margin: 0; |
| 467 | -moz-margin-start: 10px; |
| 468 | } |
| 469 | |
| 470 | .icon-container { |
| 471 | width: 48px; |
| 472 | height: 48px; |
| 473 | margin: 3px 7px; |
| 474 | -moz-box-align: center; |
| 475 | -moz-box-pack: center; |
| 476 | } |
| 477 | |
| 478 | .icon { |
| 479 | list-style-image: url("chrome://mozapps/skin/extensions/extensionGeneric.png"); |
| 480 | max-width: 48px; |
| 481 | max-height: 48px; |
| 482 | } |
| 483 | |
| 484 | .addon[active="false"] .icon { |
| 485 | filter: url("chrome://mozapps/skin/extensions/extensions.svg#greyscale"); |
| 486 | } |
| 487 | |
| 488 | .addon-view[type="theme"] .icon { |
| 489 | list-style-image: url("chrome://mozapps/skin/extensions/themeGeneric.png"); |
| 490 | } |
| 491 | |
| 492 | .addon-view[type="locale"] .icon { |
| 493 | list-style-image: url("chrome://mozapps/skin/extensions/localeGeneric.png"); |
| 494 | } |
| 495 | |
| 496 | .addon-view[type="plugin"] .icon { |
| 497 | list-style-image: url("chrome://mozapps/skin/plugins/pluginGeneric.png"); |
| 498 | } |
| 499 | |
| 500 | .addon-view[type="dictionary"] .icon { |
| 501 | list-style-image: url("chrome://mozapps/skin/extensions/dictionaryGeneric.png"); |
| 502 | } |
| 503 | |
| 504 | .name-container { |
| 505 | font-size: 150%; |
| 506 | font-weight: bold; |
| 507 | color: #9C9CFF; |
| 508 | margin-bottom: 0; |
| 509 | -moz-box-align: end; |
| 510 | -moz-box-flex: 1; |
| 511 | } |
| 512 | |
| 513 | .creator { |
| 514 | font-weight: bold; |
| 515 | } |
| 516 | |
| 517 | .creator .text-link { |
| 518 | /* color: #0066CC; */ |
| 519 | } |
| 520 | |
| 521 | .description-container { |
| 522 | -moz-margin-start: 6px; |
| 523 | -moz-box-align: center; |
| 524 | } |
| 525 | |
| 526 | .description { |
| 527 | margin: 0; |
| 528 | } |
| 529 | |
| 530 | .warning, |
| 531 | .pending, |
| 532 | .error, |
| 533 | .info { |
| 534 | -moz-margin-start: 48px; |
| 535 | font-weight: bold; |
| 536 | -moz-box-align: center; |
| 537 | } |
| 538 | |
| 539 | .content-container, |
| 540 | .basicinfo-container { |
| 541 | -moz-box-align: start; |
| 542 | } |
| 543 | |
| 544 | .addon[status="installing"] > .content-container { |
| 545 | -moz-box-align: stretch; |
| 546 | } |
| 547 | |
| 548 | .advancedinfo-container, |
| 549 | .update-info-container { |
| 550 | -moz-box-align: center; |
| 551 | } |
| 552 | |
| 553 | .update-available { |
| 554 | -moz-box-align: end; |
| 555 | } |
| 556 | |
| 557 | .install-status-container { |
| 558 | -moz-box-pack: end; |
| 559 | -moz-box-align: end; |
| 560 | } |
| 561 | |
| 562 | .name-outer-container { |
| 563 | -moz-box-pack: center; |
| 564 | } |
| 565 | |
| 566 | .relnotes-toggle-container, |
| 567 | .icon-outer-container { |
| 568 | -moz-box-pack: start; |
| 569 | } |
| 570 | |
| 571 | .status-container, |
| 572 | .control-container { |
| 573 | -moz-box-pack: end; |
| 574 | } |
| 575 | |
| 576 | .addon-view .warning { |
| 577 | color: #FFCF00; |
| 578 | } |
| 579 | |
| 580 | .addon-view .error { |
| 581 | color: #FF0000; |
| 582 | } |
| 583 | |
| 584 | .addon-view .pending { |
| 585 | color: #008484; |
| 586 | } |
| 587 | |
| 588 | .addon-view[pending="disable"] .pending, |
| 589 | .addon-view[pending="uninstall"] .pending { |
| 590 | color: #FF9C00; |
| 591 | } |
| 592 | |
| 593 | .addon .relnotes-container { |
| 594 | -moz-box-align: start; |
| 595 | -moz-margin-start: 6px; |
| 596 | height: 0; |
| 597 | overflow: hidden; |
| 598 | opacity: 0; |
| 599 | -moz-transition-property: height, opacity; |
| 600 | -moz-transition-duration: 0.5s, 0.5s; |
| 601 | } |
| 602 | |
| 603 | .addon[show-relnotes] .relnotes-container { |
| 604 | opacity: 1; |
| 605 | -moz-transition-property: height, opacity; |
| 606 | -moz-transition-duration: 0.5s, 0.5s; |
| 607 | } |
| 608 | |
| 609 | .addon .relnotes-header { |
| 610 | font-weight: bold; |
| 611 | margin: 10px 0; |
| 612 | } |
| 613 | |
| 614 | .addon .relnotes-toggle { |
| 615 | border: none; |
| 616 | background: transparent; |
| 617 | font-weight: bold; |
| 618 | -moz-box-direction: reverse; |
| 619 | cursor: pointer; |
| 620 | list-style-image: url("chrome://global/skin/arrow/arrow-down.gif"); |
| 621 | } |
| 622 | |
| 623 | .addon .relnotes-toggle > .button-box > .button-icon { |
| 624 | -moz-padding-start: 4px; |
| 625 | } |
| 626 | |
| 627 | .addon[show-relnotes] .relnotes-toggle { |
| 628 | list-style-image: url("chrome://global/skin/arrow/arrow-up.gif"); |
| 629 | } |
| 630 | |
| 631 | .addon[active="false"] { |
| 632 | background-color: #8050B0; |
| 633 | color: #E7ADE7; |
| 634 | } |
| 635 | |
| 636 | .addon-view[active="false"] .name-container { |
| 637 | color: #E7ADE7; |
| 638 | color: #000000; |
| 639 | } |
| 640 | |
| 641 | .addon-view[notification="warning"] { |
| 642 | background-color : #FFCF00; |
| 643 | color: #000000; |
| 644 | } |
| 645 | |
| 646 | .addon-view[notification="warning"] .warning { |
| 647 | color: #000000; |
| 648 | } |
| 649 | |
| 650 | .addon-view[notification="warning"] .name-container { |
| 651 | color: #000000; |
| 652 | } |
| 653 | |
| 654 | .addon-view[notification="error"] { |
| 655 | background-color: #FF0000; |
| 656 | color: #000000; |
| 657 | } |
| 658 | |
| 659 | .addon-view[notification="error"] .error { |
| 660 | color: #000000; |
| 661 | } |
| 662 | |
| 663 | .addon-view[notification="info"] { |
| 664 | background-color: #9C9CFF; |
| 665 | color: #000000; |
| 666 | } |
| 667 | |
| 668 | .addon-view[pending="enable"], |
| 669 | .addon-view[pending="upgrade"], |
| 670 | .addon-view[pending="install"] { |
| 671 | background-color: #008484; |
| 672 | } |
| 673 | |
| 674 | .addon-view[pending="enable"] .pending, |
| 675 | .addon-view[pending="upgrade"] .pending, |
| 676 | .addon-view[pending="install"] .pending { |
| 677 | color: #000000; |
| 678 | } |
| 679 | |
| 680 | .addon-view[pending="disable"], |
| 681 | .addon-view[pending="uninstall"] { |
| 682 | color: #8050B0; |
| 683 | } |
| 684 | |
| 685 | |
| 686 | /*** item - uninstalled ***/ |
| 687 | |
| 688 | .addon[status="uninstalled"] { |
| 689 | border: none; |
| 690 | } |
| 691 | |
| 692 | .addon[status="uninstalled"] > .container { |
| 693 | -moz-box-align: center; |
| 694 | padding: 4px 20px; |
| 695 | background-color: #8050B0; |
| 696 | border-radius: 8px; |
| 697 | font-size: 120%; |
| 698 | } |
| 699 | |
| 700 | .addon[status="uninstalled"][selected] { |
| 701 | background-color: transparent; |
| 702 | } |
| 703 | |
| 704 | .addon[selected] { |
| 705 | background-color: #008484; |
| 706 | color: #FF9F00; |
| 707 | } |
| 708 | |
| 709 | .addon[selected] .name-container { |
| 710 | color: #FFCF00; |
| 711 | } |
| 712 | |
| 713 | .addon[active="false"][selected] { |
| 714 | color: #E7ADE7; |
| 715 | } |
| 716 | |
| 717 | .addon[active="false"][selected] .name-container { |
| 718 | color: #E7ADE7; |
| 719 | } |
| 720 | |
| 721 | |
| 722 | /*** search view ***/ |
| 723 | |
| 724 | #search-filter { |
| 725 | padding: 5px 20px; |
| 726 | -moz-box-align: center; |
| 727 | background-color: #000000; |
| 728 | font-size: 120%; |
| 729 | border-bottom: 1px solid #9C9CFF; |
| 730 | overflow-x: hidden; |
| 731 | } |
| 732 | |
| 733 | #search-filter-label { |
| 734 | font-weight: bold; |
| 735 | color: #FFCF00; |
| 736 | } |
| 737 | |
| 738 | .search-filter-radio { |
| 739 | padding: 0 6px; |
| 740 | margin: 0 3px; |
| 741 | border-radius: 10000px; |
| 742 | } |
| 743 | |
| 744 | .search-filter-radio[selected] { |
| 745 | background-color: #008484; |
| 746 | color: #000000; |
| 747 | } |
| 748 | |
| 749 | .search-filter-radio .radio-check-box1 { |
| 750 | display: none; |
| 751 | } |
| 752 | |
| 753 | .search-filter-radio .radio-icon { |
| 754 | display: none; |
| 755 | } |
| 756 | |
| 757 | #search-allresults-link { |
| 758 | margin-top: 1em; |
| 759 | margin-bottom: 2em; |
| 760 | } |
| 761 | |
| 762 | /*** detail view ***/ |
| 763 | |
| 764 | #detail-view .loading { |
| 765 | opacity: 0; |
| 766 | } |
| 767 | |
| 768 | #detail-view[loading-extended] .loading { |
| 769 | opacity: 1; |
| 770 | -moz-transition-property: opacity; |
| 771 | -moz-transition-duration: 1s; |
| 772 | } |
| 773 | |
| 774 | .detail-view-container { |
| 775 | padding: 0 2em 2em 2em; |
| 776 | font-size: 110%; |
| 777 | } |
| 778 | |
| 779 | #detail-notifications { |
| 780 | margin-top: 1em; |
| 781 | margin-bottom: 2em; |
| 782 | } |
| 783 | |
| 784 | #detail-notifications .warning, |
| 785 | #detail-notifications .pending, |
| 786 | #detail-notifications .error { |
| 787 | -moz-margin-start: 0; |
| 788 | } |
| 789 | |
| 790 | #detail-icon-container { |
| 791 | width: 64px; |
| 792 | -moz-margin-end: 10px; |
| 793 | margin-top: 6px; |
| 794 | } |
| 795 | |
| 796 | #detail-icon { |
| 797 | max-width: 64px; |
| 798 | max-height: 64px; |
| 799 | } |
| 800 | |
| 801 | #detail-summary { |
| 802 | margin-bottom: 2em; |
| 803 | } |
| 804 | |
| 805 | #detail-name-container { |
| 806 | font-size: 200%; |
| 807 | } |
| 808 | |
| 809 | #detail-screenshot { |
| 810 | -moz-margin-end: 2em; |
| 811 | max-width: 300px; |
| 812 | max-height: 300px; |
| 813 | } |
| 814 | |
| 815 | #detail-screenshot[loading] { |
| 816 | background-image: url("chrome://communicator/skin/brand/throbber-anim.gif"); |
| 817 | background-position: 50% 50%; |
| 818 | background-repeat: no-repeat; |
| 819 | } |
| 820 | |
| 821 | #detail-screenshot[loading="error"] { |
| 822 | background-image: url("chrome://global/skin/icons/alert-error.gif"); |
| 823 | } |
| 824 | |
| 825 | #detail-desc-container { |
| 826 | margin-bottom: 2em; |
| 827 | } |
| 828 | |
| 829 | #detail-desc, #detail-fulldesc { |
| 830 | -moz-margin-start: 6px; |
| 831 | white-space: pre-wrap; |
| 832 | /* This is necessary to fix layout issues with multi-line descriptions, see |
| 833 | bug 592712*/ |
| 834 | outline: solid transparent; |
| 835 | min-width: 8em; |
| 836 | } |
| 837 | |
| 838 | #detail-fulldesc { |
| 839 | margin-top: 1em; |
| 840 | } |
| 841 | |
| 842 | #detail-contributions { |
| 843 | border-radius: 5px; |
| 844 | border: 1px solid #9C9CFF; |
| 845 | margin-bottom: 2em; |
| 846 | padding: 1em; |
| 847 | background-color: #FFCF00; |
| 848 | } |
| 849 | |
| 850 | #detail-contrib-description { |
| 851 | font-style: italic; |
| 852 | margin-bottom: 1em; |
| 853 | color: #000000; |
| 854 | } |
| 855 | |
| 856 | #detail-contrib-suggested { |
| 857 | color: #8050B0; |
| 858 | font-weight: bold; |
| 859 | } |
| 860 | |
| 861 | #detail-contrib-btn { |
| 862 | list-style-image: url("chrome://mozapps/skin/extensions/heart.png"); |
| 863 | } |
| 864 | |
| 865 | #detail-contrib-btn .button-icon { |
| 866 | -moz-margin-end: 3px; |
| 867 | } |
| 868 | |
| 869 | #detail-grid { |
| 870 | min-width: 15em; |
| 871 | margin-bottom: 2em; |
| 872 | } |
| 873 | |
| 874 | #detail-grid > columns > column:first-child { |
| 875 | max-width: 25em; |
| 876 | } |
| 877 | |
| 878 | .detail-row[first-row="true"], |
| 879 | .detail-row-complex[first-row="true"], |
| 880 | setting[first-row="true"] { |
| 881 | border-top: none; |
| 882 | } |
| 883 | |
| 884 | .detail-row, |
| 885 | .detail-row-complex, |
| 886 | setting { |
| 887 | border-top: 1px solid #9C9CFF; |
| 888 | -moz-box-align: center; |
| 889 | min-height: 30px; |
| 890 | } |
| 891 | |
| 892 | #detail-controls { |
| 893 | margin-bottom: 1em; |
| 894 | } |
| 895 | |
| 896 | #detail-view[active="false"]:not([pending]):not([notification]) { |
| 897 | /* background-color: foo; */ |
| 898 | } |
| 899 | |
| 900 | setting[first-row="true"] { |
| 901 | margin-top: 2em; |
| 902 | } |
| 903 | |
| 904 | .preferences-description { |
| 905 | font-size: 90.9%; |
| 906 | color: #808080; |
| 907 | margin-top: -2px; |
| 908 | -moz-margin-start: 2em; |
| 909 | } |
| 910 | |
| 911 | setting[type="string"] > .setting-input > textbox { |
| 912 | -moz-box-flex: 1; |
| 913 | } |
| 914 | |
| 915 | setting[type="radio"] > radiogroup { |
| 916 | -moz-box-orient: horizontal; |
| 917 | } |
| 918 | |
| 919 | menulist { /* Fixes some styling inconsistencies */ |
| 920 | margin: 1px 5px 2px 5px; |
| 921 | } |
| 922 | |
| 923 | /*** creator ***/ |
| 924 | |
| 925 | .creator > label { |
| 926 | -moz-margin-end: 0; |
| 927 | } |
| 928 | |
| 929 | .creator > .text-link { |
| 930 | margin-top: 1px; |
| 931 | margin-bottom: 1px; |
| 932 | } |
| 933 | |
| 934 | |
| 935 | /*** rating ***/ |
| 936 | |
| 937 | .meta-rating { |
| 938 | -moz-margin-end: 0; |
| 939 | padding-top: 2px; |
| 940 | } |
| 941 | |
| 942 | .meta-rating > .star { |
| 943 | list-style-image: url("chrome://mozapps/skin/extensions/rating-not-won.png"); |
| 944 | padding: 0 1px; |
| 945 | } |
| 946 | |
| 947 | .meta-rating > .star[on="true"] { |
| 948 | list-style-image: url("chrome://mozapps/skin/extensions/rating-won.png"); |
| 949 | } |
| 950 | |
| 951 | |
| 952 | /*** download progress ***/ |
| 953 | |
| 954 | .download-progress { |
| 955 | background-color: #000000; |
| 956 | border-radius: 10000px; |
| 957 | border: 1px solid #FF9F00; |
| 958 | width: 200px; |
| 959 | height: 21px; |
| 960 | margin: 0 8px; |
| 961 | } |
| 962 | |
| 963 | .download-progress[mode="undetermined"] .status-container { |
| 964 | padding: 0 2px; |
| 965 | } |
| 966 | |
| 967 | .download-progress .start-cap, |
| 968 | .download-progress[complete] .end-cap, |
| 969 | .download-progress[mode="undetermined"] .end-cap, |
| 970 | .download-progress .progress .progress-bar { |
| 971 | background-color: #008484; |
| 972 | } |
| 973 | |
| 974 | .download-progress .progress .progress-bar { |
| 975 | border-left-width: 0; |
| 976 | border-right-width: 0; |
| 977 | min-height: 21px; |
| 978 | } |
| 979 | |
| 980 | .download-progress .progress { |
| 981 | background-color: transparent; |
| 982 | padding: 0; |
| 983 | margin: 0; |
| 984 | border: none; |
| 985 | } |
| 986 | |
| 987 | .download-progress .start-cap, .download-progress .end-cap { |
| 988 | width: 12px; |
| 989 | } |
| 990 | |
| 991 | .download-progress .start-cap:-moz-locale-dir(ltr), |
| 992 | .download-progress .end-cap:-moz-locale-dir(rtl) { |
| 993 | border-radius: 3px 0 0 3px; |
| 994 | } |
| 995 | |
| 996 | .download-progress .end-cap:-moz-locale-dir(ltr), |
| 997 | .download-progress .start-cap:-moz-locale-dir(rtl) { |
| 998 | border-radius: 0 3px 3px 0; |
| 999 | } |
| 1000 | |
| 1001 | .download-progress .cancel { |
| 1002 | -moz-appearance: none; |
| 1003 | background-color: #8050B0; |
| 1004 | border: 1px solid #9C9CFF; |
| 1005 | padding: 3px; |
| 1006 | border-radius: 3px; |
| 1007 | min-width: 0; |
| 1008 | margin: 3px; |
| 1009 | } |
| 1010 | |
| 1011 | .download-progress .cancel .button-box { |
| 1012 | padding: 0; |
| 1013 | border: none; |
| 1014 | } |
| 1015 | |
| 1016 | .download-progress .cancel .button-text { |
| 1017 | display: none; |
| 1018 | } |
| 1019 | |
| 1020 | .download-progress .cancel .button-icon { |
| 1021 | -moz-margin-start: 0; |
| 1022 | } |
| 1023 | |
| 1024 | .download-progress .cancel { |
| 1025 | list-style-image: url('chrome://mozapps/skin/extensions/cancel.png'); |
| 1026 | } |
| 1027 | |
| 1028 | .download-progress .status-container { |
| 1029 | -moz-box-align: center; |
| 1030 | } |
| 1031 | |
| 1032 | .download-progress .status { |
| 1033 | /* text-shadow: #FFF 0 0 2px; */ |
| 1034 | } |
| 1035 | |
| 1036 | /*** install status ***/ |
| 1037 | |
| 1038 | .install-status { |
| 1039 | -moz-box-align: center; |
| 1040 | } |
| 1041 | |
| 1042 | |
| 1043 | /*** check for updates ***/ |
| 1044 | |
| 1045 | #updates-container { |
| 1046 | -moz-box-align: center; |
| 1047 | } |
| 1048 | |
| 1049 | #updates-container .button-link { |
| 1050 | font-weight: bold; |
| 1051 | } |
| 1052 | |
| 1053 | #updates-installed, |
| 1054 | #updates-downloaded { |
| 1055 | color: #008484; |
| 1056 | font-weight: bold; |
| 1057 | } |
| 1058 | |
| 1059 | #update-selected { |
| 1060 | margin: 12px; |
| 1061 | } |
| 1062 | |
| 1063 | /*** buttons ***/ |
| 1064 | |
| 1065 | .addon-control[disabled="true"] { |
| 1066 | display: none; |
| 1067 | } |
| 1068 | |
| 1069 | button.button-link { |
| 1070 | background: transparent; |
| 1071 | border: none; |
| 1072 | text-decoration: underline; |
| 1073 | color: blue; |
| 1074 | cursor: pointer; |
| 1075 | min-width: 0; |
| 1076 | margin: 0 6px; |
| 1077 | } |
| 1078 | |
| 1079 | /* Needed to override normal button style from inContent.css */ |
| 1080 | button.button-link:not([disabled="true"]):active:hover { |
| 1081 | } |