diff --git a/app/views/pageflow/entries/show.css.erb b/app/views/pageflow/entries/show.css.erb index 9db7a5d825..3238b432e8 100644 --- a/app/views/pageflow/entries/show.css.erb +++ b/app/views/pageflow/entries/show.css.erb @@ -6,6 +6,9 @@ <%= background_image_lazy_loading_css_class('image', image_file) %> { background-image: url('<%= image_file.attachment.url(style) %>'); } + <%= background_image_lazy_loading_css_class('image_panorama', image_file) %> { + background-image: url('<%= image_file.attachment.url("panorama_#{style}") %>'); + } <% end %> <% @entry.video_files.each do |video_file| %> @@ -16,16 +19,6 @@ <% end %> <% end %> - <% page_media_breakpoints.each do |style, condition| %> - <%= media_query(condition) do %> - <% @entry.image_files.each do |image_file| %> - <%= background_image_lazy_loading_css_class('image_panorama', image_file) %> { - background-image: url('<%= image_file.attachment.url("panorama_#{style}") %>'); - } - <% end %> - <% end %> - <% end %> - <%= file_thumbnails_css(@entry) %> <%= render 'pageflow/entries/theming' %> -<% end %> \ No newline at end of file +<% end %>