scrivito_elastic_slider_widget 0.92.1 → 0.92.2
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:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 992f876fe6f35c9d74e4e9402dec858717e9a547
|
|
4
|
+
data.tar.gz: fc6b621e24015aab6b3788f4e0500e13a73b480f
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: bd7dd4de2288c03783e69269eb06d843ee3d8df188d2d9abd2f7324f6832c73d5d51349074339f41c159be2bf4a9630c22432320217c06665992098f9eb0ad45
|
|
7
|
+
data.tar.gz: 5f8a2e258f2dc5af589b58f12af21f394e3e72136fa22df99a42748a5821d1946c53c7f2e5f48b54edd9c402c7777f2bc2342416a4a8655f492b449737bc4fd1
|
data/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# ScrivitoElasticSlider
|
|
2
2
|
|
|
3
|
-
A Scrivito widget for adding a fullscreen slider based on Bootstrap.
|
|
3
|
+
A Scrivito widget for adding a fullscreen slider based on Bootstrap. Instead of an image tag as Background, a picture tag is used. The image versions will be generated automatically with the scrivito transform and using the height of the widget.
|
|
4
4
|
|
|
5
5
|
## Prerequisites
|
|
6
6
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
<%= scrivito_details_for do %>
|
|
2
2
|
<h4><%= t('scrivito_elastic_slider_widget.details.background_image', default: 'Background Image') %></h4>
|
|
3
|
-
<%= scrivito_image_tag(widget, :image, data: {
|
|
3
|
+
<%= scrivito_image_tag(widget, :image, data: { scrivito_editors_filter_context: {_images: true} }) %>
|
|
4
4
|
<% end %>
|
|
@@ -1,22 +1,25 @@
|
|
|
1
1
|
<div class="item <%= widget.additional_classes(params) %>">
|
|
2
2
|
<picture>
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
3
|
+
<% if widget.image %>
|
|
4
|
+
<source media='(max-width: 400px) and (orientation: portrait)'
|
|
5
|
+
sizes='100vw'
|
|
6
|
+
srcset='<%= widget.image.binary.transform(width: 400, height: widget.height, fit: :crop, crop: :center).url %>'>
|
|
6
7
|
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
8
|
+
<source media='(max-width: 768px)'
|
|
9
|
+
sizes='100vw'
|
|
10
|
+
srcset='<%= widget.image.binary.transform(width: 768, height: widget.height, fit: :crop, crop: :center).url %>'>
|
|
10
11
|
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
12
|
+
<source media='(min-width: 668px) and (max-width: 991px)'
|
|
13
|
+
sizes='100vw'
|
|
14
|
+
srcset='<%= widget.transform_for_desktop(991).url %>'>
|
|
14
15
|
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
16
|
+
<source media='(min-width: 991px) and (max-width: 1200px)'
|
|
17
|
+
sizes='100vw'
|
|
18
|
+
srcset='<%= widget.transform_for_desktop(1200).url %>'>
|
|
19
|
+
|
|
20
|
+
<% end %>
|
|
21
|
+
<%= scrivito_image_tag widget, :image, {class: 'img-responsive'}, transform: widget.fallback_transform %>
|
|
22
|
+
</picture>
|
|
20
23
|
<div class="carousel-caption">
|
|
21
24
|
<div class="content">
|
|
22
25
|
<%= scrivito_tag :div, widget, :panel_content %>
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: scrivito_elastic_slider_widget
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.92.
|
|
4
|
+
version: 0.92.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Scrivito
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2017-04-
|
|
11
|
+
date: 2017-04-04 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bundler
|