summaryrefslogtreecommitdiffstats
path: root/comm/calendar/base/themes/common/publishDialog.css
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-07 17:32:43 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-07 17:32:43 +0000
commit6bf0a5cb5034a7e684dcc3500e841785237ce2dd (patch)
treea68f146d7fa01f0134297619fbe7e33db084e0aa /comm/calendar/base/themes/common/publishDialog.css
parentInitial commit. (diff)
downloadthunderbird-upstream.tar.xz
thunderbird-upstream.zip
Adding upstream version 1:115.7.0.upstream/1%115.7.0upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'comm/calendar/base/themes/common/publishDialog.css')
-rw-r--r--comm/calendar/base/themes/common/publishDialog.css53
1 files changed, 53 insertions, 0 deletions
diff --git a/comm/calendar/base/themes/common/publishDialog.css b/comm/calendar/base/themes/common/publishDialog.css
new file mode 100644
index 0000000000..cf59fe22e3
--- /dev/null
+++ b/comm/calendar/base/themes/common/publishDialog.css
@@ -0,0 +1,53 @@
+/* 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/. */
+
+@namespace html url("http://www.w3.org/1999/xhtml");
+
+html|label {
+ white-space: nowrap;
+ margin-right: 0.5em;
+}
+
+#publish-progressmeter {
+ width: -moz-available;
+ appearance: none;
+ height: 4px;
+ margin: 10px 4px;
+ background-color: hsla(0, 0%, 60%, 0.2);
+ border-style: none;
+ border-radius: 2px;
+}
+
+#publish-progressmeter::-moz-progress-bar {
+ appearance: none;
+ background-color: var(--primary);
+ border-radius: 2px;
+}
+
+#publish-progressmeter:indeterminate::-moz-progress-bar {
+ /* Make a white reflecting animation.
+ Create a gradient with 2 identical pattern, and enlarge the size to 200%.
+ This allows us to animate background-position with percentage. */
+ background-image: linear-gradient(90deg, transparent 0%,
+ rgba(255, 255, 255, 0.5) 25%,
+ transparent 50%,
+ rgba(255, 255, 255, 0.5) 75%,
+ transparent 100%);
+ background-size: 200% 100%;
+}
+
+@media (prefers-reduced-motion: no-preference) {
+ #publish-progressmeter:indeterminate::-moz-progress-bar {
+ animation: progressSlideX 1.5s linear infinite;
+ }
+
+ @keyframes progressSlideX {
+ 0% {
+ background-position: 0 0;
+ }
+ 100% {
+ background-position: -100% 0;
+ }
+ }
+}