-
Notifications
You must be signed in to change notification settings - Fork 171
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Horizontal list section uses responsive grid
- Loading branch information
Showing
20 changed files
with
246 additions
and
107 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
{ | ||
"name": "vanilla-framework", | ||
"version": "4.18.4", | ||
"version": "4.19.0", | ||
"author": { | ||
"email": "[email protected]", | ||
"name": "Canonical Webteam" | ||
|
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
51 changes: 51 additions & 0 deletions
51
templates/docs/examples/patterns/lists/_list-horizontal-section-example.jinja
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,51 @@ | ||
{# | ||
Generates an example of the horizontal section list pattern. | ||
Params: | ||
- list_item_type: The style of the list items (optional). Options are: "has-bullet", "is-ticked", "is-crossed", "ordered". | ||
- list_variant_class: Modifier classes to apply to the list (optional). | ||
#} | ||
{% macro list_horizontal_section_example(list_item_type="", list_variant_class="") %} | ||
{% set list_item_type = list_item_type | trim %} | ||
{% set list_variant_class = list_variant_class | trim %} | ||
|
||
{% set list_classes = "p-list--horizontal-section" %} | ||
{% if list_variant_class | length > 0 %} | ||
{% set list_classes = list_classes + " " + list_variant_class %} | ||
{% endif %} | ||
|
||
{% set list_tag = "ul" %} | ||
{% if list_item_type == "ordered" %} | ||
{% set list_tag = "ol" %} | ||
{% set list_item_type = "" %} | ||
{% endif %} | ||
|
||
{% set list_item_classes = "p-list__item" %} | ||
{% if list_item_type | length > 0 %} | ||
{% set list_item_classes = list_item_classes + " " + list_item_type %} | ||
{% endif %} | ||
|
||
<{{ list_tag }} class="{{ list_classes }}"> | ||
<li class="{{ list_item_classes }}"> | ||
10 year security maintenance and CVE Patching | ||
</li> | ||
<li class="{{ list_item_classes }}"> | ||
<a href="#">Kernel Livepatch</a> for 24/7 patching with no downtime | ||
</li> | ||
<li class="{{ list_item_classes }}"> | ||
<a href="#">Expanded security</a> for infrastructure and applications | ||
</li> | ||
<li class="{{ list_item_classes }}"> | ||
<a href="#">FIPS 140-2</a> cryptographic modules certified by NIST | ||
</li> | ||
<li class="{{ list_item_classes }}"> | ||
<a href="#">Common Criteria EAL2</a>: ISO/IEC IS 15408 validated by CSEC | ||
</li> | ||
<li class="{{ list_item_classes }}"> | ||
<a href="#">DISA/STIG</a> hardening for <abbr title="Department of Defence, USA">DoD</abbr> | ||
compliance | ||
</li> | ||
<li class="{{ list_item_classes }}"> | ||
<a href="#">CIS profiles</a> for cyber defence and malware prevention | ||
</li> | ||
</{{ list_tag }}> | ||
{% 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
2 changes: 1 addition & 1 deletion
2
templates/docs/examples/patterns/lists/lists-dividers-bulleted.html
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
43 changes: 0 additions & 43 deletions
43
templates/docs/examples/patterns/lists/lists-horizontal-4.html
This file was deleted.
Oops, something went wrong.
9 changes: 9 additions & 0 deletions
9
...ates/docs/examples/patterns/lists/lists-horizontal-section-25-75-responsive-bulleted.html
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 @@ | ||
{% extends "_layouts/examples.html" %} | ||
{% block title %}Lists / Horizontal section / 25/75 / Bulleted{% endblock %} | ||
{% from "docs/examples/patterns/lists/_list-horizontal-section-example.jinja" import list_horizontal_section_example %} | ||
|
||
{% block standalone_css %}patterns_lists{% endblock %} | ||
|
||
{% block content %} | ||
{{ list_horizontal_section_example(list_item_type='has-bullet', list_variant_class='is-25-75') }} | ||
{% endblock %} |
9 changes: 9 additions & 0 deletions
9
...lates/docs/examples/patterns/lists/lists-horizontal-section-25-75-responsive-crossed.html
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 @@ | ||
{% extends "_layouts/examples.html" %} | ||
{% block title %}Lists / Horizontal section / 25/75 / Crossed{% endblock %} | ||
{% from "docs/examples/patterns/lists/_list-horizontal-section-example.jinja" import list_horizontal_section_example %} | ||
|
||
{% block standalone_css %}patterns_lists{% endblock %} | ||
|
||
{% block content %} | ||
{{ list_horizontal_section_example(list_item_type='is-crossed', list_variant_class='is-25-75') }} | ||
{% endblock %} |
9 changes: 9 additions & 0 deletions
9
...lates/docs/examples/patterns/lists/lists-horizontal-section-25-75-responsive-ordered.html
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 @@ | ||
{% extends "_layouts/examples.html" %} | ||
{% block title %}Lists / Horizontal section / 25/75 / Ordered{% endblock %} | ||
{% from "docs/examples/patterns/lists/_list-horizontal-section-example.jinja" import list_horizontal_section_example %} | ||
|
||
{% block standalone_css %}patterns_lists{% endblock %} | ||
|
||
{% block content %} | ||
{{ list_horizontal_section_example(list_item_type='ordered', list_variant_class='is-25-75') }} | ||
{% endblock %} |
9 changes: 9 additions & 0 deletions
9
templates/docs/examples/patterns/lists/lists-horizontal-section-25-75-responsive-ticked.html
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 @@ | ||
{% extends "_layouts/examples.html" %} | ||
{% block title %}Lists / Horizontal section / 25/75 / Ticked{% endblock %} | ||
{% from "docs/examples/patterns/lists/_list-horizontal-section-example.jinja" import list_horizontal_section_example %} | ||
|
||
{% block standalone_css %}patterns_lists{% endblock %} | ||
|
||
{% block content %} | ||
{{ list_horizontal_section_example(list_item_type='is-ticked', list_variant_class='is-25-75') }} | ||
{% endblock %} |
9 changes: 9 additions & 0 deletions
9
templates/docs/examples/patterns/lists/lists-horizontal-section-25-75-responsive.html
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 @@ | ||
{% extends "_layouts/examples.html" %} | ||
{% block title %}Lists / Horizontal section / 25/75{% endblock %} | ||
{% from "docs/examples/patterns/lists/_list-horizontal-section-example.jinja" import list_horizontal_section_example %} | ||
|
||
{% block standalone_css %}patterns_lists{% endblock %} | ||
|
||
{% block content %} | ||
{{ list_horizontal_section_example(list_variant_class='is-25-75') }} | ||
{% endblock %} |
9 changes: 9 additions & 0 deletions
9
templates/docs/examples/patterns/lists/lists-horizontal-section-responsive-bulleted.html
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 @@ | ||
{% extends "_layouts/examples.html" %} | ||
{% block title %}Lists / Horizontal section / Bulleted{% endblock %} | ||
{% from "docs/examples/patterns/lists/_list-horizontal-section-example.jinja" import list_horizontal_section_example %} | ||
|
||
{% block standalone_css %}patterns_lists{% endblock %} | ||
|
||
{% block content %} | ||
{{ list_horizontal_section_example(list_item_type='has-bullet') }} | ||
{% endblock %} |
Oops, something went wrong.