summaryrefslogtreecommitdiffstats
path: root/browser/base/content/sanitizeDialog.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 /browser/base/content/sanitizeDialog.css
parentInitial commit. (diff)
downloadthunderbird-6bf0a5cb5034a7e684dcc3500e841785237ce2dd.tar.xz
thunderbird-6bf0a5cb5034a7e684dcc3500e841785237ce2dd.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 '')
-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;
+}