Proton Mail Carbon Editor Theme

Carbon theme in Proton Mail is beautiful but not complete, so i fix this.

目前為 2024-06-02 提交的版本,檢視 最新版本

您需要先安裝使用者腳本管理器擴展,如 TampermonkeyGreasemonkeyViolentmonkey 之後才能安裝該腳本。

You will need to install an extension such as Tampermonkey to install this script.

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyViolentmonkey 後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyUserscripts 後才能安裝該腳本。

你需要先安裝一款使用者腳本管理器擴展,比如 Tampermonkey,才能安裝此腳本

您需要先安裝使用者腳本管理器擴充功能後才能安裝該腳本。

(我已經安裝了使用者腳本管理器,讓我安裝!)

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

(我已經安裝了使用者樣式管理器,讓我安裝!)

/* ==UserStyle==
@name            Proton Mail Carbon Editor Theme
@description     Carbon theme in Proton Mail is beautiful but not complete, so i fix this.
@version         1.3.1
@author          BreatFR
@namespace       https://gitlab.com/breatfr
@homepageURL     https://gitlab.com/breatfr/proton-mail-carbon-editor-theme
@supportURL      https://discord.gg/Q8KSHzdBxs
@license      GPL-3.0-or-later; http://www.gnu.org/licenses/gpl-3.0.txt
==/UserStyle== */

/* === Credits ===
Website         https://breat.fr
facebook        https://www.facebook.com/breatfroff
mastodon        https://mastodon.social/@breat_fr
telegram        https://t.me/breatfr
vk              https://vk.com/breatfroff
X (twitter)     https://x.com/breatfroff
=== Credits === */
@-moz-document domain("account.proton.me"), domain("mail.proton.me") {
    /* Carbon mode editor */
    #proton-editor-container,
    #proton-editor-toggle-container,
    #proton-root,
    #proton-root *,
    #rooster-editor,
    #rooster-editor div,
    #rooster-editor p,
    .composer-content--rich-edition,
    .message-content,
    .message-iframe *,
    .protonmail_quote,
    blockquote div,
    blockquote * {
        background-color: var(--email-message-view-background-color) !important;
        color: var(--text-norm) !important;
    }
    
    blockquote,
    blockquote[style="border-left: 3px solid rgb(200, 200, 200); border-top-color: rgb(200, 200, 200); border-right-color: rgb(200, 200, 200); border-bottom-color: rgb(200, 200, 200);"] {
        border-left: #444444 !important;
    }
    
    #ellipsis > svg {
        stroke: var(--text-norm) !important;
    }
    
    /* Signature color */
    .protonmail_signature_block-user,
    .protonmail_signature_block-user table div,
    .protonmail_signature_block-proton {
        color: var(--text-norm) !important;
    }

    /* Link color */
    #rooster-editor a,
    .protonmail_signature_block-user a,
    .protonmail_signature_block-proton a {
        color: #657ee4 !important;
    }

    /* Scrollbars */
    ::-webkit-scrollbar {
      width: 5px !important;
    }

    ::-webkit-scrollbar:horizontal {
        height: 5px !important;
    }

    ::-webkit-scrollbar-thumb {
        background: grey !important;
    }

    ::-webkit-scrollbar-thumb:hover {
        background: white !important;
    }
}