scrivito_section_widgets 0.0.19 → 0.90.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e18d3d96563d57df4b2b0d532fa1ea5bc6e14819
4
- data.tar.gz: cb6c0e87dff45de91deb5adcb40dff6efbc9dca8
3
+ metadata.gz: 6eaa9224caa468a5a5e2be209213bf919cb99009
4
+ data.tar.gz: be79665d2e15511aa8183d710b48c376c7de5ec0
5
5
  SHA512:
6
- metadata.gz: 32c2488b2b4483f43caf1ff40e0e50aeb7920b3fdd29f0e3d40cbc9f37ad21c27b0cfef3a076136f2797a3f0635d705138cc2e99d5738a926c4d64975f0d94f7
7
- data.tar.gz: b33cbbe72f934699e8f13e0a89cdac900b616ab12b4296da56ffb7fdeb1e11244704ac7e26222a88f153a72795223d060f60e246f56f2775a135b8ded4ebd9dc
6
+ metadata.gz: 016d62ea6e7f2163d6e8d0956680cc8a249f85a8521a218c100eb78673f4bbd1295a8058409190b4dbc3bd33dfe11f9b33a68b9e0a1beff27e6d90eb569f4755
7
+ data.tar.gz: 8a4d6ea6368b5d4d09ac2855057e109f5f7dd8512b4414359f21909bb32c2238b7559308819673789d652420b762320f92bac8c2d4d3e4bbc9cfc9384bd67870
@@ -10,5 +10,4 @@
10
10
  // Read Sprockets README (https://github.com/sstephenson/sprockets#sprockets-directives) for details
11
11
  // about supported directives.
12
12
  //
13
- //= require scrivito_advanced_editors
14
13
  //= require_tree ./scrivito_section_widgets
@@ -42,7 +42,6 @@ function set_dimension(images) {
42
42
  });
43
43
  }
44
44
 
45
-
46
45
  function set_background_positions(images) {
47
46
  $.each(images, function(i, image) {
48
47
  set_background_position(image);
@@ -1,4 +1,3 @@
1
1
  /*
2
2
  *= require_tree ./scrivito_section_widgets
3
- *= require scrivito_advanced_editors
4
3
  */
@@ -0,0 +1,11 @@
1
+ .scrivito_section_content_widget.section_padding_small {
2
+ padding: 20px 0;
3
+ }
4
+
5
+ .scrivito_section_content_widget.section_padding_medium {
6
+ padding: 40px 0;
7
+ }
8
+
9
+ .scrivito_section_content_widget.section_padding_large {
10
+ padding: 60px 0;
11
+ }
@@ -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(class_name, attribute)
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
- <%= render 'scrivito_advanced_editors/color_picker', widget: widget, attribute: :background_color %>
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>
@@ -3,7 +3,7 @@
3
3
  <% end %>
4
4
 
5
5
  <%= scrivito_details_for 'Speed' do %>
6
- <%= scrivito_toggle_button_editor(widget, :speed) %>
6
+ <%= scrivito_tag(:div, widget, :speed) %>
7
7
  <% end %>
8
8
 
9
9
  <%= scrivito_details_for 'Height' do %>
@@ -1,5 +1,3 @@
1
- require 'scrivito_advanced_editors'
2
-
3
1
  module ScrivitoSectionWidgets
4
2
  class Engine < ::Rails::Engine
5
3
  isolate_namespace ScrivitoSectionWidgets
@@ -1,3 +1,3 @@
1
1
  module ScrivitoSectionWidgets
2
- VERSION = "0.0.19"
2
+ VERSION = "0.90.0"
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: 0.0.19
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-08-06 00:00:00.000000000 Z
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: scrivito_sdk
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/bootstrap_sectionize.css
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
@@ -1,3 +0,0 @@
1
- .navbar {
2
- margin-bottom: 0 !important;
3
- }