aboutsummaryrefslogtreecommitdiff
path: root/arc-firefox-theme/chrome/global/alerts
diff options
context:
space:
mode:
authorHorst31802016-01-26 17:12:18 +0100
committerHorst31802016-01-26 17:12:18 +0100
commitf0c632a7b1bf1f46612280fdbd9201993f1c89c3 (patch)
treeb9ded11a19679f3d51d1981156e3ff89f6e5a780 /arc-firefox-theme/chrome/global/alerts
parent27ad834a8ec49d367db75e890a552d31c56260bf (diff)
parent95aff996e5d12f1af298d465ef3cd043207fa960 (diff)
downloadsolarc-firefox-theme-f0c632a7b1bf1f46612280fdbd9201993f1c89c3.tar.gz
solarc-firefox-theme-f0c632a7b1bf1f46612280fdbd9201993f1c89c3.tar.xz
solarc-firefox-theme-f0c632a7b1bf1f46612280fdbd9201993f1c89c3.zip
Merge branch 'firefox-44-beta'
Diffstat (limited to 'arc-firefox-theme/chrome/global/alerts')
-rw-r--r--arc-firefox-theme/chrome/global/alerts/alert-common.css143
-rw-r--r--arc-firefox-theme/chrome/global/alerts/alert.css44
-rw-r--r--arc-firefox-theme/chrome/global/alerts/notification-48.pngbin2517 -> 0 bytes
3 files changed, 144 insertions, 43 deletions
diff --git a/arc-firefox-theme/chrome/global/alerts/alert-common.css b/arc-firefox-theme/chrome/global/alerts/alert-common.css
new file mode 100644
index 0000000..20d9e7b
--- /dev/null
+++ b/arc-firefox-theme/chrome/global/alerts/alert-common.css
@@ -0,0 +1,143 @@
+/* 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/. */
+
+/* ===== alert.css =====================================================
+ == Shared styles specific to the alerts dialog.
+ ======================================================================= */
+
+@import url("chrome://global/skin/");
+
+@namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul");
+
+#alertBox[animate] {
+ animation-timing-function: cubic-bezier(.12,1.23,.48,1.09);
+}
+
+#alertBox[animate][clicked] {
+ animation-duration: .6s;
+ animation-name: alert-clicked-animation;
+}
+
+/* This is used if the close button is clicked
+ before the animation has finished. */
+#alertBox[animate][closing] {
+ animation-duration: .6s;
+ animation-name: alert-closing-animation;
+}
+
+@keyframes alert-animation {
+ from {
+ opacity: 0;
+ }
+ 5% {
+ opacity: 1;
+ }
+ 95% {
+ opacity: 1;
+ }
+ to {
+ opacity: 0;
+ }
+}
+
+@keyframes alert-clicked-animation {
+ to {
+ opacity: 0;
+ }
+}
+
+@keyframes alert-closing-animation {
+ to {
+ opacity: 0;
+ }
+}
+
+#alertImage {
+ width: 80px;
+ height: 80px;
+ max-width: 80px;
+ max-height: 80px;
+ object-fit: scale-down;
+ margin: 0 7px 7px;
+}
+
+.alertTextBox {
+ padding-top: 4px;
+ /* The text box width is increased to make up for the lack of image when one
+ is not provided. 349px is the text box width when a picture is present,
+ 255px, plus the width of the image, 80px, and the margins, 7px each. */
+ width: 349px;
+}
+
+#alertBox[hasImage] > box > #alertTextBox {
+ width: 255px;
+}
+
+#alertBox:not([hasImage]) > box > #alertTextBox {
+ padding-inline-start: 8px;
+}
+
+#alertTextLabel {
+ padding-inline-end: 8px;
+}
+
+.alertTitle {
+ -moz-box-flex: 1;
+ font-weight: bold;
+ padding: 6px 8px 0;
+ width: 255px;
+}
+
+#alertFooter {
+ -moz-box-align: start;
+}
+
+#alertBox:not([hasOrigin]) > box > #alertTextBox,
+#alertFooter {
+ padding-bottom: 5px;
+}
+
+#alertSourceLabel {
+ -moz-box-flex: 1;
+ font-size: 83.334%;
+ color: GrayText;
+}
+
+#alertSettings {
+ -moz-appearance: none;
+ background-color: transparent;
+ border-width: 0;
+ border-radius: 20px;
+ min-width: 0;
+ list-style-image: url("chrome://mozapps/skin/extensions/utilities.svg#utilities-grayscale");
+ margin-inline-end: 0;
+ margin-bottom: 0;
+}
+
+#alertSettings > .button-box {
+ padding: 0;
+}
+
+#alertSettings:hover,
+#alertSettings[open] {
+ list-style-image: url("chrome://mozapps/skin/extensions/utilities.svg#utilities-inverted");
+}
+
+#alertSettings:hover {
+ background-color: rgb(128,128,128);
+}
+
+#alertSettings[open],
+#alertSettings:hover:active {
+ background-color: rgb(102,102,102);
+}
+
+#alertSettings[focusedViaMouse]:-moz-focusring > .button-box {
+ border-color: transparent;
+}
+
+#alertSettings > .button-box > .button-menu-dropmarker,
+#alertSettings > .button-box > .box-inherit > .button-text {
+ display: none;
+}
diff --git a/arc-firefox-theme/chrome/global/alerts/alert.css b/arc-firefox-theme/chrome/global/alerts/alert.css
index 38d504e..7d09f02 100644
--- a/arc-firefox-theme/chrome/global/alerts/alert.css
+++ b/arc-firefox-theme/chrome/global/alerts/alert.css
@@ -6,7 +6,7 @@
== Styles specific to the alerts dialog.
======================================================================= */
-@import url("chrome://global/skin/");
+@import url("chrome://global/skin/alerts/alert-common.css");
@namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul");
@@ -15,48 +15,6 @@
background-color: -moz-Dialog;
}
-.alertImageBox {
- padding: 8px 0;
- width: 64px;
- background-image: linear-gradient(rgba(255,255,255,0.7), rgba(255,255,255,0.6));
- -moz-border-end: 1px solid rgba(0,0,0,.1);
-}
-
-.alertTextBox {
- padding: 8px;
- -moz-padding-start: 16px;
- width: 255px;
-}
-
-.alertTextBox,
-.alertCloseBox {
- background-image: linear-gradient(rgba(255,255,255,0.2), rgba(255,255,255,0.1));
-}
-
-#alertNotification[clickable="true"]:hover .alertTextBox,
-#alertNotification[clickable="true"]:hover .alertCloseBox {
- background-image: linear-gradient(rgba(255,255,255,0.4), rgba(255,255,255,0.3));
-}
-
-.alertTitle {
- font-weight: bold;
- font-size: 110%;
-}
-
-#alertImage {
- max-width: 48px;
- max-height: 48px;
- list-style-image: url(chrome://global/skin/alerts/notification-48.png);
-}
-
-#alertNotification[clickable="true"] {
- cursor: pointer;
-}
-
-label {
- cursor: inherit;
-}
-
.alertCloseButton {
-moz-appearance: none;
height: 16px;
diff --git a/arc-firefox-theme/chrome/global/alerts/notification-48.png b/arc-firefox-theme/chrome/global/alerts/notification-48.png
deleted file mode 100644
index 23ab5a0..0000000
--- a/arc-firefox-theme/chrome/global/alerts/notification-48.png
+++ /dev/null
Binary files differ