본 사이트는 여러분의 사용자 경험을 개선하기 위해 유지 보수를 진행하는 동안 기능이 제한됩니다. 도움말로 문제가 해결되지 않고 질문을 하고 싶다면 Twitter의 @FirefoxSupport 및 Reddit의 /r/firefox 채널을 활용하세요.

Mozilla 도움말 검색

고객 지원 사기를 피하세요. 저희는 여러분께 절대로 전화를 걸거나 문자를 보내거나 개인 정보를 공유하도록 요청하지 않습니다. "악용 사례 신고"옵션을 사용하여 의심스러운 활동을 신고해 주세요.

자세히 살펴보기

Highlight Color for "today" and "selected" in Lightning

  • 3 답장
  • 1 이 문제를 만남
  • 15 보기
  • 최종 답변자: Swiss_bRedd

more options

This question is a followup to Thunderbird 78.2.2 Calendar "TODAY" highlight

That question provides details on how to edit userChrome.css to (differently) highlight "today" and/or the selected day.

Unfortunately, while it works in the month and multiweek Lightning views, it does not work in the week view.

Does someone know which selector must be used to target that view to similarly change the highlight color?

I have tried things like:

    .calendar-week-day-box-current-week[selected="true"] {
       background-color: Gold !important;
    }

But this (and other similar selectors) does not work.

For some reason I can not get the developer tools (inspector) to show me the selector name, so I am flying blind!

Thanks in advance to anyone who can shed light on this!

This question is a followup to [https://support.mozilla.org/en-US/questions/1304213 Thunderbird 78.2.2 Calendar "TODAY" highlight] That question provides details on how to edit userChrome.css to (differently) highlight "today" and/or the selected day. '''Unfortunately, while it works in the month and multiweek Lightning views, it does ''not'' work in the week view.''' Does someone know which selector must be used to target that view to similarly change the highlight color? I have tried things like: .calendar-week-day-box-current-week[selected="true"] { background-color: Gold !important; } But this (and other similar selectors) does not work. For some reason I can not get the developer tools (inspector) to show me the selector name, so I am flying blind! Thanks in advance to anyone who can shed light on this!

글쓴이 Swiss_bRedd 수정일시

모든 댓글 (3)

more options

After a brief search on 'thunderbird userchrome calendar current day background color', I arrived at some code that changes the color of the header in Week view to make it more distinctive. It doesn't affect the code for month or multiweek. Further refinements are probably possible.

calendar-event-column[selected="true"],
calendar-header-container[selected="true"] { 
  background: yellow!important;
}

calendar-event-column[relation="today"],
calendar-header-container[relation="today"] { 
  background: green!important;
}
more options

.....

글쓴이 sfhowes 수정일시

more options

Hi @sfhowes

Thanks for your input.

sfhowes said

Further refinements are probably possible.

It works exactly as shown in your screenshot. Unfortunately, an "all day" event makes this solution less than ideal as an all-day event can itself occlude the color in that cell almost entirely.

I've got the developer tools (inspector) showing me (maybe not all?) selector names again, but any attempt to target the whole column seems to not work.

So . . . rather than targeting "calendar-header-container" (which seems to affect the "all day event" cell

I have tried targeting "multiday-column-bg-box" and "multiday-column-box-stack"

Unfortunately, neither have worked.

Clearly it should be possible as the default setup of Lightning is able to color the entire selected and/or current day column differently from others . . .

Any further insights would be appreciated!