MozillaZine

Pin Tab

Discussion of general topics about Seamonkey
davidb_sk

User avatar
 
Posts: 17
Joined: July 16th, 2020, 4:25 pm
Location: Saskatchewan, Canada

Post Posted July 16th, 2020, 8:47 pm

Thanks for posting these code snippets, Frank! I'm finding them very helpful.

Frank Lion

User avatar
 
Posts: 20854
Joined: April 23rd, 2004, 6:59 pm
Location: ... The Exorcist....United Kingdom

Post Posted July 17th, 2020, 9:45 am

davidb_sk wrote:Thanks for posting these code snippets, Frank!

No problem. Glad they are useful to you.

I suppose I should be used to it by now, but it'll still surprises me just how much a few lines of .css can do. :)
Metal Lion latest SeaMonkey & Thunderbird Themes - Sea Monkey and Silver Sea Monkey
"The only thing necessary for the triumph of evil, is for good men to do nothing." - Edmund Burke (attrib.)

ndebord

User avatar
 
Posts: 899
Joined: December 7th, 2002, 9:53 am

Post Posted July 18th, 2020, 8:34 am

Frank Lion wrote:
davidb_sk wrote:Thanks for posting these code snippets, Frank!

No problem. Glad they are useful to you.

I suppose I should be used to it by now, but it'll still surprises me just how much a few lines of .css can do. :)


Frank,

I concur... the pinned tab snippet is essential now in my setup.

Nick
-N- Quis custodiet ipsos custodes
SeaMonkey(32bit), Acer Spin, Windows 10 Pro (X64 v1909), WinPatrol, MalwarebytesPremium & Avira

Frank Lion

User avatar
 
Posts: 20854
Joined: April 23rd, 2004, 6:59 pm
Location: ... The Exorcist....United Kingdom

Post Posted July 18th, 2020, 8:57 am

ndebord wrote:I concur... the pinned tab snippet is essential now in my setup.

Good. :)

Ages back, I did a snippet for more than one 'pinned' tab. There's no such thing as 'second tab', so I did it like this -

Code: Select all
/*Franks About Profiles pinned tab....*/
tab[label="About Profiles"] .tab-close-button, tab[first-tab="true"] .tab-text{
   display:none !important;
}
tab[label="About Profiles"]{
   min-width: 0px !important;
   max-width: 10px !important;}


You just pick your desired tab, hover over the tab and copy the exact label and use that instead of mine above.

Btw if the label includes a 'pipe' (many do) then UK keyboards do that as 2 vertical lines, not 1. So, you just search for keyboard pipe, find a single vert. line, copy that and use that instead.

In theory, you could have 100's of pseudo pinned tabs by using the method above.
Metal Lion latest SeaMonkey & Thunderbird Themes - Sea Monkey and Silver Sea Monkey
"The only thing necessary for the triumph of evil, is for good men to do nothing." - Edmund Burke (attrib.)

davidb_sk

User avatar
 
Posts: 17
Joined: July 16th, 2020, 4:25 pm
Location: Saskatchewan, Canada

Post Posted July 18th, 2020, 10:14 am

Frank Lion wrote:
Code: Select all
/* Franks Zebra trees....*/
treechildren::-moz-tree-row(odd) {
   background: linear-gradient(to bottom, rgba(0,0,0,0.15) 0%,rgba(0,0,0,0.1) 100%)!important;
}



Frank, would you mind explaining a bit more about this snipet and note which settings influence what SeaMonkey displays? I tried using it as is, but for some reason it isn't having any affect on my instance of SeaMonkey (2.53.3). I'm using the Modern theme, so I'm assuming that it's just a combination of color selections that isn't providing enough contrast to get the zebra effect.
My current rig: Lenovo T61, Q4OS Linux (Orion 32-Bit), Trinity Desktop Environment (14.0.4), SeaMonkey (2.53.3)
My Blog: https://dbouley.vivaldi.net

Frank Lion

User avatar
 
Posts: 20854
Joined: April 23rd, 2004, 6:59 pm
Location: ... The Exorcist....United Kingdom

Post Posted July 18th, 2020, 12:06 pm

davidb_sk wrote:Frank, would you mind explaining a bit more about this snipet and note which settings influence what SeaMonkey displays?


Sure, a tree is a special type of list. You see them in the Thread Pane and Message Pane of the SM Email client, (Email is where the use of zebra striping first came from) the sidebar and search suggestion list and the Library of the browser. treechildren are just the individual entries on a tree.

What a tree is not is stuff like menu dropdowns, etc.

So, above, I'm saying give each odd (as in, odd/even) individual entry a very slight dark gradient background. Here, I'm using rgba for this - red, green, blue and alpha (transparency). 0,0,0, is black and you can see that 0.1 alpha is very close to 0, which is totally transparent.

Let's see the same code using red (or 255,0,0 in rgb and #FF0000 in hex) for the stripes -

Code: Select all
/*Zebra trees....*/
treechildren::-moz-tree-row(odd) {
   background: red /*linear-gradient(to bottom, rgba(0,0,0,0.15) 0%,rgba(0,0,0,0.1) 100%)*/!important;


...easier to see and it's how we often code up stuff initially to make sure the code is hitting the exact required internal id's or class, etc AND no others...without peering at faint colours.

Same idea goes for margins and paddings, where initially I code in a good ol' 20px margin, until I'm sure I'm hitting the right spot and then it gets refined down to the final 1 or 2px required.

Hope that helps.

Frank
Metal Lion latest SeaMonkey & Thunderbird Themes - Sea Monkey and Silver Sea Monkey
"The only thing necessary for the triumph of evil, is for good men to do nothing." - Edmund Burke (attrib.)

davidb_sk

User avatar
 
Posts: 17
Joined: July 16th, 2020, 4:25 pm
Location: Saskatchewan, Canada

Post Posted July 18th, 2020, 1:25 pm

Thanks, Frank! That all makes sense.

The strange part is, I just couldn't get the striping to show up, no matter what I tried in the colour values. But then, for some reason, I thought of putting the zebra snipet ahead of the pinned tab snipet and then it worked. Strange that SeaMonkey would not display the striping with the snipets the other way around.
My current rig: Lenovo T61, Q4OS Linux (Orion 32-Bit), Trinity Desktop Environment (14.0.4), SeaMonkey (2.53.3)
My Blog: https://dbouley.vivaldi.net

Frank Lion

User avatar
 
Posts: 20854
Joined: April 23rd, 2004, 6:59 pm
Location: ... The Exorcist....United Kingdom

Post Posted July 18th, 2020, 2:19 pm

davidb_sk wrote:The strange part is...

Check your pinned tab snippet has its trailing brace } at the end of the code. Without it, the pinned tab coding will work OK, but any subsequent coding is wrecked.

Syntax is extremely important with .css.
Metal Lion latest SeaMonkey & Thunderbird Themes - Sea Monkey and Silver Sea Monkey
"The only thing necessary for the triumph of evil, is for good men to do nothing." - Edmund Burke (attrib.)

davidb_sk

User avatar
 
Posts: 17
Joined: July 16th, 2020, 4:25 pm
Location: Saskatchewan, Canada

Post Posted July 18th, 2020, 2:30 pm

That must have been it. The trailing brace was there, just not on the line below, all by itself, which it is now.
My current rig: Lenovo T61, Q4OS Linux (Orion 32-Bit), Trinity Desktop Environment (14.0.4), SeaMonkey (2.53.3)
My Blog: https://dbouley.vivaldi.net

Frank Lion

User avatar
 
Posts: 20854
Joined: April 23rd, 2004, 6:59 pm
Location: ... The Exorcist....United Kingdom

Post Posted July 31st, 2020, 12:21 am

User accidentally blocking images comes up from time to time - viewtopic.php?p=14869135#p14869135

If you ever need to block images (relic of slow internet days) then I suggest Tools > Image Manager (I use a bookmarklet for this that only last for that visit)

As for that right click context menu entry? userChrome.css, below the namespace line and....

Code: Select all
/*Franks Hide Block Images in Context Menu...*/
#context-blockimage {
   display: none !important;
   visibility: collapse !important;}


...and you'll never accidentally hit it ever again, mainly because it has gone.
Metal Lion latest SeaMonkey & Thunderbird Themes - Sea Monkey and Silver Sea Monkey
"The only thing necessary for the triumph of evil, is for good men to do nothing." - Edmund Burke (attrib.)

Frank Lion

User avatar
 
Posts: 20854
Joined: April 23rd, 2004, 6:59 pm
Location: ... The Exorcist....United Kingdom

Post Posted September 13th, 2020, 12:43 pm

The userContent.css 'theme' I use for the YouTube site is mainly black with gold text. That's fine until I log in and I get a very, very white page gleaming out at me. This corrects that -

Code: Select all
/*Franks Darken YT Acct login Page....code goes in userContent.css....*/

@-moz-document domain("accounts.google.com") {
body {
   background-color: #71968E !important;
}}   


Points to note - notice how I'm singling out just one page to style - not every site on the Net. You can do the same for other single sites, if you want.

The colour can be anything you want and do NOTE how I'm doing those final trailing braces here, i.e. }} ...world of pain if you miss out one. Quick rule - number of forward braces must match number of trailing braces.
Metal Lion latest SeaMonkey & Thunderbird Themes - Sea Monkey and Silver Sea Monkey
"The only thing necessary for the triumph of evil, is for good men to do nothing." - Edmund Burke (attrib.)

Frank Lion

User avatar
 
Posts: 20854
Joined: April 23rd, 2004, 6:59 pm
Location: ... The Exorcist....United Kingdom

Post Posted September 26th, 2020, 9:25 am

* TOP TIP *

Here's a top of the tree top tip that'll save you a lot of time.

Every so often, you will come across a website where you log in and SeaMonkey doesn't offer to remember/save the username and password. Don't assume it's a SM problem and spend ages trying to diagnose this. The website is preventing SM remembering these details by design.

Solution
: Turn off JavaScript (either with a JS Toggle button extension, uBlock Origin or even via Edit> Preferences) and then log in and you will then be offered the 'Remember Password' option by SM. Click 'Save' on that option and you're, almost, done.

The 'almost' bit is that you'll very often need to re-enable JS to regain functionality on that website...but, your username/password will have already been saved and you'll never have to do this again.

Good, eh?
Metal Lion latest SeaMonkey & Thunderbird Themes - Sea Monkey and Silver Sea Monkey
"The only thing necessary for the triumph of evil, is for good men to do nothing." - Edmund Burke (attrib.)

davidb_sk

User avatar
 
Posts: 17
Joined: July 16th, 2020, 4:25 pm
Location: Saskatchewan, Canada

Post Posted November 17th, 2020, 8:40 pm

Frank Lion wrote:* TOP TIP *

Here's a top of the tree top tip that'll save you a lot of time.

Every so often, you will come across a website where you log in and SeaMonkey doesn't offer to remember/save the username and password. Don't assume it's a SM problem and spend ages trying to diagnose this. The website is preventing SM remembering these details by design.

Solution
: Turn off JavaScript (either with a JS Toggle button extension, uBlock Origin or even via Edit> Preferences) and then log in and you will then be offered the 'Remember Password' option by SM. Click 'Save' on that option and you're, almost, done.

The 'almost' bit is that you'll very often need to re-enable JS to regain functionality on that website...but, your username/password will have already been saved and you'll never have to do this again.

Good, eh?


I have come across this a few times. Thanks for the tip!
My current rig: Lenovo T61, Q4OS Linux (Orion 32-Bit), Trinity Desktop Environment (14.0.4), SeaMonkey (2.53.3)
My Blog: https://dbouley.vivaldi.net

Return to SeaMonkey General


Who is online

Users browsing this forum: No registered users and 1 guest