summaryrefslogtreecommitdiffstats
path: root/toolkit/components/printing/content/printPagination.css
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-07 19:33:14 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-07 19:33:14 +0000
commit36d22d82aa202bb199967e9512281e9a53db42c9 (patch)
tree105e8c98ddea1c1e4784a60a5a6410fa416be2de /toolkit/components/printing/content/printPagination.css
parentInitial commit. (diff)
downloadfirefox-esr-36d22d82aa202bb199967e9512281e9a53db42c9.tar.xz
firefox-esr-36d22d82aa202bb199967e9512281e9a53db42c9.zip
Adding upstream version 115.7.0esr.upstream/115.7.0esr
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'toolkit/components/printing/content/printPagination.css')
-rw-r--r--toolkit/components/printing/content/printPagination.css141
1 files changed, 141 insertions, 0 deletions
diff --git a/toolkit/components/printing/content/printPagination.css b/toolkit/components/printing/content/printPagination.css
new file mode 100644
index 0000000000..5eb7b46924
--- /dev/null
+++ b/toolkit/components/printing/content/printPagination.css
@@ -0,0 +1,141 @@
+/* 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/. */
+
+:host {
+ /* in-content/common.css variables */
+ --blue-50: #0a84ff;
+ --grey-90-a10: rgba(12, 12, 13, 0.1);
+ --shadow-30: 0 4px 16px var(--grey-90-a10);
+ --border-active-shadow: var(--blue-50);
+}
+
+:host {
+ display: block;
+ position: absolute;
+ bottom: 24px;
+ inset-inline-start: 50%;
+ translate: -50%;
+}
+:host(:-moz-locale-dir(rtl)) {
+ translate: 50%;
+}
+
+.container {
+ margin-inline: auto;
+ align-items: center;
+ display: flex;
+ justify-content: center;
+ box-shadow: var(--shadow-30);
+ color: var(--toolbar-color);
+ background-color: var(--toolbar-bgcolor);
+ border-radius: 6px;
+ border-style: none;
+}
+.container::before {
+ content: "";
+ display: block;
+ position: absolute;
+ inset: 0;
+ z-index: -1;
+ background-color: ButtonFace;
+ border-radius: 6px;
+}
+
+.toolbarButton,
+.toolbarCenter {
+ align-self: stretch;
+ flex: 0 0 auto;
+ padding: var(--toolbarbutton-outer-padding);
+ border: none;
+ border-inline-end: 1px solid ThreeDShadow;
+ border-block: 1px solid ThreeDShadow;
+ color: inherit;
+ background-color: transparent;
+ min-width: calc(2 * var(--toolbarbutton-inner-padding) + 16px);
+ min-height: calc(2 * var(--toolbarbutton-inner-padding) + 16px);
+}
+.startItem {
+ border-inline-start: 1px solid ThreeDShadow;
+ border-start-start-radius: 6px;
+ border-end-start-radius: 6px;
+}
+.endItem {
+ border-start-end-radius: 6px;
+ border-end-end-radius: 6px;
+}
+
+.toolbarButton::after {
+ content: "";
+ display: inline-block;
+ width: 16px;
+ height: 16px;
+ vertical-align: text-bottom;
+ text-align: center;
+ background-repeat: no-repeat;
+ background-position: center center;
+ background-size: 12px;
+ -moz-context-properties: fill, fill-opacity;
+ fill: var(--toolbarbutton-icon-fill);
+}
+
+.toolbarButton:hover {
+ background-color: var(--toolbarbutton-hover-background);
+}
+.toolbarButton:hover:active {
+ background-color: var(--toolbarbutton-active-background);
+}
+.toolbarButton::-moz-focus-inner {
+ border: none;
+}
+.toolbarButton:focus {
+ z-index: 1;
+}
+
+.toolbarButton:-moz-focusring {
+ outline: 2px solid var(--border-active-shadow);
+}
+
+.toolbarCenter {
+ flex-shrink: 0;
+ /* 3 chars + (3px border + 1px padding) on both sides */
+ min-width: calc(8px + 3ch);
+ padding: 0 32px;
+ display: flex;
+ align-items: center;
+ justify-content: center;
+}
+
+#navigateHome::after,
+#navigateEnd::after {
+ background-image: url("chrome://global/skin/icons/chevron.svg");
+}
+
+#navigatePrevious::after,
+#navigateNext::after {
+ background-image: url("chrome://global/skin/icons/arrow-left.svg");
+}
+
+#navigatePrevious:-moz-locale-dir(rtl)::after,
+#navigateNext:-moz-locale-dir(ltr)::after {
+ background-image: url("chrome://global/skin/icons/arrow-right.svg");
+}
+
+#navigateEnd:-moz-locale-dir(rtl)::after,
+#navigateHome:-moz-locale-dir(ltr)::after {
+ transform: scaleX(-1);
+}
+
+/* progressively hide the navigation buttons when the print preview is too narrow to fit */
+@media (max-width: 550px) {
+ #navigatePrevious,
+ #navigateNext,
+ #navigateEnd,
+ #navigateHome {
+ display: none;
+ }
+ .toolbarCenter {
+ border-inline-start: 1px solid ThreeDShadow;
+ border-radius: 6px;
+ }
+}