notification-box.css 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596
  1. /* vim:set ts=2 sw=2 sts=2 et: */
  2. /* This Source Code Form is subject to the terms of the Mozilla Public
  3. * License, v. 2.0. If a copy of the MPL was not distributed with this
  4. * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
  5. /* Layout */
  6. .notificationbox .notificationInner {
  7. display: flex;
  8. flex-direction: row;
  9. }
  10. .notificationbox .details {
  11. flex-grow: 1;
  12. display: flex;
  13. flex-direction: row;
  14. align-items: center;
  15. }
  16. .notificationbox .notification-button {
  17. text-align: right;
  18. }
  19. .notificationbox .messageText {
  20. flex-grow: 1;
  21. }
  22. .notificationbox .details:-moz-dir(rtl)
  23. .notificationbox .notificationInner:-moz-dir(rtl) {
  24. flex-direction: row-reverse;
  25. }
  26. /* Style */
  27. .notificationbox .notification {
  28. background-color: InfoBackground;
  29. text-shadow: none;
  30. border-top: 1px solid ThreeDShadow;
  31. border-bottom: 1px solid ThreeDShadow;
  32. }
  33. .notificationbox .notification[data-type="info"] {
  34. color: -moz-DialogText;
  35. background-color: -moz-Dialog;
  36. }
  37. .notificationbox .notification[data-type="critical"] {
  38. color: white;
  39. background-image: linear-gradient(rgb(212,0,0), rgb(152,0,0));
  40. }
  41. .notificationbox .messageImage {
  42. display: inline-block;
  43. width: 16px;
  44. height: 16px;
  45. margin: 6px;
  46. }
  47. /* Default icons for notifications */
  48. .notificationbox .messageImage[data-type="info"] {
  49. background-image: url("chrome://global/skin/icons/information-16.png");
  50. }
  51. .notificationbox .messageImage[data-type="warning"] {
  52. background-image: url("chrome://global/skin/icons/warning-16.png");
  53. }
  54. .notificationbox .messageImage[data-type="critical"] {
  55. background-image: url("chrome://global/skin/icons/error-16.png");
  56. }
  57. /* Close button */
  58. .notificationbox .messageCloseButton {
  59. width: 20px;
  60. height: 20px;
  61. margin: 4px;
  62. margin-inline-end: 8px;
  63. background-image: url("chrome://devtools/skin/images/close.svg");
  64. background-position: center;
  65. background-color: transparent;
  66. background-repeat: no-repeat;
  67. border-radius: 11px;
  68. filter: invert(0);
  69. }
  70. .notificationbox .messageCloseButton:hover {
  71. background-color: gray;
  72. filter: invert(1);
  73. }
  74. .notificationbox .messageCloseButton:active {
  75. background-color: rgba(170, 170, 170, .4); /* --toolbar-tab-hover-active */
  76. }