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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 2fc0281a487ab377223094da30327e3efe2cebf3
4
- data.tar.gz: 2c2068bfa459af82a81247ba4fb4145b11f7e083
3
+ metadata.gz: 3b41489ac567d8588210bb04734741e5a564f8f7
4
+ data.tar.gz: e2972029ae5c1509d4eccd1b54cbecc01554af53
5
5
  SHA512:
6
- metadata.gz: 405bd7ab9cc8230ac06f3520d25f2cb2cd85ebfdb327c87a11164421c25dd38d535ff1055b841c3f018d5170aa968febc800b17052f1e990a26bd312c16047bd
7
- data.tar.gz: 1abb348c73cafbf587e823a60694ed161b137fe0e56211e72b4d6c7ecf6f20e82bbd88128bd9b5c3b8a29a811f1ad73bb34ad2da6b0df0fc0a54616f8b8e8f88
6
+ metadata.gz: 38920e7179b079ef99f3948718b5b806593415f6e364e4294f56ff7683114d25a432779f71b8555a6fe6bbfbbfe92039957a5f85e5b82e0c73e44528bc811bbf
7
+ data.tar.gz: c6bcdbca3d9b2951f57f89d5f393752b9eb01a6c3378469157812eaf63bdcbc01ccd2b897f9f76465454824465ad9308f925a4dc46b134d2371093637d0475fe
@@ -11,7 +11,6 @@
11
11
  left: 0;
12
12
  right: 0;
13
13
  bottom: 0;
14
- z-index: -1;
15
14
  }
16
15
 
17
16
  .scrivito_section_parallax_widget .parallax-image {
@@ -54,4 +53,4 @@
54
53
  .scrivito_section_video_widget {
55
54
  position: relative;
56
55
  z-index: 1;
57
- }
56
+ }
@@ -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>
@@ -1,3 +1,3 @@
1
1
  module ScrivitoSectionWidgets
2
- VERSION = "1.0.9"
2
+ VERSION = "1.0.10"
3
3
  end
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.9
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-03-01 00:00:00.000000000 Z
11
+ date: 2017-05-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: scrivito