Closed benjamincoleman closed 1 year ago
@BenDarby changes:
<code>
block could use some bottom margin<code>
block to wrap? [x] More padding on the ¶ to make it easier to click
[x] Responsive tables do something odd on smaller widths:
<ul>
<li><a href="#">Organisation Identifiers</a></li>
<li>
<span>↓</span>
<a href="#">Activity Standard</a>
<ul>
<li>
<span>→</span>
<a href="#">Elements</a>
<ul>
<li>
<span>→</span>
<a href="#">iati-activities</a>
<ul>
<li>
<span>→</span>
<a href="#">iati-activity</a>
<ul>
<li><a href="#">iati-identifier</a></li>
<li>
<span>→</span>
<a href="#">reporting-org</a>
<ul>
<li><a href="#">narrative</a></li>
</ul>
</li>
<li>
<span>→</span>
<a href="#">title</a>
<ul>
<li><a href="#">narrative</a></li>
</ul>
</li>
<li>
<span>→</span>
<a href="#">description</a>
<ul>
<li><a href="#">narrative</a></li>
</ul>
</li>
<li>
<span>→</span>
<a href="#">participating-org</a>
<ul>
<li><a href="#">narrative</a></li>
</ul>
</li>
<li>
<span>→</span>
<a href="#">other-identifier</a>
<ul>
<li>
<span>→</span>
<a href="#">owner-org</a>
<ul>
<li><a href="#">narrative</a></li>
</ul>
</li>
</ul>
</li>
<li><a href="#">activity-status</a></li>
<li>
<span>→</span>
<a href="#">activity-date</a>
<ul>
<li><a href="#">narrative</a></li>
</ul>
</li>
<li>
<span>→</span>
<a href="#">contact-info</a>
<ul>
<li>
<span>→</span>
<a href="#">organisation</a>
<ul>
<li><a href="#">narrative</a></li>
</ul>
</li>
<li>
<span>→</span>
<a href="#">department</a>
<ul>
<li><a href="#">narrative</a></li>
</ul>
</li>
<li>
<span>→</span>
<a href="#">person-name</a>
<ul>
<li><a href="#">narrative</a></li>
</ul>
</li>
<li>
<span>→</span>
<a href="#">job-title</a>
<ul>
<li><a href="#">narrative</a></li>
</ul>
</li>
<li><a href="#">telephone</a></li>
<li><a href="#">email</a></li>
<li><a href="#">website</a></li>
<li>
<span>→</span>
<a href="#">mailing-address</a>
<ul>
<li><a href="#">narrative</a></li>
</ul>
</li>
</ul>
</li>
<li><a href="#">activity-scope</a></li>
<li>
<span>→</span>
<a href="#">recipient-country</a>
<ul>
<li><a href="#">narrative</a></li>
</ul>
</li>
<li>
<span>→</span>
<a href="#">recipient-region</a>
<ul>
<li><a href="#">narrative</a></li>
</ul>
</li>
<li>
<span>→</span>
<a href="#">location</a>
<ul>
<li><a href="#">location-reach</a></li>
<li><a href="#">location-id</a></li>
<li>
<span>→</span>
<a href="#">name</a>
<ul>
<li><a href="#">narrative</a></li>
</ul>
</li>
<li>
<span>→</span>
<a href="#">description</a>
<ul>
<li><a href="#">narrative</a></li>
</ul>
</li>
<li>
<span>→</span>
<a href="#">activity-description</a>
<ul>
<li><a href="#">narrative</a></li>
</ul>
</li>
<li><a href="#">administrative</a></li>
<li>
<span>→</span>
<a href="#">point</a>
<ul>
<li><a href="#">pos</a></li>
</ul>
</li>
<li><a href="#">exactness</a></li>
<li><a href="#">location-class</a></li>
<li><a href="#">feature-designation</a></li>
</ul>
</li>
<li>
<span>→</span>
<a href="#">sector</a>
<ul>
<li><a href="#">narrative</a></li>
</ul>
</li>
<li>
<span>→</span>
<a href="#">tag</a>
<ul>
<li><a href="#">narrative</a></li>
</ul>
</li>
<li>
<span>→</span>
<a href="#">country-budget-items</a>
<ul>
<li>
<span>→</span>
<a href="#">budget-item</a>
<ul>
<li>
<span>→</span>
<a href="#">description</a>
<ul>
<li><a href="#">narrative</a></li>
</ul>
</li>
</ul>
</li>
</ul>
</li>
<li>
<span>→</span>
<a href="#">humanitarian-scope</a>
<ul>
<li><a href="#">narrative</a></li>
</ul>
</li>
<li>
<span>→</span>
<a href="#">policy-marker</a>
<ul>
<li><a href="#">narrative</a></li>
</ul>
</li>
<li><a href="#">collaboration-type</a></li>
<li><a href="#">default-flow-type</a></li>
<li><a href="#">default-finance-type</a></li>
<li><a href="#">default-aid-type</a></li>
<li><a href="#">default-tied-status</a></li>
<li>
<span>→</span>
<a href="#">budget</a>
<ul>
<li><a href="#">period-start</a></li>
<li><a href="#">period-end</a></li>
<li><a href="#">value</a></li>
</ul>
</li>
<li>
<span>→</span>
<a href="#">planned-disbursement</a>
<ul>
<li><a href="#">period-start</a></li>
<li><a href="#">period-end</a></li>
<li><a href="#">value</a></li>
<li>
<span>→</span>
<a href="#">provider-org</a>
<ul>
<li><a href="#">narrative</a></li>
</ul>
</li>
<li>
<span>→</span>
<a href="#">receiver-org</a>
<ul>
<li><a href="#">narrative</a></li>
</ul>
</li>
</ul>
</li>
<li><a href="#">capital-spend</a></li>
<li>
<span>→</span>
<a href="#">transaction</a>
<ul>
<li><a href="#">transaction-type</a></li>
<li><a href="#">transaction-date</a></li>
<li><a href="#">value</a></li>
<li>
<span>→</span>
<a href="#">description</a>
<ul>
<li><a href="#">narrative</a></li>
</ul>
</li>
<li>
<span>→</span>
<a href="#">provider-org</a>
<ul>
<li><a href="#">narrative</a></li>
</ul>
</li>
<li>
<span>→</span>
<a href="#">receiver-org</a>
<ul>
<li><a href="#">narrative</a></li>
</ul>
</li>
<li><a href="#">disbursement-channel</a></li>
<li>
<span>→</span>
<a href="#">sector</a>
<ul>
<li><a href="#">narrative</a></li>
</ul>
</li>
<li>
<span>→</span>
<a href="#">recipient-country</a>
<ul>
<li><a href="#">narrative</a></li>
</ul>
</li>
<li>
<span>→</span>
<a href="#">recipient-region</a>
<ul>
<li><a href="#">narrative</a></li>
</ul>
</li>
<li><a href="#">flow-type</a></li>
<li><a href="#">finance-type</a></li>
<li><a href="#">aid-type</a></li>
<li><a href="#">tied-status</a></li>
</ul>
</li>
<li>
<span>→</span>
<a href="#">document-link</a>
<ul>
<li>
<span>→</span>
<a href="#">title</a>
<ul>
<li><a href="#">narrative</a></li>
</ul>
</li>
<li>
<span>→</span>
<a href="#">description</a>
<ul>
<li><a href="#">narrative</a></li>
</ul>
</li>
<li><a href="#">category</a></li>
<li><a href="#">language</a></li>
<li><a href="#">document-date</a></li>
</ul>
</li>
<li><a href="#">related-activity</a></li>
<li><a href="#">legacy-data</a></li>
<li>
<span>→</span>
<a href="#">conditions</a>
<ul>
<li>
<span>→</span>
<a href="#">condition</a>
<ul>
<li><a href="#">narrative</a></li>
</ul>
</li>
</ul>
</li>
<li>
<span>→</span>
<a href="#">result</a>
<ul>
<li>
<span>→</span>
<a href="#">title</a>
<ul>
<li><a href="#">narrative</a></li>
</ul>
</li>
<li>
<span>→</span>
<a href="#">description</a>
<ul>
<li><a href="#">narrative</a></li>
</ul>
</li>
<li>
<span>→</span>
<a href="#">document-link</a>
<ul>
<li>
<span>→</span>
<a href="#">title</a>
<ul>
<li><a href="#">narrative</a></li>
</ul>
</li>
<li>
<span>→</span>
<a href="#">description</a>
<ul>
<li><a href="#">narrative</a></li>
</ul>
</li>
<li><a href="#">category</a></li>
<li><a href="#">language</a></li>
<li><a href="#">document-date</a></li>
</ul>
</li>
<li><a href="#">reference</a></li>
<li>
<span>→</span>
<a href="#">indicator</a>
<ul>
<li>
<span>→</span>
<a href="#">title</a>
<ul>
<li><a href="#">narrative</a></li>
</ul>
</li>
<li>
<span>→</span>
<a href="#">description</a>
<ul>
<li><a href="#">narrative</a></li>
</ul>
</li>
<li>
<span>→</span>
<a href="#">document-link</a>
<ul>
<li>
<span>→</span>
<a href="#">title</a>
<ul>
<li><a href="#">narrative</a></li>
</ul>
</li>
<li>
<span>→</span>
<a href="#">description</a>
<ul>
<li><a href="#">narrative</a></li>
</ul>
</li>
<li><a href="#">category</a></li>
<li><a href="#">language</a></li>
<li><a href="#">document-date</a></li>
</ul>
</li>
<li><a href="#">reference</a></li>
<li>
<span>→</span>
<a href="#">baseline</a>
<ul>
<li><a href="#">location</a></li>
<li><a href="#">dimension</a></li>
<li>
<span>→</span>
<a href="#">document-link</a>
<ul>
<li>
<span>→</span>
<a href="#">title</a>
<ul>
<li><a href="#">narrative</a></li>
</ul>
</li>
<li>
<span>→</span>
<a href="#">description</a>
<ul>
<li><a href="#">narrative</a></li>
</ul>
</li>
<li><a href="#">category</a></li>
<li><a href="#">language</a></li>
<li><a href="#">document-date</a></li>
</ul>
</li>
<li>
<span>→</span>
<a href="#">comment</a>
<ul>
<li><a href="#">narrative</a></li>
</ul>
</li>
</ul>
</li>
<li>
<span>→</span>
<a href="#">period</a>
<ul>
<li><a href="#">period-start</a></li>
<li><a href="#">period-end</a></li>
<li>
<span>→</span>
<a href="#">target</a>
<ul>
<li><a href="#">location</a></li>
<li><a href="#">dimension</a></li>
<li>
<span>→</span>
<a href="#">comment</a>
<ul>
<li><a href="#">narrative</a></li>
</ul>
</li>
<li>
<span>→</span>
<a href="#">document-link</a>
<ul>
<li>
<span>→</span>
<a href="#">title</a>
<ul>
<li><a href="#">narrative</a></li>
</ul>
</li>
<li>
<span>→</span>
<a href="#">description</a>
<ul>
<li><a href="#">narrative</a></li>
</ul>
</li>
<li><a href="#">category</a></li>
<li><a href="#">language</a></li>
<li><a href="#">document-date</a></li>
</ul>
</li>
</ul>
</li>
<li>
<span>→</span>
<a href="#">actual</a>
<ul>
<li><a href="#">location</a></li>
<li><a href="#">dimension</a></li>
<li>
<span>→</span>
<a href="#">comment</a>
<ul>
<li><a href="#">narrative</a></li>
</ul>
</li>
<li>
<span>→</span>
<a href="#">document-link</a>
<ul>
<li>
<span>→</span>
<a href="#">title</a>
<ul>
<li><a href="#">narrative</a></li>
</ul>
</li>
<li>
<span>→</span>
<a href="#">description</a>
<ul>
<li><a href="#">narrative</a></li>
</ul>
</li>
<li><a href="#">category</a></li>
<li><a href="#">language</a></li>
<li><a href="#">document-date</a></li>
</ul>
</li>
</ul>
</li>
</ul>
</li>
</ul>
</li>
</ul>
</li>
<li>
<span>→</span>
<a href="#">crs-add</a>
<ul>
<li><a href="#">other-flags</a></li>
<li>
<span>→</span>
<a href="#">loan-terms</a>
<ul>
<li><a href="#">repayment-type</a></li>
<li><a href="#">repayment-plan</a></li>
<li><a href="#">commitment-date</a></li>
<li><a href="#">repayment-first-date</a></li>
<li><a href="#">repayment-final-date</a></li>
</ul>
</li>
<li>
<span>→</span>
<a href="#">loan-status</a>
<ul>
<li><a href="#">interest-received</a></li>
<li><a href="#">principal-outstanding</a></li>
<li><a href="#">principal-arrears</a></li>
<li><a href="#">interest-arrears</a></li>
</ul>
</li>
<li><a href="#">channel-code</a></li>
</ul>
</li>
<li>
<span>→</span>
<a href="#">fss</a>
<ul>
<li><a href="#">forecast</a></li>
</ul>
</li>
</ul>
</li>
</ul>
</li>
</ul>
</li>
</ul>
</li>
<li>
<span>→</span>
<a href="#">Organisation Standard</a>
<ul>
<li>
<span>→</span>
<a href="#">Elements</a>
<ul>
<li>
<span>→</span>
<a href="#">iati-organisations</a>
<ul>
<li>
<span>→</span>
<a href="#">iati-organisation</a>
<ul>
<li><a href="#">organisation-identifier</a></li>
<li>
<span>→</span>
<a href="#">name</a>
<ul>
<li><a href="#">narrative</a></li>
</ul>
</li>
<li>
<span>→</span>
<a href="#">reporting-org</a>
<ul>
<li><a href="#">narrative</a></li>
</ul>
</li>
<li>
<span>→</span>
<a href="#">total-budget</a>
<ul>
<li><a href="#">period-start</a></li>
<li><a href="#">period-end</a></li>
<li><a href="#">value</a></li>
<li>
<span>→</span>
<a href="#">budget-line</a>
<ul>
<li><a href="#">value</a></li>
<li><a href="#">narrative</a></li>
</ul>
</li>
</ul>
</li>
<li>
<span>→</span>
<a href="#">recipient-org-budget</a>
<ul>
<li>
<span>→</span>
<a href="#">recipient-org</a>
<ul>
<li><a href="#">narrative</a></li>
</ul>
</li>
<li><a href="#">period-start</a></li>
<li><a href="#">period-end</a></li>
<li><a href="#">value</a></li>
<li>
<span>→</span>
<a href="#">budget-line</a>
<ul>
<li><a href="#">value</a></li>
<li><a href="#">narrative</a></li>
</ul>
</li>
</ul>
</li>
<li>
<span>→</span>
<a href="#">recipient-region-budget</a>
<ul>
<li>
<span>→</span>
<a href="#">recipient-region</a>
<ul>
<li><a href="#">narrative</a></li>
</ul>
</li>
<li><a href="#">period-start</a></li>
<li><a href="#">period-end</a></li>
<li><a href="#">value</a></li>
<li>
<span>→</span>
<a href="#">budget-line</a>
<ul>
<li><a href="#">value</a></li>
<li><a href="#">narrative</a></li>
</ul>
</li>
</ul>
</li>
<li>
<span>→</span>
<a href="#">recipient-country-budget</a>
<ul>
<li>
<span>→</span>
<a href="#">recipient-country</a>
<ul>
<li><a href="#">narrative</a></li>
</ul>
</li>
<li><a href="#">period-start</a></li>
<li><a href="#">period-end</a></li>
<li><a href="#">value</a></li>
<li>
<span>→</span>
<a href="#">budget-line</a>
<ul>
<li><a href="#">value</a></li>
<li><a href="#">narrative</a></li>
</ul>
</li>
</ul>
</li>
<li>
<span>→</span>
<a href="#">total-expenditure</a>
<ul>
<li><a href="#">period-start</a></li>
<li><a href="#">period-end</a></li>
<li><a href="#">value</a></li>
<li>
<span>→</span>
<a href="#">expense-line</a>
<ul>
<li><a href="#">value</a></li>
<li><a href="#">narrative</a></li>
</ul>
</li>
</ul>
</li>
<li>
<span>→</span>
<a href="#">document-link</a>
<ul>
<li>
<span>→</span>
<a href="#">recipient-country</a>
<ul>
<li><a href="#">narrative</a></li>
</ul>
</li>
<li>
<span>→</span>
<a href="#">title</a>
<ul>
<li><a href="#">narrative</a></li>
</ul>
</li>
<li>
<span>→</span>
<a href="#">description</a>
<ul>
<li><a href="#">narrative</a></li>
</ul>
</li>
<li><a href="#">category</a></li>
<li><a href="#">language</a></li>
<li><a href="#">document-date</a></li>
</ul>
</li>
</ul>
</li>
</ul>
</li>
</ul>
</li>
</ul>
</li>
<li><a href="#">Namespaces & Extensions</a></li>
<li>
<span>→</span>
<a href="#">Codelists</a>
<ul>
<li><a href="#">IATI Codelist Management</a></li>
<li><a href="#">Codelist API</a></li>
<li><a href="#">Activity Date Type</a></li>
<li><a href="#">Activity Scope</a></li>
<li><a href="#">Activity Status</a></li>
<li><a href="#">Aid Type</a></li>
<li><a href="#">Aid Type (category)</a></li>
<li><a href="#">Aid Type Vocabulary</a></li>
<li><a href="#">Budget Identifier</a></li>
<li><a href="#">Budget Identifier Sector</a></li>
<li><a href="#">Budget Identifier Sector (category)</a></li>
<li><a href="#">Budget Identifier Vocabulary</a></li>
<li><a href="#">Budget Not Provided</a></li>
<li><a href="#">Budget Status</a></li>
<li><a href="#">Budget Type</a></li>
<li><a href="#">CRS Additional Other Flags</a></li>
<li><a href="#">CRS Channel Code</a></li>
<li><a href="#">Cash and Voucher Modalities</a></li>
<li><a href="#">Collaboration Type</a></li>
<li><a href="#">Condition Type</a></li>
<li><a href="#">Contact Type</a></li>
<li><a href="#">Country</a></li>
<li><a href="#">Currency</a></li>
<li><a href="#">Description Type</a></li>
<li><a href="#">Disbursement Channel</a></li>
<li><a href="#">Document Category</a></li>
<li><a href="#">Document Category (category)</a></li>
<li><a href="#">EarmarkingCategory</a></li>
<li><a href="#">File Format</a></li>
<li><a href="#">Finance Type</a></li>
<li><a href="#">Finance Type (category)</a></li>
<li><a href="#">Flow Type</a></li>
<li><a href="#">Gazetteer Agency</a></li>
<li><a href="#">Geographic Exactness</a></li>
<li><a href="#">Geographic Location Class</a></li>
<li><a href="#">Geographic Location Reach</a></li>
<li><a href="#">Geographic Vocabulary</a></li>
<li><a href="#">Geographical Precision</a></li>
<li><a href="#">Humanitarian Scope Type</a></li>
<li><a href="#">Humanitarian Scope Vocabulary</a></li>
<li><a href="#">IATI Organisation Identifier</a></li>
<li><a href="#">Indicator Measure</a></li>
<li><a href="#">Indicator Vocabulary</a></li>
<li><a href="#">Language</a></li>
<li><a href="#">Loan Repayment Period</a></li>
<li><a href="#">Loan Repayment Type</a></li>
<li><a href="#">Location Type</a></li>
<li><a href="#">Location Type (category)</a></li>
<li><a href="#">Organisation Identifier</a></li>
<li><a href="#">Organisation Registration Agency</a></li>
<li><a href="#">Organisation Role</a></li>
<li><a href="#">Organisation Type</a></li>
<li><a href="#">Other Identifier Type</a></li>
<li><a href="#">Policy Marker</a></li>
<li><a href="#">Policy Marker Vocabulary</a></li>
<li><a href="#">Policy Significance</a></li>
<li><a href="#">Publisher Type</a></li>
<li><a href="#">Region</a></li>
<li><a href="#">Region Vocabulary</a></li>
<li><a href="#">Related Activity Type</a></li>
<li><a href="#">Result Type</a></li>
<li><a href="#">Result Vocabulary</a></li>
<li><a href="#">DAC 5 Digit Sector</a></li>
<li><a href="#">DAC 3 Digit Sector</a></li>
<li><a href="#">Sector Vocabulary</a></li>
<li><a href="#">Tag Vocabulary</a></li>
<li><a href="#">Tied Status</a></li>
<li><a href="#">Transaction Type</a></li>
<li><a href="#">UN Sustainable Development Goals (SDG)</a></li>
<li><a href="#">UN Sustainable Development Goals (SDG) Targets</a></li>
<li><a href="#">Verification Status</a></li>
<li><a href="#">Version</a></li>
<li><a href="#">Vocabulary</a></li>
</ul>
</li>
<li><a href="#">Schema</a></li>
<li>
<span>→</span>
<a href="#">Rulesets</a>
<ul>
<li><a href="#">Standard Ruleset</a></li>
<li><a href="#">IATI Ruleset Spec</a></li>
<li><a href="#">Ruleset development</a></li>
</ul>
</li>
</ul>
@BenDarby some changes for the reference template:
And on the Codelist variation - http://iati.surge.sh/page-templates/09-1a-codelist
For the codelist can we have for each code list item:
{ code } - { title }
{ content cut at 140 chars }
{ category }
I've added a model and done the reformatting of the codelists, the other tasks are still todo though
@benjamincoleman I've increased the font size of the alert and made it max width to help with impact. Changing it to a error alert doesn't really work as the red makes it too similar to the sidebar.
@BenDarby ok what else can we do to make it stand out more?
@BenDarby think we need something more like this.
Do you think we can get away with using the darker red $iati-sunset
to make this super obvious?
@BenDarby feedback on this design. We should talk our way through this lot as there's a lot there:
Sam: can there be less space between Header and the text below it? Currently Headers and paragraphs are fairly evenly spaced. I think the text should be closer to its header.
I think this is the standard typeset vertical rhythm for the entire site, so if we make a change here, it affects everywhere? I think when you see the content of this page and the paragraphs are very short it does look a little too spaced out and the linkage between heading and para is too vague.
Maybe we look at other pages in the about section to see some real content and whether that too looks like it would benefit from tweaking, or whether we do something just for the reference content.
Sam: I think it should also be “less pink” (errors/warnings like https://isabelcastillo.com/error-info-messages-css)
I've asked Sam to clarify this, as we don't have many options - http://iati.surge.sh/style-guide/colour
Amy: The navigation on the left looks rather clunky. And the many arrows become confusing. Is there a way of reducing the number of arrows we use in the design? Or have ‘minus’ sign, rather than an upwards arrow, for navigation that can be collapsed?
I think the arrows are better than + / -.
Amy: There are also too many colour variations in the navigation. Please can it all be simplified.
Remove the lightest pink in place of white I would say - the indentation is clear for showing what level a menu item is.
For the text that is in xml, please could the xml be in blue. With the elements in bold and the rest plain. Brand colours perhaps? The red is hard to read, for me - it is currently better on the old website. Please can every element start on a new line with the correct indentation (not enough xml for this to be shown).
So this is for all <code>
blocks - make them blue
For the definition lists .is-typeset dl dd
← Lets remove the padding here, so it's not indented.
For the codelist -
Amy: please can we have a table layout for the codelists. So that it is clear what the code, title, description and category are. We are unanimous in thinking here (I know you don’t like tables). The information needs to be super clear.
I've done a couple of alternative here to confirm an approach: https://marvelapp.com/4cfjg52/screen/61439292, and a mobile version here: https://marvelapp.com/4cfjg52/screen/61473174
@BenDarby Close, but:
Mobile - no description, just a "expand" button:
Desktop: missing the same button:
@BenDarby Also the Nav. Because we've not used the code above, we don't have enough levels. It will be up to 5 levels deep:
And we have the wrong content in there - I'm going to update it now with the right content.
Need to set up the JS for this to work
@BenDarby can you add a "get help" CTA on these templates? Would appear under the main content.
Would use this module:
@benjamincoleman I've added this to the pattern library, the module will automatically span the width so it appears wider at the bottom of the main content. Let me know what you think, otherwise it can go under the side navigation?
I think it's good where it is, but could use a max-width on it. Maybe about 1/2 the width you see at desktop.
@benjamincoleman this has been updated and added to all 9-1 templates
@urlsangel on this one, we have a long sidebar menu on the left which should be expandable / collapsable.
I've got the content for it in this message: https://github.com/IATI/IATI-Pattern-Library/issues/119#issuecomment-527449951
We need that menu to be put in place and made to work with JavaScript etc.
@BenDarby
I've started to add the full list of nav items, and all the items and sub-items are visible. It looks like we need a class or modifier to show/hide nested ul
s?
@BenDarby @benjamincoleman
Little visual bug here when label line wraps?
@BenDarby @benjamincoleman
Working implementation of this pushed to the feature/additional_templates
branch.
Couple of things to discuss:
a
state should be an indicator of the page that you're on, rather than changing on every interaction, thoughts?second-child
, third-child
, etc.). Much as it's anti-BEMs, I'd say this would be a good time to style by structure rather than class - we already have an issue that the actual data is one level deeper than the current CSS allows (Activity Standard > Elements > iati-activities > iati-activity > other-identifier > owner-org)@BenDarby @benjamincoleman
Latest pushed: I've abstracted the nested nav CSS to a 20-level-deep loop, and made the template recursive to work with the dataset.
The nav will also work without JS - it will need some work on the backend to detect the toggle button value and display the active child list open or closed, but should be easy to do.
A couple of things to look into:
Sketch - https://marvelapp.com/4cfjg52/screen/59541860
This template is for a page of the reference. It contains:
<code>
,<dl>/<dt>
Want to use this actual content for the... content.
http://reference.iatistandard.org/203/activity-standard/iati-activities/
And then produce variants of this page for the following different types of content:
Design: http://iati.surge.sh/page-templates/09-1-reference