Skip to content

Instantly share code, notes, and snippets.

@linusyu
Created April 12, 2017 07:35
Show Gist options
  • Save linusyu/ad5f0e222850d617f9583397193bd5f5 to your computer and use it in GitHub Desktop.
Save linusyu/ad5f0e222850d617f9583397193bd5f5 to your computer and use it in GitHub Desktop.
让 Firefox 的 tab 显示序号
@namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul");
.tabbrowser-tab:not([pinned]){
min-width: 50px;
}
window {
counter-reset:section;
}
.tab-stack{
padding-left: 3px;
}
.tab-stack::before{
counter-increment:section;
content:counter(section);
color: #000;
line-height: 31px;
display: block;
}
.tab-content{
padding-left: 18px;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment