在较旧的 Thunderbird 中,我使用了插件“QuoteColors”,它可以很好地为电子邮件中引用的文本着色。对于 Thunderbird 68,这个插件不兼容孤独者,所以我试图通过以下方式实现相同的目标css
:
这是我的userContent.css
blockquote[type=cite] {
border-color: #ff3f55 ! important;
color: #ff463a ! important;
background: #454545; ! important;
}
blockquote[type=cite] blockquote {
border-color: #fad123 ! important;
color: #fad123 ! important;
background: #656565; ! important;
}
blockquote[type=cite] blockquote blockquote {
border-color: #3022f0 ! important;
color: #1e0fe4 ! important;
background: #858585; ! important;
}
这工作得很好,但仅限于主窗口。
当我单击“回复”并打开撰写窗口时,引用的文本不受影响。
如何使用我的css
颜色来更改撰写窗口中引用的文本?
我在撰写窗口中使用纯文本格式,以防相关。
答案1
雷鸟插件
我刚刚更新了扩展报价颜色;它以名义发布新报价颜色,请注意,扩展的 xpi 文件经过签名以简化安装。该扩展程序不处理消息编辑器/编辑器,这需要额外的工作才能使其与该部分兼容,如果我有时间处理此问题,我将在稍后编辑我的答案。
来源及网站:Github页面
下载:v0.3.5 发布(兼容 v60.x 和 v68.x)
Mozilla 插件站点:插件.thunderbird.net(仍在审核中)
自定义CSS:
在纯文本模式下自定义消息编辑器并不是一件容易的事,因为纯文本编辑没有任何 CSS,因此无法处理 CSS 自定义,但这取决于您应用纯文本的方式,因为 Thunderbird 可以设置为以 html 格式编写消息,同时以纯文本发送消息。
请测试以下代码并让我知道;)请注意,这是来自 TB v68.4.1 的详尽自定义 CSS 列表,用于测试目的,但缺少有关您的设置的技术详细信息
span[_moz_quote=true] {
color: green !important;
background: green !important;
background-color: green !important;
border-color: green !important;
}
pre[_moz_quote=true] {
color: green !important;
background: green !important;
background-color: green !important;
border-color: green !important;
}
/* :::: ---------------------------------------------------------------------------------------- ::::: */
/* ::::: message text, incl. quotes ::::: */
.moz-text-flowed blockquote,
.moz-text-plain blockquote {
border-color: red !important;
color: red !important;
background: red !important;
background-color: red !important;
}
.moz-text-plain pre {
border-color: red !important;
color: red !important;
background: red !important;
background-color: red !important;
}
.moz-text-plain[wrap="true"] {
color: red !important;
background: red !important;
background-color: red !important;
border-color: red !important;
}
.moz-text-plain[wrap="false"] {
color: red !important;
background: red !important;
background-color: red !important;
border-color: red !important;
}
.moz-text-plain[wrap="flow"] .moz-txt-sig {
color: red !important;
background: red !important;
background-color: red !important;
border-color: red !important;
}
.moz-text-plain[graphical-quote="false"] blockquote {
color: red !important;
background: red !important;
background-color: red !important;
border-color: red !important;
}
.moz-text-plain[graphical-quote="true"] .moz-txt-citetags {
color: red !important;
background: red !important;
background-color: red !important;
border-color: red !important;
}
.moz-txt-underscore {
color: red !important;
background: red !important;
background-color: red !important;
border-color: red !important;
}
.moz-txt-formfeed {
color: red !important;
background: red !important;
background-color: red !important;
border-color: red !important;
}
/* :::: ---------------------------------------------------------------------------------------- ::::: */
body.light blockquote {
border-inline-start: 2px solid blue !important;
color: red !important;
background: red !important;
background-color: red !important;
border-color: red !important;
}
body.sepia blockquote {
border-inline-start: 2px solid blue !important;
color: red !important;
background: red !important;
background-color: red !important;
border-color: red !important;
}
body.dark blockquote {
border-inline-start: 2px solid blue !important;
color: red !important;
background: red !important;
background-color: red !important;
border-color: red !important;
}
.moz-reader-content blockquote {
color: red !important;
background: red !important;
background-color: red !important;
border-color: red !important;
}
/* :::: ---------------------------------------------------------------------------------------- ::::: */
body blockquote[type=cite] {
color: red !important;
background: red !important;
background-color: red !important;
border-color: red !important;
}
/* :::: ---------------------------------------------------------------------------------------- ::::: */
body blockquote[type=cite] {
color: red !important;
background: red !important;
background-color: red !important;
border-color: red !important;
}
blockquote[type=cite] blockquote[type=cite] {
color: red !important;
background: red !important;
background-color: red !important;
}
blockquote[type=cite] blockquote[type=cite] blockquote[type=cite] {
color: red !important;
background: red !important;
background-color: red !important;
border-color: red !important;
}
blockquote[type=cite] blockquote[type=cite] blockquote[type=cite] blockquote[type=cite] {
color: red !important;
background: red !important;
background-color: red !important;
}
blockquote[type=cite] blockquote[type=cite] blockquote[type=cite] blockquote[type=cite] blockquote[type=cite] {
color: red !important;
background: red !important;
background-color: red !important;
}
/* :::: ---------------------------------------------------------------------------------------- ::::: */
.moz-email-headers-table,
.moz-email-headers-table > tbody > tr > th,
.moz-email-headers-table > tbody > tr > td,
blockquote[type=cite] table,
blockquote[type=cite] table > tbody > tr > th,
blockquote[type=cite] table > tbody > tr > td {
border: 1px solid transparent !important;
color: red !important;
background: red !important;
background-color: red !important;
border-color: red !important;
}
table.moz-email-headers-table:hover,
table.moz-email-headers-table:hover > tbody > tr > th,
table.moz-email-headers-table:hover > tbody > tr > td,
blockquote[type=cite] table:hover,
blockquote[type=cite] table:hover > tbody > tr > th,
blockquote[type=cite] table:hover > tbody > tr > td {
color: red !important;
background: red !important;
background-color: red !important;
border-color: red !important;
}
/* :::: ---------------------------------------------------------------------------------------- ::::: */
body > p:-moz-first-node, td > p:-moz-first-node, th > p:-moz-first-node,
body > dl:-moz-first-node, td > dl:-moz-first-node, th > dl:-moz-first-node,
body > multicol:-moz-first-node, td > multicol:-moz-first-node, th > multicol:-moz-first-node,
body > blockquote:-moz-first-node, td > blockquote:-moz-first-node, th > blockquote:-moz-first-node,
body > h1:-moz-first-node, td > h1:-moz-first-node, th > h1:-moz-first-node,
body > h2:-moz-first-node, td > h2:-moz-first-node, th > h2:-moz-first-node,
body > h3:-moz-first-node, td > h3:-moz-first-node, th > h3:-moz-first-node,
body > h4:-moz-first-node, td > h4:-moz-first-node, th > h4:-moz-first-node,
body > h5:-moz-first-node, td > h5:-moz-first-node, th > h5:-moz-first-node,
body > h6:-moz-first-node, td > h6:-moz-first-node, th > h6:-moz-first-node,
body > listing:-moz-first-node, td > listing:-moz-first-node, th > listing:-moz-first-node,
body > plaintext:-moz-first-node, td > plaintext:-moz-first-node, th > plaintext:-moz-first-node,
body > xmp:-moz-first-node, td > xmp:-moz-first-node, th > xmp:-moz-first-node,
body > pre:-moz-first-node, td > pre:-moz-first-node, th > pre:-moz-first-node,
body > ul:-moz-first-node, td > ul:-moz-first-node, th > ul:-moz-first-node,
body > menu:-moz-first-node, td > menu:-moz-first-node, th > menu:-moz-first-node,
body > dir:-moz-first-node, td > dir:-moz-first-node, th > dir:-moz-first-node,
body > ol:-moz-first-node, td > ol:-moz-first-node, th > ol:-moz-first-node {
color: red !important;
background: red !important;
background-color: red !important;
border-color: red !important;
}