X-Git-Url: https://git-public.kairo.at/?p=themes.git;a=blobdiff_plain;f=LCARStrek%2Fglobal%2Fnotification.css;h=010ff3c41df8535b35cfe4c002010b315de74c71;hp=938d3cddbaf3acca8f1d89af08015ed9ff24cd64;hb=0282321df83ade4f66b3f44bbee1a2519485571a;hpb=beb441cb5d339db72d4bc94a6a34ca8e38a54286 diff --git a/LCARStrek/global/notification.css b/LCARStrek/global/notification.css index 938d3cdd..010ff3c4 100644 --- a/LCARStrek/global/notification.css +++ b/LCARStrek/global/notification.css @@ -61,10 +61,26 @@ notification[type="critical"] { margin-inline-start: 2px; } -/* Popup notification */ + +/* === 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 { - max-width: 25em; + width: 25em; +} + +.popup-notification-closebutton { + margin-inline-end: -8px; + margin-top: -8px; } .popup-notification-origin:not([value]), @@ -81,18 +97,119 @@ notification[type="critical"] { } .popup-notification-button-container { - margin-top: 17px; + background-color: var(--arrowpanel-dimmed); + display: flex; } -.popup-notification-closebutton { - margin-inline-end: -5px; - margin-top: -5px; +.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-closeitem { - list-style-image: url("chrome://global/skin/icons/close-button.gif"); +.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; } -.popup-notification-menubutton > .button-menubutton-button[disabled] { - opacity: 0.5; +@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; + } }