Proton Mail Carbon Editor Theme

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

当前为 2024-08-09 提交的版本,查看 最新版本

  1. /* ==UserStyle==
  2. @name Proton Mail Carbon Editor Theme
  3. @description Carbon theme in Proton Mail is beautiful but not complete, so i fix this.
  4. @version 1.3.4
  5. @author BreatFR
  6. @namespace https://gitlab.com/breatfr
  7. @homepageURL https://gitlab.com/breatfr/proton-mail
  8. @supportURL https://discord.gg/Q8KSHzdBxs
  9. @license AGPL-3.0-or-later; https://www.gnu.org/licenses/agpl-3.0.txt
  10. @preprocessor stylus
  11.  
  12. @var checkbox hidelabels "Hide Labels" 1
  13. @var checkbox hideless "Hide Less toggle" 1
  14. @var checkbox hidetips "Hide tips" 1
  15. @var checkbox nospace "No space between all messages and folders" 1
  16. ==/UserStyle== */
  17.  
  18. /* === Credits ===
  19. Website https://breat.fr
  20. facebook https://www.facebook.com/breatfroff
  21. mastodon https://mastodon.social/@breat_fr
  22. telegram https://t.me/breatfr
  23. vk https://vk.com/breatfroff
  24. X (twitter) https://x.com/breatfroff
  25. === Credits === */
  26. @-moz-document domain("account.proton.me"), domain("mail.proton.me") {
  27. if hidelabels {
  28. ul.unstyled.navigation-list > li:last-child {
  29. display: none;
  30. }
  31. ul.unstyled.navigation-list:last-child {
  32. padding-bottom: 0;
  33. }
  34. }
  35. if hideless {
  36. ul.unstyled.navigation-list > div:nth-of-type(5) {
  37. display: none;
  38. }
  39. }
  40. if hidetips {
  41. .tip-box {
  42. display: none;
  43. }
  44. }
  45. if nospace {
  46. ul.unstyled.navigation-list > li:nth-of-type(1) {
  47. margin-top: 0;
  48. }
  49. }
  50. /* Carbon mode editor */
  51. #proton-editor-container,
  52. #proton-editor-toggle-container,
  53. #proton-root,
  54. #proton-root *,
  55. #rooster-editor,
  56. #rooster-editor div,
  57. #rooster-editor p,
  58. .composer-content--rich-edition,
  59. .message-content,
  60. .message-iframe *,
  61. .protonmail_quote,
  62. blockquote div,
  63. blockquote * {
  64. background-color: var(--email-message-view-background-color) !important;
  65. color: var(--text-norm) !important;
  66. }
  67. blockquote {
  68. border-bottom-color: #444444 !important;
  69. border-left: 3px solid #444444 !important;
  70. border-right-color: #444444 !important;
  71. border-top-color: #444444 !important;
  72. }
  73. #ellipsis > svg {
  74. stroke: var(--text-norm) !important;
  75. }
  76. /* Signature color */
  77. .protonmail_signature_block-user,
  78. .protonmail_signature_block-user table div,
  79. .protonmail_signature_block-proton {
  80. color: var(--text-norm) !important;
  81. }
  82.  
  83. /* Link color */
  84. #rooster-editor a,
  85. .protonmail_signature_block-user a,
  86. .protonmail_signature_block-proton a {
  87. color: #657ee4 !important;
  88. }
  89.  
  90. /* Scrollbars */
  91. ::-webkit-scrollbar {
  92. width: 5px !important;
  93. }
  94.  
  95. ::-webkit-scrollbar:horizontal {
  96. height: 5px !important;
  97. }
  98.  
  99. ::-webkit-scrollbar-thumb {
  100. background: grey !important;
  101. }
  102.  
  103. ::-webkit-scrollbar-thumb:hover {
  104. background: white !important;
  105. }
  106. }