This repository has been archived by the owner on Jan 31, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #19 from hmcts/release-0.0.6-alpha
Release v0.0.6-alpha
- Loading branch information
Showing
6 changed files
with
97 additions
and
2 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 |
---|---|---|
@@ -1,3 +1,4 @@ | ||
@import "secondary-button/secondary-button"; | ||
@import "timeline/timeline"; | ||
@import "add-another/add-another"; | ||
@import "add-another/add-another"; | ||
@import "sub-navigation/sub-navigation"; |
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,3 @@ | ||
{% macro hmctsSubNavigation(params) %} | ||
{%- include "./template.njk" -%} | ||
{% endmacro %} |
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,76 @@ | ||
/* ========================================================================== | ||
#SECONDARY NAV | ||
========================================================================== */ | ||
|
||
.hmcts-sub-navigation { | ||
margin-bottom: govuk-spacing(7); | ||
|
||
@include mq($from: tablet) { | ||
box-shadow: inset 0 -1px 0 $govuk-border-colour; | ||
width: 100%; | ||
} | ||
|
||
} | ||
|
||
|
||
.hmcts-sub-navigation__list { | ||
list-style: none; | ||
margin: 0; | ||
padding: 0; | ||
} | ||
|
||
|
||
.hmcts-sub-navigation__item { | ||
@include govuk-font(16); | ||
box-shadow: inset 0 -1px 0 $govuk-border-colour; | ||
display: block; | ||
margin-top: -1px; | ||
|
||
&:last-child { | ||
box-shadow: none; | ||
} | ||
|
||
@include mq($from: tablet) { | ||
display: inline-block; | ||
margin-right: govuk-spacing(4); | ||
margin-top: 0; | ||
box-shadow: none; | ||
} | ||
|
||
} | ||
|
||
|
||
.hmcts-sub-navigation__link { | ||
display: block; | ||
padding-top: 12px; | ||
padding-bottom: 12px; | ||
padding-left: govuk-spacing(3); | ||
text-decoration: none; | ||
|
||
@include mq($from: tablet) { | ||
padding-left: 0; | ||
} | ||
|
||
} | ||
|
||
|
||
.hmcts-sub-navigation__link[aria-current=page] { | ||
color: govuk-colour(black); | ||
position: relative; | ||
|
||
&::before { | ||
background-color: govuk-colour("blue"); | ||
content: ""; | ||
display: block; | ||
height: 100%; | ||
position: absolute; bottom: 0; left: 0; | ||
width: 5px; | ||
|
||
@include mq($from: tablet) { | ||
height: 5px; | ||
width: 100%; | ||
} | ||
|
||
} | ||
|
||
} |
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,9 @@ | ||
<nav class="hmcts-sub-navigation" aria-label="{{params.label}}"> | ||
<ul class="hmcts-sub-navigation__list"> | ||
{% for item in params.items %} | ||
<li class="hmcts-sub-navigation__item"> | ||
<a class="hmcts-sub-navigation__link" {{ 'aria-current=page' if item.selected }} href="{{item.href}}">{{item.text}}</a> | ||
</li> | ||
{% endfor %} | ||
</ul> | ||
</nav> |
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