summaryrefslogtreecommitdiffstats
path: root/comm/mail/themes/linux/mail/common.css
diff options
context:
space:
mode:
Diffstat (limited to 'comm/mail/themes/linux/mail/common.css')
-rw-r--r--comm/mail/themes/linux/mail/common.css56
1 files changed, 56 insertions, 0 deletions
diff --git a/comm/mail/themes/linux/mail/common.css b/comm/mail/themes/linux/mail/common.css
new file mode 100644
index 0000000000..ac25ade240
--- /dev/null
+++ b/comm/mail/themes/linux/mail/common.css
@@ -0,0 +1,56 @@
+/* - 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/. */
+
+@import url("chrome://messenger/skin/shared/common.css");
+
+@namespace html "http://www.w3.org/1999/xhtml";
+@namespace xul "http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul";
+@media not (prefers-contrast) {
+ @media (prefers-color-scheme: dark) {
+ :host,
+ :root {
+ /* Don't apply scrollbar-color since it removes the native scrollbar style on Linux */
+ scrollbar-color: initial;
+ }
+ }
+}
+
+xul|tab[visuallyselected] {
+ /* Override styles for tab[selected] from
+ toolkit/themes/linux/global/tabbox.css */
+ margin-bottom: 0;
+}
+
+/* Overriding appearance also avoids incorrect selection background color with
+ light text. */
+xul|menulist::part(label-box),
+xul|*.radio-label-box,
+xul|*.checkbox-label-box {
+ appearance: none;
+}
+
+xul|button[type="menu"] > xul|*.button-box > xul|*.button-menu-dropmarker {
+ appearance: none !important;
+}
+
+xul|menulist {
+ font-size: inherit;
+}
+
+html|button {
+ /* XUL button min-width */
+ min-width: 6.3em;
+}
+
+xul|tab {
+ min-height: 2.5em;
+}
+
+:host(dialog[subdialog]) .dialog-button-box > button {
+ min-height: var(--in-content-button-height);
+ padding-block: initial;
+ padding-inline: 15px;
+ border-color: transparent;
+ border-radius: var(--in-content-button-border-radius);
+}