-
Notifications
You must be signed in to change notification settings - Fork 17
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
Render nested contents for specialist documents #328
Conversation
em dashes make each content item clearer in the list * Replace media query hack with `@supports` - IE9-11 will get disc bullets * Move list-style-type declaration next to @supports so it’s clear that it gets overridden * Add 5px to the margins to give extra space around the em dash
* Include a two level contents list (based on h2s and h3s) * Style the h2s without a list marker and in bold * h3s appear like standard contents lists * h4s and further, although appearing in the `headers` hash are not displayed – at this level the contents list stops being useful * Markup mostly ported from specialist-frontend * Move strip_trailing_colons into shared helper
This gives a better content outline, while the previous heading was valid, the HTML5 outline algorithm is not widely supported.
fb38deb
to
5358e38
Compare
Did you get Mia's eyes on the lack of emdash at the top level? |
@NickColley Yep. |
I seem to remember (might be wrong) that some of our other documents also have nested contents list, does this change only update specialist documents to have nested list behaviour? |
@NickColley No other format in government-frontend has nested contents. The existing contents list is always one level deep and remains the same. Nested contents only applies to specialist documents. |
Looks good to me! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
https://trello.com/c/phs722pV/186-1-add-new-contents-list
headers
hash are not displayed – at this level the contents list stops being usefulOn older browsers that don't support
content:
or@supports
: