Multiple Row Tabs
-
@Saved2Serve said in Multiple Row Tabs:
The tabs are rather narrow
These lines are what is responsible for the narrow tabs:
/* Equal width tabs without shrinking */ .tab-strip > span > .tab-position > .tab:not(.pinned) { width: 100px !important; } .tab-strip > span > .tab-position > .tab.pinned { width: 100px !important; }
You can delete them to let Vivaldi handle the widths of the tabs, but you will not have as nice of a grid look to the tabs.
The other option is to increase the
width
values to something you like. Here is an example of setting them to300px
(300 pixels) wide:/* Equal width tabs without shrinking */ .tab-strip > span > .tab-position > .tab:not(.pinned) { width: 300px !important; } .tab-strip > span > .tab-position > .tab.pinned { width: 300px !important; }
Just change the value to a number that looks good to you.
-
@nomadic Hey that is better. I changed it to 200px which is good for now. Besides this can i ask what are the color codes I see like like border-color: lime? I see nothing visible in color no matter what theme is used. I am not using Compact in Tabs.
Thanks and be happy hacking.
-
If you add this code :
#tabs-subcontainer.top.visible {flex-basis: auto !important;}
You can have multiline second level:
-
@Saved2Serve The line with the color lime is commented out, meaning it won't have any effect. You can remove the
/*
and the*/
to uncomment it.There are also a few things that are broken in this mod. The new tab button is misplaced.
I am busy now, but I will take a look at it later. If someone else doesn't help before then.
-
-
@barbudo2005 thank you, this worked!
-
@alexander-gorbovets Vote where again? Can we email it in:)
-
@Saved2Serve Click the thumbs up icon at the beginning of the topic - top of Page 1 of the topic you are posting in right now.
-
@Saved2Serve I made a modified version of this mod .
There were lots of things I removed because I didn't see them having any effect. I am still a CSS novice that doesn't have a full grasp of
flex
and differentdisplay
options. It seems to work in my testing, but I don't know if I overlooked something.@fpdragon, @potmeklecbohdan, @alexander.gorbovets, and @barbudo2005 can look over it to see if there is something I missed.
The mod uses variables at the top under the
:root
selector to allow some easy customization. I tried to make them descriptive, but if you need help changing them, let me know./* Multiline Tabs - Modified by @nomadic. Original work by @fpdragon, @potmeklecbohdan, @alexander.gorbovets, and @barbudo2005 */ /* Configuration */ :root { --tab-width: 200px; --pinned-tab-width: 200px; /* unset (to disable), format: style color thickness (ex.) solid var(--colorFgFadedMost) 1px*/ --tab-border: unset; /* To ENABLE fillets on tab corners, use static. To DISABLE, use relative*/ --fillets: static; /* Other options: "📌", "🔒", "*", and unset (to disable) */ --pinned-indicator: "🔒"; } /* Changes to allow multiline tab bar */ #tabs-tabbar-container { height: auto !important; } .tab-strip > span, .tab-strip > .tab-position { display: inline-block; } .tab-strip > span > .tab-position { --PositionX: 0px !important; height: 30px !important; width: auto !important; } .tab-strip > span > .tab-position, .toolbar-tabbar > .newtab { position: static; } /* Sets styles for all tabs based on configuration */ .tab-strip > span > .tab-position > .tab { width: var(--tab-width) !important; position: var(--fillets); border: var(--tab-border); } /* Allow pinned tabs to have seperate width */ .tab-strip > span > .tab-position > .tab.pinned { width: var(--pinned-tab-width) !important; } /* Indicator for pinned tabs */ .tab-strip > span > .tab-position > .tab.pinned > .tab-header > span.title::before { content: var(--pinned-indicator); color: gray; filter: grayscale(100%); /* make emoji indicators grayscale */ font-size: 12px; width: 23px; } /* Keep title visible on tabs */ #tabs-container .tab.tab-small.tab-mini .tab-header .title, #tabs-container .tab.pinned.tab-mini .tab-header .title { display: flex !important; } /* Fix overflow issue on secondary bar */ #tabs-subcontainer { flex-basis: unset !important; }
-
I currently switched to the latest snapshot builds of Vivaldi.
There is a feature called "Tab-Groups" which does a similar job quite elegant for me. With job, I mean managing a huge number of tabs. I recommend everybody to take a look at this feature.
In basic you will get two tab bar lines.
The upper one can be seen as a tab bar for groups of website tabs.
The lower one will just contain the website tabs of the currently selected tab group on the upper bar.I typically create a tab group for every toppic, I am working on. It's not much work to put tabs in groups and the big benfit is that it is much more tidy and you also can close a whole tab group at once. This makes the multi line tab bar hack obsolete for me.
See: https://vivaldi.com/blog/desktop/snapshots/
Make sure to disable all mods/hacks before activating this feature.BTW: Yes, the Vivaldi icon turns black. That's the way it is, even if you set up your windows in dark mode.
-
@fpdragon Haha…
- the two-bar tabs are in the Stable already
- tab stacks are old, only this way to display them is new
- it’s been discussed in this thread already
-
@nomadic I don’t know how many of the notes go to my code (if I actually wrote anything from it), but anyway
actually, the new tab button is exactly that.tab-strip > .tab-position
never gonna happen- you can as well use
position: static
(& remove the positioning) for.tab-position
, same for.newtab
- ‘Not entirely sure what it does. Left it in because it doesn't do harm’ — I think it makes sure that the title is shown even with a great lot of tabs (when it’d be hidden w/o the mod due to the tab size)
- tabs in the secondary bar will overflow — either exclude them from the mod or make sure that the bar extends with them (
#tabs-tabbar-container
’sdisplay: block
or#tabs-subcontainer
’sflex-basis: unset
)
-
@potmeklecbohdan said in Multiple Row Tabs:
@fpdragon Haha…
- the two-bar tabs are in the Stable already
- tab stacks are old, only this way to display them is new
- it’s been discussed in this thread already
Then sorry for that
But especially the new display in these two bars is what I like.
I haven't followed the whole history of this thread and for me it's also a better alternative than the classic multiline tab bar and this is why I am not continue to follow the multiline approach. The Vivaldi team convinced me about tab groups beeing a better solution. Maybe also others find this helpful and give it a try.
But everyone as she/he likes. -
@potmeklecbohdan Thanks for looking over it.
- .tab-strip > .tab-position never gonna happen
I added this to fix the new tab button position.At least in my HTML structure, there is a single div under.tab-strip
that houses the new tab button. It looks the same in my main install and on my VM install.Is it different on yours?Edit: Missed your edit...
- you can as well use position: static (& remove the positioning) for .tab-position, same for .newtab
- tabs in the secondary bar will overflow — either exclude them from the mod or make sure that the bar extends with them (#tabs-tabbar-container’s display: block or #tabs-subcontainer’s flex-basis: unset)
Thanks, added.
Put the updates in the other post. Does it look good?
-
@nomadic said in Multiple Row Tabs:
Thanks for looking over it.
For overlooking it?
Edit: Missed your edit...
(Would continue as:
I already told you that it’s the NTBmissed your edit that you missed my edit)Put the updates in the other post. Does it look good?
Seems to. (Don’t look at me asking what’s the next issue to arise, I don’t know.)
I must have an O
nTopicday today… hopefully it isn’t inviting for a reply. -
@Ayespy Got it. Thanks.
-
@nomadic Well, if you think that you are a novice then I am in kindergarten. About the most coding I have done is some scripts for AutoHotKey like as in remapping the CapsLock key two ctrl+c (and Esc to ctrl+v and NumLock to Esc) etc. which helps much with my still arthritic fingers which often do not land on the right key (thank God for spell checking as-you-type!) . I do a lot of copy and pasting.
-
OK, I would like some assistance if someone would be so kind. I am trying to set up the multi-row AND 2 level tabs. I know little of CSS.
- I went into vivaldi://experiments/ and enabled "Allow for using CSS modifications"
- I went into Vivaldi settings and made the alternative custom folder.
- In that custom folder (in Windows Explorer) I made a text file and renamed it "vivaldi custom settings.css".
- In the new .css file I copied and pasted all the info from nomadic's Vivaldi forum post here on page 6.
- I saved (as unicode in Notepad++, it said I would lose info if I didn't use unicode), and restarted Vivaldi.
I don't have multi-row tabs. I know I did something wrong. Can anyone help?
Thanks!
-
Try renaming it to custom.css (no spaces).
-
@JumpingLawnChair Yeah, @Pesala is correct. The file name can not contain spaces.