scrivito_section_widgets 0.0.19 → 0.90.0
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/javascripts/scrivito_section_widgets.js +0 -1
- data/app/assets/javascripts/scrivito_section_widgets/parallax.js +0 -1
- data/app/assets/stylesheets/scrivito_section_widgets.css +0 -1
- data/app/assets/stylesheets/scrivito_section_widgets/base_section.css +11 -0
- data/app/models/section_content_widget.rb +4 -3
- data/app/views/section_content_widget/details.html.erb +5 -1
- data/app/views/section_content_widget/show.html.erb +1 -1
- data/app/views/section_parallax_widget/details.html.erb +1 -1
- data/lib/scrivito_section_widgets/engine.rb +0 -2
- data/lib/scrivito_section_widgets/version.rb +1 -1
- metadata +4 -18
- data/app/assets/stylesheets/scrivito_section_widgets/bootstrap_sectionize.css +0 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6eaa9224caa468a5a5e2be209213bf919cb99009
|
4
|
+
data.tar.gz: be79665d2e15511aa8183d710b48c376c7de5ec0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 016d62ea6e7f2163d6e8d0956680cc8a249f85a8521a218c100eb78673f4bbd1295a8058409190b4dbc3bd33dfe11f9b33a68b9e0a1beff27e6d90eb569f4755
|
7
|
+
data.tar.gz: 8a4d6ea6368b5d4d09ac2855057e109f5f7dd8512b4414359f21909bb32c2238b7559308819673789d652420b762320f92bac8c2d4d3e4bbc9cfc9384bd67870
|
@@ -1,8 +1,9 @@
|
|
1
1
|
class SectionContentWidget < Widget
|
2
2
|
attribute :section_content, :widgetlist
|
3
3
|
attribute :background_color, :string
|
4
|
+
attribute :padding_size, :enum, values: ['none', 'small', 'medium', 'large'], default: 'medium'
|
4
5
|
|
5
|
-
def selectable_color_classes
|
6
|
+
def selectable_color_classes
|
6
7
|
if Obj.respond_to?('selectable_color_classes')
|
7
8
|
Obj.selectable_color_classes(class_name, attribute)
|
8
9
|
else
|
@@ -10,8 +11,8 @@ class SectionContentWidget < Widget
|
|
10
11
|
end
|
11
12
|
end
|
12
13
|
|
13
|
-
private
|
14
|
+
private
|
14
15
|
def self.fallback_colors
|
15
16
|
%w(transparent black gray light-gray red green blue yellow)
|
16
17
|
end
|
17
|
-
end
|
18
|
+
end
|
@@ -1,5 +1,9 @@
|
|
1
1
|
<div class="details-view" >
|
2
2
|
<%= scrivito_details_for 'Background Color' do %>
|
3
|
-
<%=
|
3
|
+
<%= scrivito_tag(:div, widget, :background_color, data: {colors_list: widget.selectable_color_classes}) %>
|
4
|
+
<% end %>
|
5
|
+
|
6
|
+
<%= scrivito_details_for 'Margin top and bottom' do %>
|
7
|
+
<%= scrivito_tag(:div, widget, :padding_size) %>
|
4
8
|
<% end %>
|
5
9
|
</div>
|
@@ -1,3 +1,3 @@
|
|
1
|
-
<section class="scrivito_section_content_widget <%= widget.background_color %>">
|
1
|
+
<section class="scrivito_section_content_widget <%= widget.background_color %> section_padding_<%= widget.padding_size %>">
|
2
2
|
<%= scrivito_tag(:div, widget, :section_content, class: 'container') %>
|
3
3
|
</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: 0.0
|
4
|
+
version: 0.90.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Scrivito
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-12-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -25,21 +25,7 @@ dependencies:
|
|
25
25
|
- !ruby/object:Gem::Version
|
26
26
|
version: '0'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
|
-
name:
|
29
|
-
requirement: !ruby/object:Gem::Requirement
|
30
|
-
requirements:
|
31
|
-
- - ">="
|
32
|
-
- !ruby/object:Gem::Version
|
33
|
-
version: '0'
|
34
|
-
type: :runtime
|
35
|
-
prerelease: false
|
36
|
-
version_requirements: !ruby/object:Gem::Requirement
|
37
|
-
requirements:
|
38
|
-
- - ">="
|
39
|
-
- !ruby/object:Gem::Version
|
40
|
-
version: '0'
|
41
|
-
- !ruby/object:Gem::Dependency
|
42
|
-
name: scrivito_advanced_editors
|
28
|
+
name: scrivito
|
43
29
|
requirement: !ruby/object:Gem::Requirement
|
44
30
|
requirements:
|
45
31
|
- - ">="
|
@@ -84,7 +70,7 @@ files:
|
|
84
70
|
- app/assets/javascripts/scrivito_section_widgets/video_content_browser.js
|
85
71
|
- app/assets/javascripts/scrivito_section_widgets/video_control.js
|
86
72
|
- app/assets/stylesheets/scrivito_section_widgets.css
|
87
|
-
- app/assets/stylesheets/scrivito_section_widgets/
|
73
|
+
- app/assets/stylesheets/scrivito_section_widgets/base_section.css
|
88
74
|
- app/assets/stylesheets/scrivito_section_widgets/colors.css
|
89
75
|
- app/assets/stylesheets/scrivito_section_widgets/parallax_section.css
|
90
76
|
- app/assets/stylesheets/scrivito_section_widgets/styles.css
|