-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
fc3fb1e
commit 5e14c70
Showing
51 changed files
with
110 additions
and
268 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 was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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
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,7 +1,13 @@ | ||
{% set buttonClasses = ['button'] %} | ||
{% if buttonAdditionalClasses %} | ||
{% set buttonClasses = buttonClasses|merge(buttonAdditionalClasses) %} | ||
{% endif %} | ||
{% set buttonLabel = buttonLabel|default('Button') %} | ||
{% set button__tag = button__tag|default('button') %} | ||
{% set button__base_class = button__base_class|default('button') %} | ||
{% set button__attributes = button__attributes|default([]) %} | ||
{% set button__attributes = button__attributes|merge({ | ||
'class': bem(button__base_class, button__modifiers, button__blockname, button__additional_classes), | ||
}) %} | ||
{% set button__content = button__content|default('Button Label') %} | ||
|
||
<a href="#" class="{{buttonClasses|join(' ')}}">{{buttonLabel}}</a> | ||
<{{button__tag}} {{ add_attributes(button__attributes) }}> | ||
{% block button__content %} | ||
{{ button__content }} | ||
{% endblock %} | ||
</{{button__tag}}> |
File renamed without changes.
File renamed without changes.
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,19 @@ | ||
{% set picture_base_class = picture_base_class|default('picture') %} | ||
|
||
<picture {{ bem(picture_base_class, picture_modifiers, picture_blockname) }}> | ||
{% if sources %} | ||
{# | ||
Internet Explorer 9 doesn't recognise source elements that are wrapped in | ||
picture tags. See http://scottjehl.github.io/picturefill/#ie9 | ||
#} | ||
<!--[if IE 9]><video style="display: none;"><![endif]--> | ||
{% for source_attributes in sources %} | ||
<source{{source_attributes}}/> | ||
{% endfor %} | ||
<!--[if IE 9]></video><![endif]--> | ||
{% endif %} | ||
{# The controlling image, with the fallback image in srcset. #} | ||
{% include "@components/images/image/_image.twig" with { | ||
image_blockname: picture_image_blockname|default(picture_blockname), | ||
} %} | ||
</picture> |
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,22 @@ | ||
{% set image_figure_base_class = image_figure_base_class|default('figure') %} | ||
{% set image_link_base_class = image_link_base_class|default('link') %} | ||
|
||
<figure {{ bem(image_figure_base_class, image_figure_modifiers, image_figure_blockname) }}> | ||
{% if image_url %} | ||
<a {{ bem(image_link_base_class, image_link_modifiers, image_link_blockname|default(image_figure_base_class)) }} href="{{ image_url }}"> | ||
{% endif %} | ||
{% block figure_content %} | ||
{% include "@components/images/image/responsive-image.twig" with { | ||
responsive_image_blockname: responsive_image_blockname|default(image_figure_base_class), | ||
} %} | ||
{% endblock %} | ||
{% if image_url %} | ||
</a> | ||
{% endif %} | ||
|
||
{% if image_caption %} | ||
<figcaption {{ bem('caption', figcaption_modifiers, figcaption_blockname|default(image_figure_base_class)) }}> | ||
{{ image_caption }} | ||
</figcaption> | ||
{% endif %} | ||
</figure> |
2 changes: 1 addition & 1 deletion
2
compound/01-atoms/images/image/figure.yml → src/components/images/image/figure.yml
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,5 +1,5 @@ | ||
output_image_tag: true | ||
image_url: '#' | ||
image_src: 'https://placeimg.com/1200/200/tech' | ||
image_src: 'https://placehold.co/1200x200' | ||
image_alt: 'This is the alt text' | ||
image_caption: 'This is an image caption.' |
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,5 @@ | ||
output_image_tag: true | ||
image_srcset: 'https://placehold.co/320x180 320w, https://placehold.co/480x270 480w, https://placehold.co/640x360 640w, https://placehold.co/800x450 800w, https://placehold.co/960x540 960w, https://placehold.co/1120x630 1120w, https://placehold.co/1280x720 1280w, https://placehold.co/1440x810 1440w, https://placehold.co/1600x900 1600w, https://placehold.co/1760x990 1760w, https://placehold.co/1920x1080 1920w, https://placehold.co/2080x1170 2080w, https://placehold.co/2240x1260 2240w' | ||
image_sizes: '100vw' | ||
image_src: 'https://placehold.co/320x180' | ||
image_alt: 'A 16 by 9 image' |
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
File renamed without changes.
File renamed without changes.
File renamed without changes.
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
File renamed without changes.
Oops, something went wrong.