2015-04-03 03:10:21 +03:00
|
|
|
%if 0
|
|
|
|
/* 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/. */
|
|
|
|
%endif
|
|
|
|
|
|
|
|
#notification-popup-box {
|
2016-07-04 13:56:29 +03:00
|
|
|
padding: 5px 0px;
|
|
|
|
margin: -5px 0px;
|
|
|
|
margin-inline-end: -5px;
|
|
|
|
padding-inline-end: 5px;
|
2015-09-02 13:38:28 +03:00
|
|
|
}
|
|
|
|
|
2016-05-27 12:54:34 +03:00
|
|
|
/* This class can be used alone or in combination with the class defining the
|
|
|
|
type of icon displayed. This rule must be defined before the others in order
|
|
|
|
for its list-style-image to be overridden. */
|
2015-04-03 03:10:21 +03:00
|
|
|
.notification-anchor-icon {
|
2016-06-08 17:56:06 +03:00
|
|
|
width: 16px;
|
|
|
|
height: 16px;
|
2016-07-04 13:56:29 +03:00
|
|
|
margin-inline-start: 2px;
|
2015-07-20 12:57:00 +03:00
|
|
|
%ifdef MOZ_WIDGET_GTK
|
|
|
|
list-style-image: url(moz-icon://stock/gtk-dialog-info?size=16);
|
|
|
|
%else
|
|
|
|
list-style-image: url(chrome://global/skin/icons/information-16.png);
|
|
|
|
%endif
|
2015-04-03 03:10:21 +03:00
|
|
|
}
|
|
|
|
|
2016-05-27 12:54:34 +03:00
|
|
|
@media (min-resolution: 1.1dppx) {
|
|
|
|
.notification-anchor-icon {
|
|
|
|
%ifdef MOZ_WIDGET_GTK
|
|
|
|
list-style-image: url(moz-icon://stock/gtk-dialog-info?size=dialog);
|
|
|
|
%else
|
|
|
|
list-style-image: url(chrome://global/skin/icons/information-32.png);
|
|
|
|
%endif
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2016-06-08 17:56:06 +03:00
|
|
|
.popup-notification-icon {
|
|
|
|
width: 64px;
|
|
|
|
height: 64px;
|
|
|
|
margin-inline-end: 10px;
|
|
|
|
}
|
|
|
|
|
2016-06-08 18:34:10 +03:00
|
|
|
.camera-icon,
|
|
|
|
.geo-icon,
|
|
|
|
.indexedDB-icon,
|
2016-07-12 16:15:45 +03:00
|
|
|
.install-icon,
|
2016-06-08 18:34:10 +03:00
|
|
|
.login-icon,
|
|
|
|
.microphone-icon,
|
2016-07-14 14:58:54 +03:00
|
|
|
.plugin-icon,
|
2016-06-21 18:36:02 +03:00
|
|
|
.pointerLock-icon,
|
2016-06-24 15:02:08 +03:00
|
|
|
.popup-icon,
|
2016-06-08 18:34:10 +03:00
|
|
|
.screen-icon,
|
2016-06-21 18:36:02 +03:00
|
|
|
.desktop-notification-icon,
|
2016-06-08 18:34:10 +03:00
|
|
|
.popup-notification-icon[popupid="geolocation"],
|
|
|
|
.popup-notification-icon[popupid="indexedDB-permissions-prompt"],
|
|
|
|
.popup-notification-icon[popupid="password"],
|
|
|
|
.popup-notification-icon[popupid="pointerLock"],
|
|
|
|
.popup-notification-icon[popupid="webRTC-shareDevices"],
|
|
|
|
.popup-notification-icon[popupid="webRTC-shareMicrophone"],
|
|
|
|
.popup-notification-icon[popupid="webRTC-shareScreen"],
|
|
|
|
.popup-notification-icon[popupid="web-notifications"] {
|
|
|
|
filter: url(chrome://browser/skin/filters.svg#fill);
|
2016-08-11 20:50:54 +03:00
|
|
|
fill: currentColor;
|
|
|
|
opacity: .4;
|
2016-06-08 18:34:10 +03:00
|
|
|
}
|
|
|
|
|
2016-08-11 20:50:54 +03:00
|
|
|
.notification-anchor-icon:hover {
|
|
|
|
opacity: .6;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* INDIVIDUAL NOTIFICATIONS */
|
|
|
|
|
2016-06-21 18:36:02 +03:00
|
|
|
.popup-notification-icon[popupid="web-notifications"],
|
|
|
|
.desktop-notification-icon {
|
2016-07-14 14:58:54 +03:00
|
|
|
list-style-image: url(chrome://browser/skin/notification-icons.svg#desktop-notification);
|
2016-06-21 18:36:02 +03:00
|
|
|
}
|
|
|
|
|
2016-07-05 15:57:32 +03:00
|
|
|
.desktop-notification-icon.blocked {
|
2016-07-14 14:58:54 +03:00
|
|
|
list-style-image: url(chrome://browser/skin/notification-icons.svg#desktop-notification-blocked);
|
2016-07-05 15:57:32 +03:00
|
|
|
}
|
|
|
|
|
2016-05-27 12:54:34 +03:00
|
|
|
.geo-icon {
|
2016-06-08 18:34:10 +03:00
|
|
|
%ifdef XP_MACOSX
|
2016-07-14 14:58:54 +03:00
|
|
|
list-style-image: url(chrome://browser/skin/notification-icons.svg#geo-osx);
|
2016-07-12 02:16:45 +03:00
|
|
|
%elif defined(MOZ_WIDGET_GTK)
|
2016-07-14 14:58:54 +03:00
|
|
|
list-style-image: url(chrome://browser/skin/notification-icons.svg#geo-linux);
|
2016-06-08 18:34:10 +03:00
|
|
|
%else
|
2016-07-14 14:58:54 +03:00
|
|
|
list-style-image: url(chrome://browser/skin/notification-icons.svg#geo-windows);
|
2016-06-08 18:34:10 +03:00
|
|
|
%endif
|
2015-04-03 03:10:21 +03:00
|
|
|
}
|
|
|
|
|
2016-07-05 15:57:32 +03:00
|
|
|
.geo-icon.blocked {
|
|
|
|
%ifdef XP_MACOSX
|
2016-07-14 14:58:54 +03:00
|
|
|
list-style-image: url(chrome://browser/skin/notification-icons.svg#geo-osx-blocked);
|
2016-07-12 02:16:45 +03:00
|
|
|
%elif defined(MOZ_WIDGET_GTK)
|
2016-07-14 14:58:54 +03:00
|
|
|
list-style-image: url(chrome://browser/skin/notification-icons.svg#geo-linux-blocked);
|
2016-07-05 15:57:32 +03:00
|
|
|
%else
|
2016-07-14 14:58:54 +03:00
|
|
|
list-style-image: url(chrome://browser/skin/notification-icons.svg#geo-windows-blocked);
|
2016-07-05 15:57:32 +03:00
|
|
|
%endif
|
|
|
|
}
|
|
|
|
|
2016-06-08 17:56:06 +03:00
|
|
|
.popup-notification-icon[popupid="geolocation"] {
|
|
|
|
%ifdef XP_MACOSX
|
2016-07-14 14:58:54 +03:00
|
|
|
list-style-image: url(chrome://browser/skin/notification-icons.svg#geo-osx);
|
2016-07-12 02:16:45 +03:00
|
|
|
%elif defined(MOZ_WIDGET_GTK)
|
2016-07-14 14:58:54 +03:00
|
|
|
list-style-image: url(chrome://browser/skin/notification-icons.svg#geo-linux-detailed);
|
2016-06-08 17:56:06 +03:00
|
|
|
%else
|
2016-07-14 14:58:54 +03:00
|
|
|
list-style-image: url(chrome://browser/skin/notification-icons.svg#geo-windows-detailed);
|
2016-06-08 17:56:06 +03:00
|
|
|
%endif
|
2015-04-03 03:10:21 +03:00
|
|
|
}
|
|
|
|
|
2016-06-08 18:34:10 +03:00
|
|
|
.popup-notification-icon[popupid="indexedDB-permissions-prompt"],
|
2016-05-27 12:54:34 +03:00
|
|
|
.indexedDB-icon {
|
2016-07-14 14:58:54 +03:00
|
|
|
list-style-image: url(chrome://browser/skin/notification-icons.svg#indexedDB);
|
2015-04-03 03:10:21 +03:00
|
|
|
}
|
|
|
|
|
2016-07-05 15:57:32 +03:00
|
|
|
.indexedDB-icon.blocked {
|
2016-07-14 14:58:54 +03:00
|
|
|
list-style-image: url(chrome://browser/skin/notification-icons.svg#indexedDB-blocked);
|
2016-07-05 15:57:32 +03:00
|
|
|
}
|
|
|
|
|
2016-05-27 12:54:34 +03:00
|
|
|
.login-icon {
|
2016-07-14 14:58:54 +03:00
|
|
|
list-style-image: url(chrome://browser/skin/notification-icons.svg#login);
|
2015-04-03 03:10:21 +03:00
|
|
|
}
|
|
|
|
|
2016-06-08 17:56:06 +03:00
|
|
|
.popup-notification-icon[popupid="password"] {
|
2016-07-14 14:58:54 +03:00
|
|
|
list-style-image: url(chrome://browser/skin/notification-icons.svg#login-detailed);
|
2016-06-08 17:56:06 +03:00
|
|
|
}
|
|
|
|
|
2015-05-13 17:34:14 +03:00
|
|
|
#login-fill-notification-icon {
|
2016-05-27 12:54:34 +03:00
|
|
|
/* Temporary solution until the capture and fill doorhangers are unified. */
|
2015-05-13 17:34:14 +03:00
|
|
|
transform: scaleX(-1);
|
|
|
|
}
|
|
|
|
|
2016-06-08 18:34:10 +03:00
|
|
|
.camera-icon,
|
2016-08-09 23:50:53 +03:00
|
|
|
.popup-notification-icon[popupid="webRTC-shareDevices"] {
|
2016-07-14 14:58:54 +03:00
|
|
|
list-style-image: url(chrome://browser/skin/notification-icons.svg#camera);
|
2015-04-03 03:10:21 +03:00
|
|
|
}
|
|
|
|
|
2016-07-05 15:57:32 +03:00
|
|
|
.camera-icon.blocked {
|
2016-07-14 14:58:54 +03:00
|
|
|
list-style-image: url(chrome://browser/skin/notification-icons.svg#camera-blocked);
|
2016-07-05 15:57:32 +03:00
|
|
|
}
|
|
|
|
|
2016-06-08 18:34:10 +03:00
|
|
|
.microphone-icon {
|
2016-07-14 14:58:54 +03:00
|
|
|
list-style-image: url(chrome://browser/skin/notification-icons.svg#microphone);
|
2015-04-03 03:10:21 +03:00
|
|
|
}
|
|
|
|
|
2016-07-05 15:57:32 +03:00
|
|
|
.microphone-icon.blocked {
|
2016-07-14 14:58:54 +03:00
|
|
|
list-style-image: url(chrome://browser/skin/notification-icons.svg#microphone-blocked);
|
2016-07-05 15:57:32 +03:00
|
|
|
}
|
|
|
|
|
2016-08-09 23:50:53 +03:00
|
|
|
.popup-notification-icon[popupid="webRTC-shareMicrophone"] {
|
2016-07-14 14:58:54 +03:00
|
|
|
list-style-image: url(chrome://browser/skin/notification-icons.svg#microphone-detailed);
|
2016-06-08 17:56:06 +03:00
|
|
|
}
|
|
|
|
|
2016-06-08 18:34:10 +03:00
|
|
|
.popup-notification-icon[popupid="webRTC-shareScreen"],
|
2016-05-27 12:54:34 +03:00
|
|
|
.screen-icon {
|
2016-07-14 14:58:54 +03:00
|
|
|
list-style-image: url(chrome://browser/skin/notification-icons.svg#screen);
|
2015-04-03 03:10:21 +03:00
|
|
|
}
|
|
|
|
|
2016-07-05 15:57:32 +03:00
|
|
|
.screen-icon.blocked {
|
2016-07-14 14:58:54 +03:00
|
|
|
list-style-image: url(chrome://browser/skin/notification-icons.svg#screen-blocked);
|
2016-07-05 15:57:32 +03:00
|
|
|
}
|
|
|
|
|
2016-06-08 18:34:10 +03:00
|
|
|
.popup-notification-icon[popupid="pointerLock"],
|
2016-06-21 18:36:02 +03:00
|
|
|
.pointerLock-icon {
|
2016-07-14 14:58:54 +03:00
|
|
|
list-style-image: url(chrome://browser/skin/notification-icons.svg#pointerLock);
|
2015-04-03 03:10:21 +03:00
|
|
|
}
|
|
|
|
|
2016-07-05 15:57:32 +03:00
|
|
|
.pointerLock-icon.blocked {
|
2016-07-14 14:58:54 +03:00
|
|
|
list-style-image: url(chrome://browser/skin/notification-icons.svg#pointerLock-blocked);
|
2016-07-05 15:57:32 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
/* This icon has a block sign in it, so we don't need a blocked version. */
|
2016-06-24 15:02:08 +03:00
|
|
|
.popup-icon {
|
2016-07-14 14:58:54 +03:00
|
|
|
list-style-image: url("chrome://browser/skin/notification-icons.svg#popup");
|
2016-06-24 15:02:08 +03:00
|
|
|
}
|
|
|
|
|
2016-06-08 17:56:06 +03:00
|
|
|
/* EME */
|
2015-04-03 03:10:21 +03:00
|
|
|
|
|
|
|
.popup-notification-icon[popupid="drmContentPlaying"],
|
2016-05-27 12:54:34 +03:00
|
|
|
.drm-icon {
|
2015-04-03 03:10:21 +03:00
|
|
|
list-style-image: url("chrome://browser/skin/drm-icon.svg#chains");
|
|
|
|
}
|
|
|
|
|
2016-05-27 12:54:34 +03:00
|
|
|
.drm-icon:hover:active {
|
2015-04-03 03:10:21 +03:00
|
|
|
list-style-image: url("chrome://browser/skin/drm-icon.svg#chains-pressed");
|
|
|
|
}
|
|
|
|
|
|
|
|
#eme-notification-icon[firstplay=true] {
|
|
|
|
animation: emeTeachingMoment 0.2s linear 0s 5 normal;
|
|
|
|
}
|
|
|
|
|
|
|
|
@keyframes emeTeachingMoment {
|
|
|
|
0% {transform: translateX(0); }
|
|
|
|
25% {transform: translateX(3px) }
|
|
|
|
75% {transform: translateX(-3px) }
|
|
|
|
100% { transform: translateX(0); }
|
|
|
|
}
|
2015-04-03 09:11:17 +03:00
|
|
|
|
2016-06-08 17:56:06 +03:00
|
|
|
/* INSTALL ADDONS */
|
|
|
|
|
|
|
|
.install-icon {
|
|
|
|
list-style-image: url(chrome://browser/skin/addons/addon-install-anchor.svg#default);
|
|
|
|
}
|
|
|
|
|
|
|
|
.popup-notification-icon[popupid="xpinstall-disabled"],
|
|
|
|
.popup-notification-icon[popupid="addon-install-blocked"],
|
|
|
|
.popup-notification-icon[popupid="addon-install-origin-blocked"] {
|
|
|
|
list-style-image: url(chrome://browser/skin/addons/addon-install-blocked.svg);
|
|
|
|
}
|
|
|
|
|
|
|
|
.popup-notification-icon[popupid="addon-progress"] {
|
|
|
|
list-style-image: url(chrome://browser/skin/addons/addon-install-downloading.svg);
|
|
|
|
}
|
|
|
|
|
|
|
|
.popup-notification-icon[popupid="addon-install-failed"] {
|
|
|
|
list-style-image: url(chrome://browser/skin/addons/addon-install-error.svg);
|
|
|
|
}
|
|
|
|
|
|
|
|
.popup-notification-icon[popupid="addon-install-confirmation"] {
|
|
|
|
list-style-image: url(chrome://browser/skin/addons/addon-install-confirm.svg);
|
|
|
|
}
|
|
|
|
|
|
|
|
#addon-install-confirmation-notification[warning] .popup-notification-icon[popupid="addon-install-confirmation"] {
|
|
|
|
list-style-image: url(chrome://browser/skin/addons/addon-install-warning.svg);
|
|
|
|
}
|
|
|
|
|
|
|
|
.popup-notification-icon[popupid="addon-install-complete"] {
|
|
|
|
list-style-image: url(chrome://browser/skin/addons/addon-install-installed.svg);
|
|
|
|
}
|
|
|
|
|
|
|
|
.popup-notification-icon[popupid="addon-install-restart"] {
|
|
|
|
list-style-image: url(chrome://browser/skin/addons/addon-install-restart.svg);
|
|
|
|
}
|
|
|
|
|
|
|
|
.popup-notification-icon[popupid="click-to-play-plugins"] {
|
|
|
|
list-style-image: url(chrome://mozapps/skin/plugins/pluginBlocked-64.png);
|
|
|
|
}
|
|
|
|
|
|
|
|
/* OFFLINE APPS */
|
|
|
|
|
|
|
|
.popup-notification-icon[popupid*="offline-app-requested"],
|
|
|
|
.popup-notification-icon[popupid="offline-app-usage"] {
|
|
|
|
list-style-image: url(chrome://global/skin/icons/question-64.png);
|
|
|
|
}
|
|
|
|
|
|
|
|
/* PLUGINS */
|
|
|
|
|
|
|
|
.plugin-icon {
|
2016-07-14 14:58:54 +03:00
|
|
|
list-style-image: url(chrome://browser/skin/notification-icons.svg#plugin);
|
2016-06-08 17:56:06 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
.plugin-icon.plugin-blocked {
|
2016-07-14 14:58:54 +03:00
|
|
|
list-style-image: url(chrome://browser/skin/notification-icons.svg#plugin-blocked);
|
2016-08-11 20:50:54 +03:00
|
|
|
fill: #d92215;
|
|
|
|
opacity: 1 !important; /* !important to override the default hover opacity */
|
2016-06-08 17:56:06 +03:00
|
|
|
}
|
2015-04-03 09:11:17 +03:00
|
|
|
|
2016-06-08 17:56:06 +03:00
|
|
|
#notification-popup-box[hidden] {
|
|
|
|
/* Override display:none to make the pluginBlockedNotification animation work
|
|
|
|
when showing the notification repeatedly. */
|
|
|
|
display: -moz-box;
|
|
|
|
visibility: collapse;
|
|
|
|
}
|
2015-04-03 09:11:17 +03:00
|
|
|
|
2016-06-08 17:56:06 +03:00
|
|
|
#plugins-notification-icon.plugin-blocked[showing] {
|
|
|
|
animation: pluginBlockedNotification 500ms ease 0s 5 alternate both;
|
|
|
|
}
|
|
|
|
|
|
|
|
@keyframes pluginBlockedNotification {
|
|
|
|
from {
|
2016-08-12 00:04:00 +03:00
|
|
|
opacity: 0;
|
2015-04-03 09:11:17 +03:00
|
|
|
}
|
2016-06-08 17:56:06 +03:00
|
|
|
to {
|
2016-08-12 00:04:00 +03:00
|
|
|
opacity: 1;
|
2016-06-08 17:56:06 +03:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
/* SOCIAL API */
|
2015-04-03 09:11:17 +03:00
|
|
|
|
2016-06-08 17:56:06 +03:00
|
|
|
.popup-notification-icon[popupid="servicesInstall"] {
|
|
|
|
list-style-image: url(chrome://browser/skin/social/services-64.png);
|
|
|
|
}
|
|
|
|
|
|
|
|
.service-icon {
|
|
|
|
list-style-image: url(chrome://browser/skin/social/services-16.png);
|
|
|
|
}
|
|
|
|
|
|
|
|
%ifdef XP_MACOSX
|
|
|
|
@media (min-resolution: 1.1dppx) {
|
2015-04-03 09:11:17 +03:00
|
|
|
.popup-notification-icon[popupid="servicesInstall"] {
|
|
|
|
list-style-image: url(chrome://browser/skin/social/services-64@2x.png);
|
|
|
|
}
|
|
|
|
|
2016-05-27 12:54:34 +03:00
|
|
|
.service-icon {
|
2015-04-03 09:11:17 +03:00
|
|
|
list-style-image: url(chrome://browser/skin/social/services-16@2x.png);
|
|
|
|
}
|
2016-06-08 17:56:06 +03:00
|
|
|
}
|
2015-04-03 09:11:17 +03:00
|
|
|
%endif
|
2016-06-08 17:56:06 +03:00
|
|
|
|
|
|
|
/* TRANSLATION */
|
|
|
|
|
|
|
|
.translation-icon {
|
|
|
|
list-style-image: url(chrome://browser/skin/translation-16.png);
|
|
|
|
-moz-image-region: rect(0px, 16px, 16px, 0px);
|
|
|
|
}
|
|
|
|
|
|
|
|
.translation-icon.in-use {
|
|
|
|
-moz-image-region: rect(0px, 32px, 16px, 16px);
|
2015-05-27 20:58:24 +03:00
|
|
|
}
|
2016-06-08 17:56:06 +03:00
|
|
|
|
|
|
|
%ifdef XP_MACOSX
|
|
|
|
@media (min-resolution: 1.1dppx) {
|
|
|
|
.translation-icon {
|
|
|
|
list-style-image: url(chrome://browser/skin/translation-16@2x.png);
|
|
|
|
-moz-image-region: rect(0px, 32px, 32px, 0px);
|
|
|
|
}
|
|
|
|
|
|
|
|
.translation-icon.in-use {
|
|
|
|
-moz-image-region: rect(0px, 64px, 32px, 32px);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
%endif
|