maglove-widgets 1.0.3 → 1.0.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/maglove/widgets/container.rb +3 -2
- data/lib/maglove/widgets/video.rb +1 -1
- data/maglove-widgets.gemspec +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: e6eccddff4524f7c0829705aa0c5bb2dd48e9851
|
4
|
+
data.tar.gz: 85288f0919bfe5ae0d5f590887d98f9b6a13feb2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8bc2a12339ca923f550fba9f2cbded8e28d198c3b9e186c75fdfc2d7f1faa60c337319b834e18da68476abbda6c1a06c344bd3692d80e1e11bc0dd68fe3e3b81
|
7
|
+
data.tar.gz: cab55dc4891c56a45cff1254103c267c3fb49ff0f8462f223413dad7d0cfef34b09fd74ff2f38b8df7753ae4797a38528835593b4fd898958d89e323ec7d2c00
|
@@ -28,7 +28,8 @@ module Maglove
|
|
28
28
|
margin_top: "",
|
29
29
|
margin_right: "",
|
30
30
|
margin_bottom: "",
|
31
|
-
margin_left: ""
|
31
|
+
margin_left: "",
|
32
|
+
overflow_y: ""
|
32
33
|
}
|
33
34
|
end
|
34
35
|
|
@@ -64,7 +65,7 @@ module Maglove
|
|
64
65
|
end
|
65
66
|
|
66
67
|
def image_styles
|
67
|
-
style_string @options, :min_height, :max_height, :padding
|
68
|
+
style_string @options, :min_height, :max_height, :padding, :overflow_y
|
68
69
|
end
|
69
70
|
|
70
71
|
module Helpers
|
@@ -23,7 +23,7 @@ module Maglove
|
|
23
23
|
module Helpers
|
24
24
|
def video_widget(options = {})
|
25
25
|
widget_block(Widgets::Video.new(options)) do |widget|
|
26
|
-
haml_tag :div, class: "video-widget player-style-#{widget.options[:style]}" do
|
26
|
+
haml_tag :div, style: "margin-bottom: #{widget.options[:margin_bottom]}", class: "video-widget player-style-#{widget.options[:style]}" do
|
27
27
|
haml_tag :video, controls: true, poster: widget.options[:poster], style: "width: 100%" do
|
28
28
|
haml_tag :source, src: widget.options[:source].to_s, type: "video/mp4"
|
29
29
|
end
|
data/maglove-widgets.gemspec
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: maglove-widgets
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tobias Strebitzer
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-12-
|
11
|
+
date: 2016-12-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|