-
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.
fix(hero): 50/50 with no image is laid out in split columns (#5450)
* fix(hero): 50/50 with no image is laid out in split columns * drive-by: remove old change status labels
- Loading branch information
Showing
8 changed files
with
54 additions
and
9 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.20.0", | ||
"version": "4.20.1", | ||
"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
27 changes: 27 additions & 0 deletions
27
templates/docs/examples/patterns/hero/hero-50-50-no-image.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,27 @@ | ||
{% extends "_layouts/examples.html" %} | ||
{% from "_macros/vf_hero.jinja" import vf_hero %} | ||
|
||
{% block title %}Hero / 50/50 / Without image{% endblock %} | ||
{% block standalone_css %}patterns_all{% endblock %} | ||
|
||
{% set is_paper = true %} | ||
{% block content %} | ||
|
||
{% call(slot) vf_hero( | ||
title_text='H1 - ideally one line, up to two', | ||
subtitle_text='H2 placeholder - aim for one line, 2 is acceptable, more - use a paragraph', | ||
layout='50/50' | ||
) -%} | ||
{%- if slot == 'description' -%} | ||
<p> | ||
Generally, the height of the right hand side of a 50/50 split should contain more content than the left | ||
hand side. | ||
</p> | ||
{%- endif -%} | ||
{%- if slot == 'cta' -%} | ||
<a href="#" class="p-button--positive">Learn more</a> | ||
<a href="#">Contact us ›</a> | ||
{%- endif -%} | ||
{% endcall -%} | ||
|
||
{% 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
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