ค้นหาฝ่ายสนับสนุน

Avoid support scams. We will never ask you to call or text a phone number or share personal information. Please report suspicious activity using the “Report Abuse” option.

เรียนรู้เพิ่มเติม

How to override zebra striping for the current selected message

  • 2 การตอบกลับ
  • 1 คนมีปัญหานี้
  • 26 ครั้งที่ดู
  • ตอบกลับล่าสุดโดย kmcguire2

more options

I am using zebra-striping for my Thunderbird email (78.14.0, 32-bit), alternating between white and light green. This is generated by the following code in my userChrome file. (The forum seems to change my code after it's posted, but the attached screenshot shows the actual code):

/* Light green, high-contrast zebra stripes in message list */

  1. threadTree treechildren::-moz-tree-row(odd) {

-moz-appearance: none !important; background-image: none !important; /* background-color:#99E02E !important;} */ background-color:#EEFFBB !important;}

When the selected message is a white-stripe, the color switches to a light blue to make it stand out, but when the selected message is a green-stripe, it remains green and is only outlined in light blue, which makes the selected message difficult to identify.

How can I override the zebra-striping for *any* selected message (white or green stripe), such that the message is always light blue?

I am using zebra-striping for my Thunderbird email (78.14.0, 32-bit), alternating between white and light green. This is generated by the following code in my userChrome file. (The forum seems to change my code after it's posted, but the attached screenshot shows the actual code): /* Light green, high-contrast zebra stripes in message list */ #threadTree treechildren::-moz-tree-row(odd) { -moz-appearance: none !important; background-image: none !important; /* background-color:#99E02E !important;} */ background-color:#EEFFBB !important;} When the selected message is a white-stripe, the color switches to a light blue to make it stand out, but when the selected message is a green-stripe, it remains green and is only outlined in light blue, which makes the selected message difficult to identify. How can I override the zebra-striping for *any* selected message (white or green stripe), such that the message is always light blue?
ภาพหน้าจอที่แนบมา

เปลี่ยนแปลงโดย kmcguire2 เมื่อ

วิธีแก้ปัญหาที่เลือก

re : 78.14.0 You really are using an outdated version :) - any particular reason for this?

Currently - selected message is a white-stripe, the color switches to a light blue selected message is a green-stripe, it remains green and is only outlined in light blue

That sounds like you have other code working - 'outlined' - do you mean the text itself has an outline like a shadow? An image of your problem would help explain issue.

The code only effects the background for 'odd' rows. Using #99E02E is a strong green background colour. Using #EEFFBB is a weaker pale green background colour.

Maybe you prefer a black or dark strong colour as an easy read which would work for any lighter background and bold blue to help identify new or unread mail.

I'm not sure what code you have for the actual cell text for unread, read, selected But try the following for setting unread and selected. Obviously you will have to adjust colour to suit.


/* for unread emails in either odd or even rows - colour of text in cell is #2492d1 = blue and bold*/
#threadTree treechildren::-moz-tree-cell-text(unread) {
-moz-appearance: none !important;
color: #2492d1 !important;
font-weight: bold !important;
}

/* for 'selected' emails in either odd or even rows - colour of text in cell is #181818 = very dark grey */
#threadTree treechildren::-moz-tree-cell-text(selected) {
-moz-appearance: none !important;
color: #181818 !important;
}


อ่านคำตอบนี้ในบริบท 👍 1

การตอบกลับทั้งหมด (2)

more options

วิธีแก้ปัญหาที่เลือก

re : 78.14.0 You really are using an outdated version :) - any particular reason for this?

Currently - selected message is a white-stripe, the color switches to a light blue selected message is a green-stripe, it remains green and is only outlined in light blue

That sounds like you have other code working - 'outlined' - do you mean the text itself has an outline like a shadow? An image of your problem would help explain issue.

The code only effects the background for 'odd' rows. Using #99E02E is a strong green background colour. Using #EEFFBB is a weaker pale green background colour.

Maybe you prefer a black or dark strong colour as an easy read which would work for any lighter background and bold blue to help identify new or unread mail.

I'm not sure what code you have for the actual cell text for unread, read, selected But try the following for setting unread and selected. Obviously you will have to adjust colour to suit.


/* for unread emails in either odd or even rows - colour of text in cell is #2492d1 = blue and bold*/
#threadTree treechildren::-moz-tree-cell-text(unread) {
-moz-appearance: none !important;
color: #2492d1 !important;
font-weight: bold !important;
}

/* for 'selected' emails in either odd or even rows - colour of text in cell is #181818 = very dark grey */
#threadTree treechildren::-moz-tree-cell-text(selected) {
-moz-appearance: none !important;
color: #181818 !important;
}


เปลี่ยนแปลงโดย Toad-Hall เมื่อ

มีประโยชน์หรือไม่

more options

Many thanks for your assistance!

(Yes, I need to upgrade! FWIW, I run the current version at my office...)

มีประโยชน์หรือไม่

ถามคำถาม

You must log in to your account to reply to posts. Please start a new question, if you do not have an account yet.