3 ms·
How would you do that latter part? I currently have a userchrome.css for something similar but I wasn't aware that you could have conditionals in css.
by syncbehind 3y ago
How would you do that latter part? I currently have a userchrome.css for something similar but I wasn't aware that you could have conditionals in css.
- jeroenhd 3y agoUsing a different size for elements matching a :hover selector is how a lot of CSS gets this done. The first result on Google (https://gist.github.com/olmstadfm/d6b4d37219e957d9cdcdb3ec88952c15 https://gist.github.com/olmstadfm/d6b4d37219e957d9cdcdb3ec88...) also seems to employ the :hover selector to accomplish hiding the tabs. I don't know how effective this particular script is, but it makes sense to use such a system.
- syncbehind 3y agoHaven't had a chance to implement it, but this sounds rad. I never thought to use hover in userchrome.css! Brilliant! Thank you!
- rmurri 3y agoI don't know about TST, but sidebery can alter your window title when it's active, so you can match css rules against it. #main-window[titlepreface*="Sidebery"] #TabsToolbar { visibility: collapse !important; }
- syncbehind 3y agoOh heck! That's rad. I'll have to play around with that. I use sidebery so this is aces. Thank you!
- botanical 3y agoSee here: https://github.com/piroor/treestyletab/wiki/Code-snippets-for-custom-style-rules#full-auto-showhide-theme https://github.com/piroor/treestyletab/wiki/Code-snippets-fo... Tabs like History and Bookmarks won't hide but TST does.
- cpmsmith 3y agoSidebery's wiki describes[0] a method using a window "title preface" API, then using that preface in CSS selectors. https://github.com/mbnuqw/sidebery/wiki/Firefox-Styles-Snippets-(via-userChrome.css)#dynamic-native-tabs https://github.com/mbnuqw/sidebery/wiki/Firefox-Styles-Snipp...
- syncbehind 3y agoWow, I should have read their wiki. Goldmine!