scrivito_section_widgets 1.0.9 → 1.0.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/app/assets/stylesheets/scrivito_section_widgets/parallax_section.css +1 -2
- data/app/models/section_parallax_widget.rb +1 -1
- data/app/views/section_parallax_widget/details.html.erb +1 -1
- data/app/views/section_parallax_widget/show.html.erb +2 -2
- data/lib/scrivito_section_widgets/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 3b41489ac567d8588210bb04734741e5a564f8f7
|
|
4
|
+
data.tar.gz: e2972029ae5c1509d4eccd1b54cbecc01554af53
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 38920e7179b079ef99f3948718b5b806593415f6e364e4294f56ff7683114d25a432779f71b8555a6fe6bbfbbfe92039957a5f85e5b82e0c73e44528bc811bbf
|
|
7
|
+
data.tar.gz: c6bcdbca3d9b2951f57f89d5f393752b9eb01a6c3378469157812eaf63bdcbc01ccd2b897f9f76465454824465ad9308f925a4dc46b134d2371093637d0475fe
|
|
@@ -10,7 +10,7 @@ class SectionParallaxWidget < Widget
|
|
|
10
10
|
|
|
11
11
|
def section_style
|
|
12
12
|
styles = "height: #{height}; max-height: #{height};"
|
|
13
|
-
styles += "background: url(#{background_image.binary_url}) top center #{'fixed' if speed=='fixed'} no-repeat;" if !with_parallax? && background_image.present?
|
|
13
|
+
styles += "background: url(#{background_image.binary_url}) top center #{'fixed' if speed=='fixed'} no-repeat; z-index: -1;" if !with_parallax? && background_image.present?
|
|
14
14
|
return styles
|
|
15
15
|
end
|
|
16
16
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<%= scrivito_details_for t('scrivito_section_parallax_widget.details.background_image', default: 'Background Image') do %>
|
|
2
|
-
<%= scrivito_tag(:div, widget, :background_image) %>
|
|
2
|
+
<%= scrivito_tag(:div, widget, :background_image, data: { scrivito_editors_filter_context: {_image: true} }) %>
|
|
3
3
|
<% end %>
|
|
4
4
|
|
|
5
5
|
<%= scrivito_details_for t('scrivito_section_parallax_widget.details.speed', default: 'Speed') do %>
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
<section class="<%= widget.section_class %>" style="<%= widget.section_style %>">
|
|
2
2
|
<div class="parallax-container">
|
|
3
3
|
<% if widget.with_parallax? %>
|
|
4
|
-
<%= scrivito_image_tag(widget, :background_image, class: "parallax-image parallax-image-#{widget.parallax_speed}", data: { parallax_speed: widget.speed }) %>
|
|
4
|
+
<%= scrivito_image_tag(widget, :background_image, class: "parallax-image parallax-image-#{widget.parallax_speed}", data: { parallax_speed: widget.speed }, scrivito_editors_filter_context: {_image: true}) %>
|
|
5
5
|
<% end %>
|
|
6
6
|
<%= scrivito_tag(:div, widget, :section_content, class: 'container') %>
|
|
7
7
|
</div>
|
|
8
|
-
</section>
|
|
8
|
+
</section>
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: scrivito_section_widgets
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.0.
|
|
4
|
+
version: 1.0.10
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Scrivito
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2017-
|
|
11
|
+
date: 2017-05-19 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: scrivito
|