-
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.
Add borderless CTA block variant (#5278)
* Add borderless CTA block variant * Remove top padding from borderless CTA * Update to 4.16.0
- Loading branch information
Showing
7 changed files
with
46 additions
and
2 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
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
12 changes: 12 additions & 0 deletions
12
templates/docs/examples/patterns/cta-block/borderless.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,12 @@ | ||
{% extends "_layouts/examples.html" %} | ||
|
||
{% block title %}CTA Block / Borderless{% endblock %} | ||
|
||
{% block standalone_css %}patterns_cta{% endblock %} | ||
|
||
{% block content %} | ||
<div class="p-cta-block is-borderless"> | ||
<a href="#" class="p-button--positive">Learn more</a> | ||
<a href="#">Contact us ›</a> | ||
</div> | ||
{% 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,11 @@ | ||
{% extends "_layouts/examples.html" %} | ||
{% block title %}CTA Block / Combined{% endblock %} | ||
|
||
{% block standalone_css %}patterns_cta{% endblock %} | ||
|
||
{% block content %} | ||
{% with is_combined = true %} | ||
<section>{% include 'docs/examples/patterns/cta-block/default.html' %}</section> | ||
<section>{% include 'docs/examples/patterns/cta-block/borderless.html' %}</section> | ||
{% endwith %} | ||
{% 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