-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
7a8a42f
commit 4088264
Showing
5 changed files
with
37 additions
and
27 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 was deleted.
Oops, something went wrong.
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,16 @@ | ||
{% extends "layouts/two_thirds.html" %} | ||
{% from "components/header.njk" import header %} | ||
{% from "components/examples.njk" import example %} | ||
|
||
{% block head -%} | ||
<link href="{{ asset_path }}main.css" media="screen" rel="stylesheet" /> | ||
{% endblock %} | ||
|
||
{% block two_thirds -%} | ||
{{ header("Typography", "Components") }} | ||
|
||
{{ header(heading="A 48px Bold heading", section="Section marker") }} | ||
{{ header(heading="A 36px Bold heading", section="Section marker", size="large") }} | ||
{{ header(heading="A 24px Bold heading", section="Section marker", size="medium") }} | ||
{{ header(heading="A 19px Bold heading", section="Section marker", size="small") }} | ||
{%- 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
{# | ||
Header | ||
heading - (required) Main heading text | ||
section - (optional) Section text displayed above the heading | ||
size - (default = 'xlarge') heading size | ||
When size is not xlarge or large the section will not be displayed as | ||
the size and lightness of the text would not be easily read. | ||
#} | ||
{% macro header(heading, section='', size='xlarge') %} | ||
<h1 class="heading-{{ size }}"> | ||
{% if section != '' and (size == 'xlarge' or size == 'large') %} | ||
<span class="heading-secondary"> | ||
{{ section }} | ||
</span> | ||
{% endif %} | ||
{{ heading }} | ||
</h1> | ||
{% endmacro %} |
This file was deleted.
Oops, something went wrong.