Skip to content

Instantly share code, notes, and snippets.

@theVDude
Created September 26, 2020 14:23
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 theVDude/305fb9857b28fa42fa2343295a0ffd4b to your computer and use it in GitHub Desktop.
Save theVDude/305fb9857b28fa42fa2343295a0ffd4b to your computer and use it in GitHub Desktop.
Adds leading 0 to first 9 hall of flamers and sets the numbers to monospace font
.HallOfFlame-Player-Position, .HallOfFlame-Player-Tributes {
font-family: monospace;
}
.HallOfFlame-Player:nth-child(1) .HallOfFlame-Player-Position::before,
.HallOfFlame-Player:nth-child(2) .HallOfFlame-Player-Position::before,
.HallOfFlame-Player:nth-child(3) .HallOfFlame-Player-Position::before,
.HallOfFlame-Player:nth-child(4) .HallOfFlame-Player-Position::before,
.HallOfFlame-Player:nth-child(5) .HallOfFlame-Player-Position::before,
.HallOfFlame-Player:nth-child(6) .HallOfFlame-Player-Position::before,
.HallOfFlame-Player:nth-child(7) .HallOfFlame-Player-Position::before,
.HallOfFlame-Player:nth-child(8) .HallOfFlame-Player-Position::before,
.HallOfFlame-Player:nth-child(9) .HallOfFlame-Player-Position::before {
content: "0";
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment