-
Notifications
You must be signed in to change notification settings - Fork 130
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This commit adds the main page title component, which includes the SCSS file, HTML template, JSON data, and Markdown documentation for both English and French versions. The component provides a default H1 style with a short bold red underline for use in Canada.ca websites. It also includes guidance and code samples for implementing the component with and without RDFa + schema.org markup.
- Loading branch information
delisma
committed
Jan 17, 2024
1 parent
4c392da
commit 3d14e9d
Showing
8 changed files
with
783 additions
and
1 deletion.
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
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,24 @@ | ||
/* H1 short bold red underline */ | ||
/* Using border-image and linear-gradient to avoid pseudo-element and would be easier to override in edge cases (like if a campaign page or something needed to disable the thickline style for whatever reason). */ | ||
h1#wb-cont { | ||
$thickline-color: #af3c43; | ||
$thickline-width: 71px; | ||
$thickline-thickness: .18em; | ||
border-bottom: $thickline-thickness solid $thickline-color; | ||
border-image: linear-gradient(to right, $thickline-color $thickline-width, transparent $thickline-width); | ||
border-image-slice: 1; | ||
} | ||
|
||
/* Reference other H1 styles */ | ||
/* | ||
* baselines/_heading.scss | ||
h1 { | ||
border-bottom: 1px solid $border-red; | ||
margin-bottom: .2em; | ||
margin-top: 1em; | ||
padding-bottom: .2em; | ||
} | ||
* gc-subway | ||
* | ||
*/ |
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,12 @@ | ||
{% if include %} | ||
{% if include.dir == 'ltr' or include.dir == 'rtl' %} | ||
<h1 property="name" | ||
{%- if include.rdfa -%} | ||
typeof="WebPageElement" | ||
{%- endif -%} | ||
{%- if include.id -%} | ||
id="wb-cont" | ||
{%- endif -%} | ||
dir="{{ include.dir }}">{{ page.title }}</h1> | ||
{% endif %} | ||
{% endif %} |
Oops, something went wrong.