1 /* This Source Code Form is subject to the terms of the Mozilla Public
2 * License, v. 2.0. If a copy of the MPL was not distributed with this
3 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
5 /* ===== alert.css =====================================================
6 == Shared styles specific to the alerts dialog.
7 ======================================================================= */
9 @import url("chrome://global/skin/");
11 @namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul");
14 animation-timing-function: cubic-bezier(.12,1.23,.48,1.09);
17 #alertBox[animate][clicked] {
18 animation-duration: .6s;
19 animation-name: alert-zoom-animation;
22 /* This is used if the close button is clicked
23 before the animation has finished. */
24 #alertBox[animate][closing] {
25 animation-duration: .6s;
26 animation-name: alert-fadeout-animation;
29 #alertBox[animate]:not([clicked]):not([closing]):hover {
30 /* !important is necessary because CSS animations have highest
31 importance in the cascade with exception to !important rules. */
32 opacity: 1 !important;
35 @keyframes alert-animation {
50 @keyframes alert-zoom-animation {
56 @keyframes alert-fadeout-animation {
64 margin-inline-start: 8px;
72 @media (resolution: 2dppx) {
74 image-rendering: -moz-crisp-edges;
83 object-fit: scale-down;
89 /* The text box width is increased to make up for the lack of image when one
90 is not provided. 349px is the text box width when a picture is present,
91 255px, plus the width of the image, 80px, and the margins, 7px each. */
95 #alertBox[hasImage] > box > #alertTextBox {
99 #alertBox:not([hasImage]) > box > #alertTextBox {
100 padding-inline-start: 8px;
104 padding-inline-end: 8px;
115 -moz-box-align: start;
118 #alertBox:not([hasOrigin]) > box > #alertTextBox,
132 list-style-image: url("chrome://mozapps/skin/extensions/utilities.svg#utilities-grayscale");
133 margin-inline-end: 0;
137 #alertSettings > .button-box {
141 #alertSettings:hover,
142 #alertSettings[open] {
143 list-style-image: url("chrome://mozapps/skin/extensions/utilities.svg#utilities-inverted");
146 #alertSettings:hover {
149 #alertSettings[open],
150 #alertSettings:hover:active {
153 #alertSettings[focusedViaMouse]:-moz-focusring > .button-box {
154 border-color: transparent;
157 #alertSettings > .button-box > .button-menu-dropmarker,
158 #alertSettings > .button-box > .box-inherit > .button-text {