-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Co-authored-by: Nathan Rogan <nathan.rogan@wmca.org.uk>
- Loading branch information
1 parent
802b837
commit 4d9188f
Showing
5 changed files
with
109 additions
and
3 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,6 @@ | ||
{% macro wmcadsDivider(params) %} | ||
{% set class = " " + params.class if params.class else "wmcads-divider-primary" %} | ||
|
||
<hr{% if(params.class) %} class="wmcads-divider-{{params.class}}"{% endif %} aria-hidden="true"> | ||
|
||
{% 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,29 @@ | ||
hr, | ||
.wmcads-divider { | ||
border: 3px solid get-color(primary); | ||
|
||
&-primary { | ||
border-color: get-color(primary); | ||
} | ||
|
||
&-grey { | ||
border-color: get-color(brandCoolGrey); | ||
} | ||
|
||
&-wmgreen { | ||
border-color: get-color(brandWmGreen); | ||
} | ||
|
||
&-wmred { | ||
border-color: get-color(brandWmRed); | ||
} | ||
|
||
&-wmpurple { | ||
border-color: get-color(brandWmPurple); | ||
} | ||
|
||
&-wmblue { | ||
border-color: get-color(brandWmBlue); | ||
} | ||
|
||
} |
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,67 @@ | ||
{% extends "www/_layouts/layout-left-pane.njk" %} | ||
{% set pageTitle="Divider" %} | ||
{% from "wmcads/components/divider/_divider.njk" import wmcadsDivider %} | ||
{% from "www/_partials/component-example/component-example.njk" import compExample %} | ||
|
||
{% block content %} | ||
<h2>Default divider</h2> | ||
{{ | ||
compExample([ | ||
wmcadsDivider() | ||
]) | ||
}} | ||
|
||
<h2>Primary divider</h2> | ||
{{ | ||
compExample([ | ||
wmcadsDivider({ | ||
class: 'primary' | ||
}) | ||
]) | ||
}} | ||
|
||
<h2>Cool Grey divider</h2> | ||
{{ | ||
compExample([ | ||
wmcadsDivider({ | ||
class: 'grey' | ||
}) | ||
]) | ||
}} | ||
|
||
<h2>WM Green divider</h2> | ||
{{ | ||
compExample([ | ||
wmcadsDivider({ | ||
class: 'wmgreen' | ||
}) | ||
]) | ||
}} | ||
|
||
<h2>WM Red divider</h2> | ||
{{ | ||
compExample([ | ||
wmcadsDivider({ | ||
class: 'wmred' | ||
}) | ||
]) | ||
}} | ||
|
||
<h2>WM Purple divider</h2> | ||
{{ | ||
compExample([ | ||
wmcadsDivider({ | ||
class: 'wmpurple' | ||
}) | ||
]) | ||
}} | ||
|
||
<h2>WM Blue divider</h2> | ||
{{ | ||
compExample([ | ||
wmcadsDivider({ | ||
class: 'wmblue' | ||
}) | ||
]) | ||
}} | ||
{% endblock %} |