-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove old fill-canvas theme preview technique
- Loading branch information
1 parent
2bb317f
commit 762b545
Showing
5 changed files
with
32 additions
and
69 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 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 |
---|---|---|
@@ -1,29 +1,25 @@ | ||
{% extends '@cloudfour/design/demo/fill-canvas.twig' %} | ||
|
||
{% block content %} | ||
{% embed '@cloudfour/objects/rhythm/rhythm.twig' with { | ||
class: 'o-rhythm--generous' | ||
} %} | ||
{% block content %} | ||
<h1>t-{{theme}}</h1> | ||
{% include '@cloudfour/design/typography/demo/inline-elements.twig' only %} | ||
{% include '@cloudfour/components/button/demo/styles.twig' only %} | ||
{# TODO: Replace padding and corner modifiers once card component can | ||
handle these variations natively #} | ||
{% set _card_class = 'c-card--horizontal@m u-pad-1 u-rounded' %} | ||
{% if theme == 'light' %} | ||
{% set _card_class = _card_class ~ ' t-dark' %} | ||
{% else %} | ||
{% set _card_class = _card_class ~ ' t-light' %} | ||
{% endif %} | ||
{% include '@cloudfour/components/card/demo/single.twig' with { | ||
class: _card_class, | ||
href: '#', | ||
show_heading: true, | ||
show_content: true, | ||
show_cover: true, | ||
show_footer: true | ||
} only %} | ||
{% endblock %} | ||
{% endembed %} | ||
{% endblock %} | ||
{% embed '@cloudfour/objects/rhythm/rhythm.twig' with { | ||
class: 'o-rhythm--generous' | ||
} %} | ||
{% block content %} | ||
<h1>t-{{theme}}</h1> | ||
{% include '@cloudfour/design/typography/demo/inline-elements.twig' only %} | ||
{% include '@cloudfour/components/button/demo/styles.twig' only %} | ||
{# TODO: Replace padding and corner modifiers once card component can | ||
handle these variations natively #} | ||
{% set _card_class = 'c-card--horizontal@m u-pad-1 u-rounded' %} | ||
{% if theme == 'light' %} | ||
{% set _card_class = _card_class ~ ' t-dark' %} | ||
{% else %} | ||
{% set _card_class = _card_class ~ ' t-light' %} | ||
{% endif %} | ||
{% include '@cloudfour/components/card/demo/single.twig' with { | ||
class: _card_class, | ||
href: '#', | ||
show_heading: true, | ||
show_content: true, | ||
show_cover: true, | ||
show_footer: true | ||
} only %} | ||
{% endblock %} | ||
{% endembed %} |
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