Skip to content

Instantly share code, notes, and snippets.

@Modder4869
Created August 2, 2018 18:25
Show Gist options
  • Select an option

  • Save Modder4869/5bc504238befe297de33e8aed6baef6a to your computer and use it in GitHub Desktop.

Select an option

Save Modder4869/5bc504238befe297de33e8aed6baef6a to your computer and use it in GitHub Desktop.
CSS roles counter
body {
counter-reset: roles;
}
[class^="userPopout"] > [class^="body"] > [class*="rolesList"] > [class*="role"]{
counter-increment: roles;
}
[class^="userPopout"] > [class^="body"] >[class^="bodyTitle"]:nth-of-type(2):before{
content: ' roles ['counter(roles)'] , '
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment