Skip to content

Commit

Permalink
feat(elements): html-elements, variable img width
Browse files Browse the repository at this point in the history
  • Loading branch information
wesleyboar committed Feb 1, 2023
1 parent 4ca0897 commit a4c55a0
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 0 deletions.
1 change: 1 addition & 0 deletions dist/elements/html-elements/demo.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 5 additions & 0 deletions src/lib/_imports/elements/html-elements/demo.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
/* This CSS is ONLY for the pattern library. It is NOT part of the pattern. */

figure.with-dynamic-width-image img {
width: 100%;
}
3 changes: 3 additions & 0 deletions src/lib/_imports/elements/html-elements/html-elements.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,9 @@
<dt>Figure</dt>
<dd>{{> @figure }}</dd>

<dt>Figure</dt>
<dd>{{> @figure class="with-dynamic-width-image" use-image-wide=true }}</dd>

<dt>Blockquote</dt>
<dd>{{> @blockquote }}</dd>
</dl>
Expand Down

0 comments on commit a4c55a0

Please sign in to comment.