Improve feed image styles and move image to right
This commit is contained in:
@@ -2766,15 +2766,15 @@ table {
|
||||
display: inline-block;
|
||||
height: rem-calc(120);
|
||||
overflow: hidden;
|
||||
width: 100%;
|
||||
|
||||
@include breakpoint(medium) {
|
||||
height: rem-calc(96);
|
||||
}
|
||||
|
||||
img {
|
||||
margin-left: rem-calc(-15);
|
||||
max-width: none;
|
||||
width: rem-calc(120);
|
||||
width: 100%;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -9,6 +9,11 @@
|
||||
|
||||
<% feed.items.each do |item| %>
|
||||
<div class="<%= item.class.to_s.parameterize('_') %> row">
|
||||
<div class="feed-description small-12 column
|
||||
<%= 'medium-6 large-9' if item.image.present? %>">
|
||||
<strong><%= link_to item.title, url_for(item) %></strong><br>
|
||||
<p><%= item.summary %></p>
|
||||
</div>
|
||||
<% if item.image.present? %>
|
||||
<div class="small-12 medium-6 large-3 column">
|
||||
<div class="feed-image">
|
||||
@@ -17,11 +22,6 @@
|
||||
</div>
|
||||
</div>
|
||||
<% end %>
|
||||
<div class="feed-description small-12 medium-6 large-9 column
|
||||
<%= item.image.present? ? '' : 'medium-offset-6 large-offset-3' %>">
|
||||
<strong><%= link_to item.title, url_for(item) %></strong><br>
|
||||
<p><%= item.summary %></p>
|
||||
</div>
|
||||
</div>
|
||||
<% end %>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user