Trang web này sẽ có chức năng hạn chế trong khi chúng tôi trải qua bảo trì để cải thiện trải nghiệm của bạn. Nếu một bài viết không giải quyết được vấn đề của bạn và bạn muốn đặt câu hỏi, chúng tôi có cộng đồng hỗ trợ của chúng tôi đang chờ để giúp bạn tại @FirefoxSupport trên Twitter và /r/firefox trên Reddit.

Tìm kiếm hỗ trợ

Tránh các lừa đảo về hỗ trợ. Chúng tôi sẽ không bao giờ yêu cầu bạn gọi hoặc nhắn tin đến số điện thoại hoặc chia sẻ thông tin cá nhân. Vui lòng báo cáo hoạt động đáng ngờ bằng cách sử dụng tùy chọn "Báo cáo lạm dụng".

Tìm hiểu thêm

Zebra stripes (Thunderbird 128, userChrome.css)

  • 5 trả lời
  • 0 gặp vấn đề này
  • Trả lời mới nhất được viết bởi strnad3

more options

I am using following userChrome.css modification for zebra stripes:

/* Message List colors */ /* Odd rows color */

  1. threadTree tr .card-container {
 background-color: #27272a !important;

} /* Even rows color */

  1. threadTree tr:nth-child(2n) .card-container {
 background-color: #2d3237 !important;

}

It partly works, but I miss default system color in background, there is only border line. Please see attached images.

Many thanks in advance!

I am using following userChrome.css modification for zebra stripes: /* Message List colors */ /* Odd rows color */ #threadTree tr .card-container { background-color: #27272a !important; } /* Even rows color */ #threadTree tr:nth-child(2n) .card-container { background-color: #2d3237 !important; } It partly works, but I miss default system color in background, there is only border line. Please see attached images. Many thanks in advance!
Đính kèm ảnh chụp màn hình

Giải pháp được chọn

To set the background colour for selected cards, you can try this:

/* card bg colour for selected messages */
tr[is="thread-card"].selected .card-container {
     background-color: lightgreen !important; 
     outline: 1px solid red !important;
}


Replace lightgreen with transparent if desired.

Đọc câu trả lời này trong ngữ cảnh 👍 0

Tất cả các câu trả lời (5)

more options

See https://support.mozilla.org/en-US/questions/1464739#answer-1675906

If you want a solid colour, replace the background-image part with something like:

background-color: lightgrey !important;

Hữu ích?

more options

I already use "background-color" (please see my first post).

I tried to use "background-image" instead "background-color", but that does not work at all (maybe because I use the KDE Plasma desktop environment?).

Using:

/* Odd rows color */

  1. threadTree tr .card-container {
 background-color: #27272a !important;

} /* Even rows color */

  1. threadTree tr:nth-child(2n) .card-container {
 background-color: #2d3237 !important;

}

works fine, just missing the "top" transparent marking with system color for selected item (there is only border color). Please see attached screens in my first post.

With v115, the "card-container" parameter was not used and everything worked fine (stripes with transparent markings in system color for the selected item).

Hữu ích?

more options

I am sorry, posting replaces "#" for "1. "

Hữu ích?

more options

Giải pháp được chọn

To set the background colour for selected cards, you can try this:

/* card bg colour for selected messages */
tr[is="thread-card"].selected .card-container {
     background-color: lightgreen !important; 
     outline: 1px solid red !important;
}


Replace lightgreen with transparent if desired.

Hữu ích?

more options

Thank you, that solved my problem.

For completeness I attache my settings.

Hữu ích?

Đặt một câu hỏi

Bạn phải đăng nhập vào tài khoản của bạn để trả lời bài viết. Vui lòng bắt đầu một câu hỏi mới, nếu bạn chưa có tài khoản.