Skip to content

Instantly share code, notes, and snippets.

@arch-jslin
Created July 28, 2010 05:47
Show Gist options
  • Save arch-jslin/493510 to your computer and use it in GitHub Desktop.
Save arch-jslin/493510 to your computer and use it in GitHub Desktop.
/* list color 字記得改成 416A7A */
pre { margin: 0; }
ol { list-style-type: decimal; }
ol ol, ol ol ol ol, ol ol ol ol ol ol {
list-style-type: none;
counter-reset: item;
margin: 0 0 0 2em;
}
ol li.level2, ol li.level4, ol li.level6 {
counter-increment: item;
}
ol li.level2:before, ol li.level4:before, ol li.level6:before {
float: left;
margin: 0 0 0 -2em;
}
ol li.level2:before {
content: "(" counter(item, decimal) ")";
}
ol ol ol {
list-style-type: upper-alpha;
}
ol li.level4:before {
content: "(" counter(item, upper-alpha) ")";
}
ol ol ol ol ol {
list-style-type: lower-alpha;
}
ol li.level6:before {
content: "(" counter(item, lower-alpha) ")";
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment