AskOverflow.Dev

AskOverflow.Dev Logo AskOverflow.Dev Logo

AskOverflow.Dev Navigation

  • 主页
  • 系统&网络
  • Ubuntu
  • Unix
  • DBA
  • Computer
  • Coding
  • LangChain

Mobile menu

Close
  • 主页
  • 系统&网络
    • 最新
    • 热门
    • 标签
  • Ubuntu
    • 最新
    • 热门
    • 标签
  • Unix
    • 最新
    • 标签
  • DBA
    • 最新
    • 标签
  • Computer
    • 最新
    • 标签
  • Coding
    • 最新
    • 标签
主页 / unix / 问题 / 562721
Accepted
400 the Cat
400 the Cat
Asked: 2020-01-18 20:41:51 +0800 CST2020-01-18 20:41:51 +0800 CST 2020-01-18 20:41:51 +0800 CST

Thunderbird 68:改变引用颜色的 CSS

  • 772

在较旧的 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颜色来更改 com,pose 窗口中的引用文本?

我在撰写窗口中使用纯文本格式,以防万一。

thunderbird
  • 1 1 个回答
  • 730 Views

1 个回答

  • Voted
  1. Best Answer
    intika
    2020-01-21T10:14:09+08:002020-01-21T10:14:09+08:00

    雷鸟插件

    我刚刚更新了扩展QuoteColors;它以New QuoteColors的名称发布,请注意扩展的 xpi 文件已签名以简化安装。该扩展不处理消息编辑器/编辑器,这需要额外的工作以使其与该部分兼容,如果我有时间处理这个问题,我将在稍后编辑我的答案。

    来源和站点:Github 页面

    下载:v0.3.5版本(兼容v60.x和v68.x)

    Mozilla 插件网站:addons.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;
    }
    
    • 3

相关问题

  • Firejailed Thunderbird,打开附件

  • 在两个不同的 (Arch) Linux 机器之间同步 Thunderbird

  • 任务栏上 Thunderbird 的“新消息”计数

  • GNotifier 破坏了我的 Thunderbird 个人资料

  • 如何将邮件从雷鸟导出到齿轮?

Sidebar

Stats

  • 问题 205573
  • 回答 270741
  • 最佳答案 135370
  • 用户 68524
  • 热门
  • 回答
  • Marko Smith

    模块 i915 可能缺少固件 /lib/firmware/i915/*

    • 3 个回答
  • Marko Smith

    无法获取 jessie backports 存储库

    • 4 个回答
  • Marko Smith

    如何将 GPG 私钥和公钥导出到文件

    • 4 个回答
  • Marko Smith

    我们如何运行存储在变量中的命令?

    • 5 个回答
  • Marko Smith

    如何配置 systemd-resolved 和 systemd-networkd 以使用本地 DNS 服务器来解析本地域和远程 DNS 服务器来解析远程域?

    • 3 个回答
  • Marko Smith

    dist-upgrade 后 Kali Linux 中的 apt-get update 错误 [重复]

    • 2 个回答
  • Marko Smith

    如何从 systemctl 服务日志中查看最新的 x 行

    • 5 个回答
  • Marko Smith

    Nano - 跳转到文件末尾

    • 8 个回答
  • Marko Smith

    grub 错误:你需要先加载内核

    • 4 个回答
  • Marko Smith

    如何下载软件包而不是使用 apt-get 命令安装它?

    • 7 个回答
  • Martin Hope
    user12345 无法获取 jessie backports 存储库 2019-03-27 04:39:28 +0800 CST
  • Martin Hope
    Carl 为什么大多数 systemd 示例都包含 WantedBy=multi-user.target? 2019-03-15 11:49:25 +0800 CST
  • Martin Hope
    rocky 如何将 GPG 私钥和公钥导出到文件 2018-11-16 05:36:15 +0800 CST
  • Martin Hope
    Evan Carroll systemctl 状态显示:“状态:降级” 2018-06-03 18:48:17 +0800 CST
  • Martin Hope
    Tim 我们如何运行存储在变量中的命令? 2018-05-21 04:46:29 +0800 CST
  • Martin Hope
    Ankur S 为什么 /dev/null 是一个文件?为什么它的功能不作为一个简单的程序来实现? 2018-04-17 07:28:04 +0800 CST
  • Martin Hope
    user3191334 如何从 systemctl 服务日志中查看最新的 x 行 2018-02-07 00:14:16 +0800 CST
  • Martin Hope
    Marko Pacak Nano - 跳转到文件末尾 2018-02-01 01:53:03 +0800 CST
  • Martin Hope
    Kidburla 为什么真假这么大? 2018-01-26 12:14:47 +0800 CST
  • Martin Hope
    Christos Baziotis 在一个巨大的(70GB)、一行、文本文件中替换字符串 2017-12-30 06:58:33 +0800 CST

热门标签

linux bash debian shell-script text-processing ubuntu centos shell awk ssh

Explore

  • 主页
  • 问题
    • 最新
    • 热门
  • 标签
  • 帮助

Footer

AskOverflow.Dev

关于我们

  • 关于我们
  • 联系我们

Legal Stuff

  • Privacy Policy

Language

  • Pt
  • Server
  • Unix

© 2023 AskOverflow.DEV All Rights Reserve