X-Git-Url: https://git-public.kairo.at/?p=themes.git;a=blobdiff_plain;f=LCARStrek%2Fglobal%2Fnotification.css;h=010ff3c41df8535b35cfe4c002010b315de74c71;hp=601b23d2a1d22ac11e437230a8f89da8018a8bc4;hb=a9f6369d5cebd3c329b993d57e73bcf30fffd2cd;hpb=e030399484eb750c8dd3e6a5f65e2bb2134dcf7f diff --git a/LCARStrek/global/notification.css b/LCARStrek/global/notification.css index 601b23d2..010ff3c4 100644 --- a/LCARStrek/global/notification.css +++ b/LCARStrek/global/notification.css @@ -1,20 +1,25 @@ @namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"); notification { - background-color : #FFCF00; color: #000000; + 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 { @@ -24,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 { @@ -52,24 +58,158 @@ notification[type="critical"] .messageImage { } .messageCloseButton > .toolbarbutton-icon { - -moz-margin-start: 2px; + margin-inline-start: 2px; } -/* Popup notification */ -.popup-notification-description { - max-width: 248px; +/* === BEGIN popupnotification.inc.css === */ + +.popup-notification-body-container { + padding: var(--arrowpanel-padding); } -.popup-notification-button-container { - margin-top: 17px; +.popup-notification-icon { + width: 32px; + height: 32px; + margin-inline-end: var(--arrowpanel-padding); +} + +.popup-notification-body { + width: 25em; } .popup-notification-closebutton { - -moz-margin-end: -14px; - margin-top: -10px; + margin-inline-end: -8px; + margin-top: -8px; } -.popup-notification-closeitem { - list-style-image: url("chrome://global/skin/icons/close-button.gif"); +.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; + } }