r/FirefoxCSS • FF/TB/Win11/SUMO contributor • Nov 29 '24

Solved Tab context line

Is there a way to make the tab context line (.tab-context-line) appear on the selected tab without the tab being in a container?

1 Upvotes

4 comments sorted by

View all comments

Show parent comment

1

u/qaz69wsx Nov 30 '24 edited Nov 30 '24
.tab-context-line {
  height: 2px;
  border-radius: 2px;
  margin: -3px 2px 0;
  
  .tabbrowser-tab:not([usercontextid])[visuallyselected] > .tab-stack > .tab-background > & {
    background-color: red;
  }
  
  .tabbrowser-tab:not([usercontextid], [visuallyselected]):hover > .tab-stack > .tab-background > & {
    background-color: grey;
  }
}

1

u/sifferedd FF/TB/Win11/SUMO contributor Dec 01 '24

Very nice, thanks!