Skip to content

Commit

Permalink
Announcement image padding
Browse files Browse the repository at this point in the history
  • Loading branch information
Trys Mudford committed May 7, 2020
1 parent 95194f1 commit 4136d85
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
5 changes: 5 additions & 0 deletions assets/sass/components/announcement.scss
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,11 @@
padding: 1.5rem;
}

.Announcement-image {
padding: 1.5rem;
margin: 0;
}

.Announcement-description {
@include font(16px, 32px);
padding-bottom: 2rem;
Expand Down
2 changes: 2 additions & 0 deletions components/04-blocks/announcement/announcement.twig
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,9 @@
</div>
{% if announcementImage and inlineImage %}
<figure class="Announcement-image">
{% if megaLinkURL %}<a href="{{ megaLinkURL }}">{% endif %}
<img src="{{ announcementImage }}" />
{% if megaLinkURL %}</a>{% endif %}
</figure>
{% endif %}
</section>
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "clearleft-fractal",
"version": "0.3.3",
"version": "0.3.4",
"main": "fractal.js",
"dependencies": {
"@frctl/fractal": "^1.1.0",
Expand Down

0 comments on commit 4136d85

Please sign in to comment.