second and final part of syncing both themes with toolkit windows theme changes in...
[themes.git] / LCARStrek / global / notification.css
index 86e321f5810e801afb4694c7271b7045cf4c8319..010ff3c41df8535b35cfe4c002010b315de74c71 100644 (file)
@@ -1,19 +1,25 @@
 @namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul");
 
 notification {
-  background-color : #FFCF00;
   color: #000000;
-  -moz-border-radius: 8px;
+  background-color : #FFCF00;
+  text-shadow: none;
+  border-radius: 8px;
 }
 
 notification[type="info"] {
-  background-color: #9C9CFF;
   color: #000000;
+  background-color: #9C9CFF;
 }
 
 notification[type="critical"] {
-  background-color: #FF0000;
   color: #000000;
+  background-color: #FF0000;
+}
+
+.messageText > .text-link {
+  color: inherit !important;
+  text-decoration: underline;
 }
 
 .messageImage {
@@ -23,20 +29,21 @@ notification[type="critical"] {
 
 /* Default icons for notifications */
 
-notification[type="info"] .messageImage {
+.messageImage[type="info"] {
   list-style-image: url("chrome://global/skin/icons/information-16.png");
 }
-notification[type="warning"] .messageImage {
+
+.messageImage[type="warning"] {
   list-style-image: url("chrome://global/skin/icons/warning-16.png");
 }
 
-notification[type="critical"] .messageImage {
+.messageImage[type="critical"] {
   list-style-image: url("chrome://global/skin/icons/error-16.png");
 }
 
 .notification-inner {
-  -moz-margin-start: 8px;
-  -moz-margin-end: 12px;
+  margin-inline-start: 8px;
+  margin-inline-end: 12px;
 }
 
 .messageCloseButton {
@@ -51,5 +58,158 @@ notification[type="critical"] .messageImage {
 }
 
 .messageCloseButton > .toolbarbutton-icon {
-  -moz-margin-start: 5px;
+  margin-inline-start: 2px;
+}
+
+
+/* === BEGIN popupnotification.inc.css === */
+
+.popup-notification-body-container {
+  padding: var(--arrowpanel-padding);
+}
+
+.popup-notification-icon {
+  width: 32px;
+  height: 32px;
+  margin-inline-end: var(--arrowpanel-padding);
+}
+
+.popup-notification-body {
+  width: 25em;
+}
+
+.popup-notification-closebutton {
+  margin-inline-end: -8px;
+  margin-top: -8px;
+}
+
+.popup-notification-origin:not([value]),
+.popup-notification-learnmore-link:not([href]) {
+  display: none;
+}
+
+.popup-notification-origin {
+  margin-bottom: .3em !important;
+}
+
+.popup-notification-learnmore-link {
+  margin-top: .5em !important;
+}
+
+.popup-notification-button-container {
+  background-color: var(--arrowpanel-dimmed);
+  display: flex;
+}
+
+.popup-notification-button-container > toolbarseparator {
+  -moz-appearance: none;
+  border: 0;
+  border-left: 1px solid var(--panel-separator-color);
+  margin: 7px 0 7px;
+  min-width: 0;
+}
+
+.popup-notification-button-container:hover > toolbarseparator {
+  margin: 0;
+}
+
+.popup-notification-button {
+  flex: 1;
+  -moz-appearance: none;
+  background-color: transparent;
+  color: inherit;
+  margin: 0;
+  padding: 0;
+  min-width: 0;
+  min-height: 41px;
+  border: none;
+/*  border-top: 1px solid var(--panel-separator-color);*/
+}
+
+.popup-notification-button:hover:not([disabled]) {
+/*  background-color: var(--arrowpanel-dimmed);*/
+}
+
+.popup-notification-button:hover:active:not([disabled]) {
+/*  background-color: var(--arrowpanel-dimmed-further);
+  box-shadow: 0 1px 0 hsla(210,4%,10%,.05) inset;*/
+}
+
+.popup-notification-button[disabled] {
+/*  background-color: var(--arrowpanel-dimmed-further);
+  color: graytext;*/
+}
+
+.popup-notification-button[default] {
+  flex: 0 50%;
+}
+
+.popup-notification-button[default]:not([disabled]) {
+/*  background-color: #0996f8;
+  color: white;*/
+}
+
+.popup-notification-button[default]:hover:not([disabled]) {
+/*  background-color: #0675d3;*/
+}
+
+.popup-notification-button[default]:hover:active:not([disabled]) {
+/*  background-color: #0568ba;*/
+}
+
+.popup-notification-button[anonid="secondarybutton"][hidden="true"] ~ .popup-notification-button[default] {
+  flex: 1;
+}
+
+.popup-notification-button > .button-box {
+  padding: 0;
+  margin: 0;
+  /* prevent double border on windows when focused */
+  border: none;
+}
+
+.popup-notification-dropmarker {
+  flex: none;
+  padding: 0 15px;
+}
+
+.popup-notification-dropmarker > .button-box > hbox {
+  display: none;
+}
+
+.popup-notification-dropmarker > .button-box > .button-menu-dropmarker {
+  /* This is to override the linux !important */
+  -moz-appearance: none !important;
+  display: -moz-box;
+  padding: 0;
+  margin: 0;
+}
+
+.popup-notification-dropmarker > .button-box > .button-menu-dropmarker > .dropmarker-icon {
+  width: 16px;
+  height: 16px;
+  list-style-image: url(chrome://global/skin/icons/menubutton-dropmarker.svg);
+  filter: url(chrome://global/skin/filters.svg#fill);
+  fill: currentColor;
+}
+
+/* === END popupnotification.inc.css === */
+
+.popup-notification-button:-moz-focusring {
+  outline: 1px -moz-dialogtext dotted;
+  outline-offset: -1px;
+}
+
+/* Override default icon size which is too small for this dropdown */
+.popup-notification-dropmarker > .button-box > .button-menu-dropmarker {
+  width: 16px;
+  height: 16px;
+}
+
+@media (-moz-windows-default-theme) {
+  /* Swap the default and secondary action, because Windows
+   * platform conventions put the default action on the left. */
+  .popup-notification-button[default] {
+    order: -1;
+  }
 }