Firefox - 输入/表单的默认配色方案?

Gue*_*itz 3 firefox system colors

firefox-铬-比较

我正在使用带有深色主题的 Linux Mint 18.3。因此默认文本颜色(对于 linux 系统)为浅灰色,背景为深灰色。

Firefox 将这些颜色用于文本输入/表单(浅灰色)和复选框(深灰色)。

然而,铬有它自己的标准颜色。这就是我想要的 Firefox。

我知道您可以在 中设置自定义 css 设置,userContent.css但这会覆盖所有输入表单,而不仅仅是网站本身没有设置样式的表单。

有没有办法让 Firefox 也使用其他默认颜色(如 Chromium)来处理没有其他样式的元素?

Vis*_*uVS 5

我使用薄荷,我遇到了完全相同的问题。这对我有用:

~/.mozilla/firefox/randomName.default。创建一个名为的新文件夹chrome(如果chrome已经存在一个文件夹,请将其重命名为 old-chrome)。在chrome文件夹中创建一个名为userContent.css的新文件并粘贴以下代码。

@-moz-document url-prefix(about:blank) {*{background-color:#202020;}}
/*
* Use this css file to eliminate problems in Firefox
* when using dark themes that create dark on dark
* input boxes, selection menus and buttons. Put this
* in the ../firefox/default/chrome folder or your
* individual user firefox profile chrome folder.
*/
input {
border: 2px inset white;
background-color: white;
color: black;
-moz-appearance: none !important;
}
textarea {
border: 2px inset white;
background-color: white;
color: black;
-moz-appearance: none !important;
}
select {
border: 2px inset white;
background-color: white;
color: black;
-moz-appearance: none !important;
}
input[type="radio"],
input[type="checkbox"] {
border: 2px inset white !important;
background-color: white !important;
color: ThreeDFace !important;
-moz-appearance: none !important;
}
*|*::-moz-radio {
background-color: white;
-moz-appearance: none !important;
}
button,
input[type="reset"],
input[type="button"],
input[type="submit"] {
border: 2px outset white;
background-color: #eeeeee;
color: black;
-moz-appearance: none !important;
}
body {
background-color: white;
color: black;
display: block;
margin: 8px;
-moz-appearance: none !important;
}
Run Code Online (Sandbox Code Playgroud)

保存文件并重新启动 Firefox。你的问题应该得到解决。祝你好运。如果您需要将其改回,只需删除 chrome 文件夹并再次重新启动 Firefox。