-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(tabbed-view-documents): tabbed view documentation (#989)
* feat(tabbed-view-documents): Eleventy short codes to create 'tabs' - sub navigation at the moment * Moved to using tab component and updated sub navigation styles to use mixins so that we can use it for our usage of tabs (giving the style of sub nav) in a tabbed documentation page * Styled sub nav for small screens * Hide the tabs title, use tab nav focus styles, set margin bottom to 40px * Moved documentation styles into correct location * scroll margin top - so space above tabbed section * Fix focus box shadow on link * Refactored to remove mixins now that it is in a single file and separated from component styles * removed unused file * Tidied up and commented * Corrected margin * Examples moved to within overview tab * Removed margin bottom from li on mobile screens * Keep mobile background * only remove when not focused * Added roles * Replaced newline to prevent empty <p> tags * Apply non javascript menu * Add hr to bottom so help section is clearly separated from tabs * Removed tabs from date picker
- Loading branch information
1 parent
62be0db
commit 5cc6185
Showing
5 changed files
with
383 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
{% extends "./base.njk" %} | ||
|
||
{% block content %} | ||
<div class="app-layout__content"> | ||
<h1 class="govuk-heading-xl"> | ||
{% if not isIndex %}<span class="govuk-caption-xl">Components</span>{% endif %} | ||
{{ title }} | ||
</h1> | ||
|
||
{{ content | safe }} | ||
|
||
{% include "./partials/get-help-and-contribute.njk" %} | ||
</div> | ||
{% endblock %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.