Skip to content

Instantly share code, notes, and snippets.

@tsukkee
Forked from caisui/gist:733339
Created December 8, 2010 18:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tsukkee/733705 to your computer and use it in GitHub Desktop.
Save tsukkee/733705 to your computer and use it in GitHub Desktop.
numbering on each tab for Firefox
@namespace url(http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul);
#TabsToolbar {
counter-reset: tabnumber;
}
#TabsToolbar tab {
counter-increment: tabnumber;
}
#TabsToolbar tab:not([pinned])::before {
display: inline-block;
position: relative;
z-index:65535;
width: 4em;
margin-right: -4em;
padding-top: 10px;
content: counter(tabnumber);
font-family: menlo, monospace;
font-size: 0.8em;
font-weight: bold;
color: #eee;
text-shadow: rgba(0,0,0,.2) 1px 0,
rgba(0,0,0,.2) 0 1px,
rgba(0,0,0,.2) -1px 0,
rgba(0,0,0,.2) 0 -1px,
blue 0 0 0.4em;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment