forked from mirrors/gecko-dev
Differential Revision: https://phabricator.services.mozilla.com/D40666 --HG-- rename : browser/extensions/fxmonitor/privileged/api.js => browser/components/fxmonitor/FirefoxMonitor.jsm rename : browser/extensions/fxmonitor/privileged/FirefoxMonitor.css => browser/components/fxmonitor/content/FirefoxMonitor.css rename : browser/extensions/fxmonitor/assets/monitor32.svg => browser/components/fxmonitor/content/monitor32.svg rename : browser/extensions/fxmonitor/moz.build => browser/components/fxmonitor/moz.build rename : browser/extensions/fxmonitor/test/browser/browser.ini => browser/components/fxmonitor/test/browser/browser.ini rename : browser/extensions/fxmonitor/test/browser/browser_fxmonitor_doorhanger.js => browser/components/fxmonitor/test/browser/browser_fxmonitor_doorhanger.js rename : browser/extensions/fxmonitor/locales/en-US/fxmonitor.properties => browser/locales/en-US/chrome/browser/fxmonitor.properties extra : moz-landing-system : lando
90 lines
2 KiB
CSS
90 lines
2 KiB
CSS
/* 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;
|
|
}
|