MozillaZine

Tb 68.12.1 userChrome.css Tweaks

User Help for Mozilla Thunderbird
CBA
 
Posts: 147
Joined: June 16th, 2008, 2:08 am

Post Posted October 15th, 2020, 10:07 am

Having ported most of my Tb 38.8 UI tweaks (Stylish) to Tb 68.12.1 (userChrome.css) I'm currently trialing the latter. I need help with a few CSS tweaks.

The below worked fine with Tb 38, but not with Tb 68 .. as the message header Subject remains bold black and not blue. Suggestions on how to fix this would be appreciated:

Code: Select all
/* change color of Message Header Subject */
#expandedsubjectBox .headerValue {
  font-weight: bold;
  color: blue !important; }

A 2nd issue concerns the Tb 68 Attachment Pane. When an attachment is deleted, it's marked deleted, a red cross (x) is added, and the deleted file name is overwritten with a strikeout line. How can I eliminate the strikeout line (which makes it difficult to read the deleted file name)?

Thanks!
Last edited by CBA on October 17th, 2020, 2:28 pm, edited 1 time in total.

morat
 
Posts: 4019
Joined: February 3rd, 2009, 6:29 pm

Post Posted October 15th, 2020, 2:26 pm

These entries works here with Thunderbird 78.

Code: Select all
#expandedsubjectBox {
  font-weight: bold !important;
  color: blue !important;
}

Code: Select all
#attachmentName.notfound,
.attachmentItem.notfound {
  text-decoration-line: none !important;
}

CBA
 
Posts: 147
Joined: June 16th, 2008, 2:08 am

Post Posted October 16th, 2020, 12:57 am

morat wrote:These entries works here with Thunderbird 78...

GREAT! You did it again .. both your suggestions work as advertised. Thanks!

As an encore of sorts, is there a way - in the compose/write window - to reduce the "row height" of the From: To: Cc: Bc: and Subject: line entries ?? I did this for the Folder and Thread Trees (much needed) and it would help to do the same for the compose/write window. TIA.

morat
 
Posts: 4019
Joined: February 3rd, 2009, 6:29 pm

Post Posted October 16th, 2020, 6:38 am

Sorry, I don't know how to style the address boxes in Thunderbird 68.

The developers completely redesigned the address boxes in Thunderbird 78.

Reference
http://searchfox.org/comm-esr68/search?q=msgSubject&path=xul
http://searchfox.org/comm-esr68/search?q=msgSubject&path=css

CBA
 
Posts: 147
Joined: June 16th, 2008, 2:08 am

Post Posted October 16th, 2020, 7:14 am

morat wrote:Sorry, I don't know how to style the address boxes in Thunderbird 68...

Thanks. It's not a deal breaker, but it would be (visually) nice to find a way to reduce the address boxes row height. Have to keep on trying.

One more issue, the date box all the way to the right in the message header. Compared to 38, the date box location on 68 is closer to the window edge and too close for my liking. Is there a way to move it left a few pixels?

morat
 
Posts: 4019
Joined: February 3rd, 2009, 6:29 pm

Post Posted October 16th, 2020, 7:44 am

This entry works here with Thunderbird 78.

Code: Select all
.dateLabel {
  padding-inline-end: 1px !important; /* default 6px */
}

P.S.

I figured out the style using the Developer Toolbox.

More info: viewtopic.php?p=14866214#p14866214

CBA
 
Posts: 147
Joined: June 16th, 2008, 2:08 am

Post Posted October 16th, 2020, 8:07 am

morat wrote:This entry works here with Thunderbird 78...

And it works fine with Tb 68.12.1 as well! In my case, I use 60px to move the date box left to a position similar to Tb 38. Thanks, great job! :D

CBA
 
Posts: 147
Joined: June 16th, 2008, 2:08 am

Post Posted October 16th, 2020, 8:11 am

FWIW, below a summary of the CSS code I use with my Tb 68.12.1. Works for me:

Code: Select all
/* set default namespace to XUL */
@namespace url(http://www.w3.org/1999/xhtml);
@namespace url(http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul);


/* adjust (compress) the Folder Tree row height */
#folderTree > treechildren::-moz-tree-row {
   height: 19px !important;
   min-height: 19px !important;
}

/* adjust (compress) the Thread Tree row height */
#threadTree treechildren::-moz-tree-row {
   height: 18px !important;
   min-height: 18px !important;
}

/* change min-max height of Attachment Bar */
#attachmentBar  {
min-height: 23px !important;
max-height: 23px !important;
}

/* remove right side pull-down menu Attachment Bar */
#attachment-view-toolbar {
display: none !important;
}

/* remove deleted strikeout line Attachment Bar */
#attachmentName.notfound,
.attachmentItem.notfound {
  text-decoration-line: none !important;
}

/* Restore the Tree Lines */
#accounttree > treechildren::-moz-tree-line {
  visibility: visible !important;
}

#folderTree > treechildren::-moz-tree-line {
  visibility: visible !important;
}

/* hide address-book stars in Message Header */
.emailStar {
  width: 0em;
  visibility:hidden;
}

/* Message header pane labels */
#msgHeaderView .headerName {
  font-weight: bold;
  color: green !important;
}

/* change color of Message Header Subject */
#expandedsubjectBox {
  font-weight: bold !important;
  color: blue !important;
}

/* change color of Message Header Date-Time */
#dateValueBox {
  font-weight: bold;
  color: blue !important;
}

/* move date Box left (default 6px) */
.dateLabel {
  padding-inline-end: 60px !important;
}

/* remove Buttons and Top Padding in Message Header */
#header-view-toolbox, #otherActionsButton {
  display: none !important;
}

#expandedHeaderRows {
  padding-top: 0px !important;
}

#expandedBoxSpacer {
  height: 0px !important;
}

/* remove vertical padding inside message header pane */
.headerValue {
  line-height: normal !important; margin-bottom: 0.05em !important;
}

/* reduce the space between headers (the default height per row is 1.5em) */
.headerValue {
  line-height: 1.25em !important; padding: 0px !important;
}

Postscript: most of the CSS code I use has come from the mozillaZine forum (a true lifesaver...) and users like Morat, Buzz and many others. Thanks to all!

CBA
 
Posts: 147
Joined: June 16th, 2008, 2:08 am

Post Posted October 17th, 2020, 2:26 pm

morat wrote:Sorry, I don't know how to style the address boxes in Thunderbird 68...

Instead of messing with the style of the address boxes I changed the about:config setting "mail.compose.addresswidget.numRowsShownDefault" to 2 (default 3). The visual and practical impact balances my concern about the row height. For now, this will do!

Return to Thunderbird Support


Who is online

Users browsing this forum: No registered users and 10 guests