Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CSS Formatting \ Tab close button (FF57-TST2.0.2) #1448

Closed
irvinm opened this issue Oct 7, 2017 · 8 comments
Closed

CSS Formatting \ Tab close button (FF57-TST2.0.2) #1448

irvinm opened this issue Oct 7, 2017 · 8 comments

Comments

@irvinm
Copy link
Contributor

irvinm commented Oct 7, 2017

This might be an out of scope kind of question, but maybe there is a useful question in all of this. (I figured it doesdn't hurt to ask)

I am trying to modify the close button on the tabs to only be displayed "on hoover". I found examples of CSS code but tried it both in userChrome.css and in TSTs "extra style rules" but neither had any effect. (Obviously add-ons like "Tab Utilities" modified this behavior pre-FF57)

Here is the code I tried:

/* Show the close buttons only on hover and not on pinned tabs */
.tabbrowser-tabs[closebuttons="activetab"] .tabbrowser-tab:not([pinned="true"]):hover .tab-close-button:not([selected="true"]) {
display: -moz-box !important;
border: 1px solid #888 !important;
border-radius: 3px !important;
}

@Keith94
Copy link

Keith94 commented Oct 7, 2017

Try the following CSS in TST's style rules:

.tab:not(:hover) .closebox {
  display: none;
}

@irvinm
Copy link
Contributor Author

irvinm commented Oct 7, 2017

Perfect, thanks!

@irvinm irvinm closed this as completed Oct 7, 2017
@Keith94
Copy link

Keith94 commented Oct 7, 2017

@kazerniel
Copy link

kazerniel commented Jun 27, 2021

this doesn't seem to work any more

/* "#tabbar" is required for TST 3.4.0 and later! */
#tabbar tab-item:not(:hover) tab-closebox {
display: none;
}

Edit: ok the issue more seems to be that none of the snippets work for me D:

@piroor
Copy link
Owner

piroor commented Jul 3, 2021

@kazerniel It works for me. Screenshot:
image

@kazerniel
Copy link

@piroor not for me:

image

And none of the other snippets work either, not sure of the cause.

@piroor
Copy link
Owner

piroor commented Jul 5, 2021

userChrome.css is wrong place to put those style rules. Please see: https://github.com/piroor/treestyletab/wiki/Code-snippets-for-custom-style-rules#for-version-20-and-later

@kazerniel
Copy link

Aa thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants