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 @keyframes alert-animation {
44 @keyframes alert-zoom-animation {
50 @keyframes alert-fadeout-animation {
58 margin-inline-start: 8px;
66 @media (resolution: 2dppx) {
68 image-rendering: -moz-crisp-edges;
77 object-fit: scale-down;
83 /* The text box width is increased to make up for the lack of image when one
84 is not provided. 349px is the text box width when a picture is present,
85 255px, plus the width of the image, 80px, and the margins, 7px each. */
89 #alertBox[hasImage] > box > #alertTextBox {
93 #alertBox:not([hasImage]) > box > #alertTextBox {
94 padding-inline-start: 8px;
98 padding-inline-end: 8px;
109 -moz-box-align: start;
112 #alertBox:not([hasOrigin]) > box > #alertTextBox,
126 list-style-image: url("chrome://mozapps/skin/extensions/utilities.svg#utilities-grayscale");
127 margin-inline-end: 0;
131 #alertSettings > .button-box {
135 #alertSettings:hover,
136 #alertSettings[open] {
137 list-style-image: url("chrome://mozapps/skin/extensions/utilities.svg#utilities-inverted");
140 #alertSettings:hover {
143 #alertSettings[open],
144 #alertSettings:hover:active {
147 #alertSettings[focusedViaMouse]:-moz-focusring > .button-box {
148 border-color: transparent;
151 #alertSettings > .button-box > .button-menu-dropmarker,
152 #alertSettings > .button-box > .box-inherit > .button-text {