okay fix figure stuff for real

This commit is contained in:
Lorin Werthen 2018-04-10 11:56:30 +02:00
parent e8638338f1
commit 3eeb1e0714
No known key found for this signature in database
GPG key ID: F11FFC921E0E08E0
2 changed files with 2 additions and 2 deletions

View file

@ -116,7 +116,7 @@ $sel: '';
} }
} }
.full-width { .content figure.full-width {
margin-left: -50vw; margin-left: -50vw;
margin-right: -50vw; margin-right: -50vw;
width: 100vw; width: 100vw;

View file

@ -17,7 +17,7 @@ module BlogHelper
def figure(img_url, caption, alt = nil, img_class: nil) def figure(img_url, caption, alt = nil, img_class: nil)
alt ||= caption alt ||= caption
<<~HTML <<~HTML
<figure class="image" class="#{img_class}"> <figure class="image #{img_class}">
<a href="#{img_url}"> <a href="#{img_url}">
<img src="#{img_url}" alt="#{alt}"> <img src="#{img_url}" alt="#{alt}">
</a> </a>