summaryrefslogtreecommitdiffstats
path: root/browser/base/content/sanitizeDialog.css
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-07 09:22:09 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-07 09:22:09 +0000
commit43a97878ce14b72f0981164f87f2e35e14151312 (patch)
tree620249daf56c0258faa40cbdcf9cfba06de2a846 /browser/base/content/sanitizeDialog.css
parentInitial commit. (diff)
downloadfirefox-43a97878ce14b72f0981164f87f2e35e14151312.tar.xz
firefox-43a97878ce14b72f0981164f87f2e35e14151312.zip
Adding upstream version 110.0.1.upstream/110.0.1upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'browser/base/content/sanitizeDialog.css')
-rw-r--r--browser/base/content/sanitizeDialog.css73
1 files changed, 73 insertions, 0 deletions
diff --git a/browser/base/content/sanitizeDialog.css b/browser/base/content/sanitizeDialog.css
new file mode 100644
index 0000000000..905a5b4f6a
--- /dev/null
+++ b/browser/base/content/sanitizeDialog.css
@@ -0,0 +1,73 @@
+/* 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/. */
+
+/* Sanitize everything warnings */
+
+#sanitizeEverythingWarning,
+#sanitizeEverythingUndoWarning {
+ white-space: pre-wrap;
+}
+
+/* Hide the duration dropdown suffix label if it's empty. Otherwise it
+ takes up a little space, causing the end of the dropdown to not be aligned
+ with the warning box. */
+#sanitizeDurationSuffixLabel[value=""] {
+ display: none;
+}
+
+#sanitizeDurationLabel[value=""] + #sanitizeDurationChoice {
+ margin-inline-start: 0;
+}
+
+/* Sanitize everything warning box */
+#sanitizeEverythingWarningBox {
+ /* Fallback colors are used when the dialog is open outside of in-content prefs */
+ background-color: var(--in-content-box-background, Window);
+ border: 1px solid var(--in-content-box-border-color, ThreeDDarkShadow);
+ border-radius: 5px;
+ padding: 16px;
+ margin-block: 6px;
+}
+
+#sanitizeEverythingWarningIcon {
+ padding: 0;
+ margin: 0;
+}
+
+#sanitizeEverythingWarningDescBox {
+ padding: 0 16px;
+ margin: 0;
+}
+
+#titleText {
+ margin-block-start: 0;
+ margin-inline: 4px;
+}
+
+dialog:not([inbrowserwindow]) #titleText {
+ display: none;
+}
+
+dialog[inbrowserwindow] {
+ --grid-padding: 16px;
+ padding: var(--grid-padding) calc(var(--grid-padding) - 4px);
+}
+
+dialog[inbrowserwindow] groupbox,
+dialog[inbrowserwindow] #sanitizeEverythingWarningBox,
+dialog[inbrowserwindow] #SanitizeDurationBox {
+ margin-inline: 4px;
+}
+
+dialog[inbrowserwindow] #sanitizeDurationLabel {
+ margin-inline-start: 0;
+}
+
+dialog[inbrowserwindow] #sanitizeDurationSuffixLabel {
+ margin-inline-end: 0;
+}
+
+dialog[inbrowserwindow] groupbox:last-child {
+ margin-block-end: 16px;
+}