blob: 69b697578194cdcd6b10749183408298b9ffc62b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
|
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
#fxmonitor-notification popupnotificationcontent {
margin-top: 0;
}
#fxmonitor-notification .popup-notification-body > :not(popupnotificationcontent) {
display: none;
}
.fxmonitor-icon {
width: 16px;
height: 16px;
}
#fxmonitor-notification-anchor,
.fxmonitor-icon {
animation-timing-function: linear;
animation-duration: 0.66s;
}
/* We only want to animate the icon/doorhanger the first time it's shown for a site.
An attribute fxmonitoranimationdone is used to control this from FirefoxMonitor.jsm */
#fxmonitor-notification-anchor:not([fxmonitoranimationdone]) {
animation-name: fxmonitor-anchor-animation;
}
#fxmonitor-notification-anchor:not([fxmonitoranimationdone]):-moz-locale-dir(rtl) {
animation-name: fxmonitor-anchor-animation-rtl;
}
#fxmonitor-notification-anchor:not([fxmonitoranimationdone]) .fxmonitor-icon {
animation-name: fxmonitor-icon-animation;
}
#notification-popup[popupid=fxmonitor]:not([fxmonitoranimationdone]) {
transition-delay: 0.33s;
}
/* Animate the appearance of the anchor icon: push the other icons to the right. */
@keyframes fxmonitor-anchor-animation {
from {
margin-right: -20px;
}
50% {
margin-right: 0;
}
to {
}
}
/* For RTL locales, push the other icons to the left. */
@keyframes fxmonitor-anchor-animation-rtl {
from {
margin-left: -20px;
}
50% {
margin-left: 0;
}
to {
}
}
/* After the appearance of the anchor box, expand the icon into view */
@keyframes fxmonitor-icon-animation {
from {
transform: scale(0);
opacity: 0;
}
50% {
transform: scale(0);
opacity: 0;
}
75% {
transform: scale(1.2);
}
to {
}
}
#fxmonitor-notification .popupText {
max-width: 300px;
}
#fxmonitor-notification .headerText {
font-weight: 600;
white-space: pre;
}
|