Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Revising TOC Counter #92

Open
grayghostvisuals opened this issue Mar 20, 2013 · 1 comment
Open

Revising TOC Counter #92

grayghostvisuals opened this issue Mar 20, 2013 · 1 comment

Comments

@grayghostvisuals
Copy link
Contributor

So it seems we can revive this Table of Contents to operate with a counter using regular ol' CSS, but we need heading names for each grouping on the TOC.

Current TOC
1.1 Base Type
1.2 Typographic Scale
1.3 Color
1.4 Word-wrap
2.1 Indenting
2.1 Hyphenation
3.1 Small Capitals
3.2 Drop Capitals
3.3 Unicode Ampersands
3.4 Small Print
4.1 Code Blocks
4.2 Figures
4.3 Block Quotes
4.4 Pull Quotes
4.5 Stats Tabs
4.6 Footnotes
4.7 Definition Lists

Proposed New Way

  1. Group Name One
    1.1 item
    1.2 item
    1.3 item
    1.4 item
    2 Group Name Two
    2.1 item
    2.2 item

Demo
http://codepen.io/grayghostvisuals/pen/GFcuH

reference
https://developer.mozilla.org/en-US/docs/CSS/Counters

@grayghostvisuals
Copy link
Contributor Author

Here is sweet a demo from @hugogiraudel showing how it can also be used for headings.
http://codepen.io/HugoGiraudel/pen/mnavc

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant