Reputation: 1428
I am using Bulma.io for some frontend I am building and wanted to go to pixel-detail level.
I was wondering if there is some scss edit for the TABS component I could use for getting the bottom border stretched to text, not to the whole div, like in the following image:
and here is my actual result where you can notice that the blue line is not just covering text, but going all to the next TAB:
Thanks!
Upvotes: 0
Views: 552
Reputation: 16896
You could use:
.tabs li.is-active {
padding-left: 1em;
padding-right: 1em;
}
.tabs li.is-active a {
padding-left: 0;
padding-right: 0;
}
However, due to the way Bulma requires the tabs to be constructed, doing this also makes it so the area to the left and right within the active tab are no longer clickable. This may not be an issue as the tab in question is the selected one so there is little reason to be clicking it.
Upvotes: 1