scrivito_slick_slider_widget 0.66.1 → 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: 3d95796e1245e8c162a08a3488cfc9efaa44c42b
4
- data.tar.gz: 74282324a925e197468e51a525e1122241e91aa6
3
+ metadata.gz: f548bc9a88a6edb778bf73d5c2e83998d7354e4e
4
+ data.tar.gz: 0fa3fe7a177b1604448b8b44924ddc0721360526
5
5
  SHA512:
6
- metadata.gz: 6e92021846e8aee0deeaa8116ba7503f3f46e620a43f6184f8bf750f8469941b64cd59afe6f50214b32a3eb6ff1dfd1851b30a016b281564cd9c328aecb533a6
7
- data.tar.gz: 1a526ddfb5912d77dabe1357c7b25b3ee00cd5341040ffdac930cb057b0969087b3c8d057d25345e9e454e555aaeb499fb6d62dfebdc9be5b5e723e40e31a582
6
+ metadata.gz: da8f898130c6905c0cbee1571b6a1713f426202b39e407529e87021c809f477fcb86640557cca6595d4954d9ce34b163e9753ddcd0d69d79eb1ea429a8b802c3
7
+ data.tar.gz: 7f91cabe55ddc74bb5757cefcf874c40a2092cbe12fc0e5eeed30f66eb0d6368d64e159462c580d8003f5b3789149bdb20656b244d10660a9b2874d8764cd43a
data/README.md CHANGED
@@ -10,14 +10,12 @@ Add the gem to your Gemfile
10
10
 
11
11
  Add to your javascript/application.js:
12
12
 
13
- //= require slick_slider_widget
13
+ //= require scrivito_slick_slider_widget
14
14
 
15
15
  Add to stylesheet/application.css:
16
16
 
17
17
  *= require scrivito_slick_slider_widget
18
18
 
19
- ## License
19
+ ## Customization
20
20
 
21
- Copyright (c) 2009 - 2014 Infopark AG (http://www.infopark.com)
22
-
23
- This software can be used and modified under the LGPL-3.0. Please refer to http://www.gnu.org/licenses/lgpl-3.0.html for the license text.
21
+ We recomment to use [Scrivito Advanced Editors](https://github.com/Scrivito/scrivito_advanced_editors) for best usability.
@@ -1,2 +1 @@
1
- //= require scrivito_advanced_editors
2
1
  //= require_tree ./scrivito_slick_slider_widget
@@ -1,7 +1,4 @@
1
- /* slick-slider
2
- ================================================== */
3
-
4
- .slick-slider { position: relative; display: block; padding:0 20px; box-sizing: border-box;
1
+ .slick-slider { position: relative; display: block; padding:0 30px; box-sizing: border-box;
5
2
  -moz-box-sizing: border-box; -webkit-touch-callout: none;
6
3
  -webkit-user-select: none; -khtml-user-select: none;
7
4
  -moz-user-select: none; -ms-user-select: none;
@@ -11,7 +8,7 @@
11
8
 
12
9
  .slick-list { position: relative; overflow: hidden; display: block; margin: 0; padding: 0; }
13
10
  .slick-list:focus { outline: none; }
14
- .slick-loading .slick-list { background: white image-url('ajax-loader.gif') center center no-repeat; }
11
+ .slick-loading .slick-list { background: white image_url('ajax-loader.gif') center center no-repeat; }
15
12
  .slick-list.dragging { cursor: pointer; cursor: hand; }
16
13
 
17
14
  .slick-slider .slick-list, .slick-track, .slick-slide, .slick-slide img {
@@ -25,8 +22,21 @@
25
22
  .slick-track:after { clear: both; }
26
23
  .slick-loading .slick-track { visibility: hidden; }
27
24
 
28
- .slick-slide { float: left; height: 100%; min-height: 1px; display: none; }
29
- .slick-slide img { display: block; width:100px; height:100px; border-radius:50px; overflow:hidden; margin:0 auto;}
25
+ .slick-slide .slider-image-wrapper { height: 100px; }
26
+
27
+ .slick-slide { float: left; height:100px; min-height: 1px; display: none; margin: 10px; background:#fff; box-shadow:0 0 3px 1px rgba(0, 0, 0, 0.1); position: relative;}
28
+ .slick-slide img {
29
+ min-height: auto!important;
30
+ overflow: hidden;
31
+ margin: 0 auto;
32
+ display: block;
33
+ width: 100px;
34
+ height: auto;
35
+ border-radius: 0;
36
+ position: relative;
37
+ top: 50%;
38
+ transform: translateY(-50%);
39
+ }
30
40
  .slick-slide.slick-loading img { display: none; }
31
41
  .slick-slide.dragging img { pointer-events: none; }
32
42
  .slick-initialized .slick-slide { display: block; }
@@ -36,33 +46,32 @@
36
46
  /* Arrows */
37
47
  .slick-prev, .slick-next { position: absolute; display: block; height: 40px; width: 40px;
38
48
  line-height: 40px; font-size: 0; cursor: pointer; background: transparent;
39
- color: transparent; top: 50%; margin-top: -20px; padding: 0; border: none; outline: none;
49
+ color: transparent; top: 50%; margin-top: -27px; padding: 0; border: none; outline: none;
40
50
  }
41
51
  .slick-prev:hover, .slick-prev:focus, .slick-next:hover, .slick-next:focus { outline: none; background: transparent; color: transparent; }
42
52
  .slick-prev:hover:before, .slick-prev:focus:before, .slick-next:hover:before, .slick-next:focus:before { opacity: 1; }
43
53
  .slick-prev.slick-disabled:before, .slick-next.slick-disabled:before { opacity: 0.25; }
44
54
 
45
55
  .slick-prev:before, .slick-next:before {
46
- font: normal normal normal 14px/1 FontAwesome;
56
+ font-family: FontAwesome;
57
+ font-weight: normal;
58
+ font-style: normal;
47
59
  text-decoration: inherit; color:#aaa;
48
- font-size:33px; line-height: 1; opacity: 0.5; text-align:center;
60
+ font-size:20px; line-height: 1; opacity: 0.5; text-align:center;
49
61
  vertical-align: middle; line-height: inherit;
50
62
  -webkit-font-smoothing: antialiased;
51
63
  -moz-osx-font-smoothing: grayscale;
52
64
  }
53
65
 
54
- .slick-prev { left: -10px; }
55
- .slick-prev:before { content: "\f104"; }
66
+ .slick-prev { left: -5px; }
67
+ .slick-prev:before { content: "\f053"; }
56
68
 
57
- .slick-next { right: -10px; }
58
- .slick-next:before { content: "\f105"; }
69
+ .slick-next { right: -5px; }
70
+ .slick-next:before { content: "\f054"; }
59
71
 
60
- /* Dots */
61
- .slick-slider { margin-bottom: 20px; }
62
-
63
- .slick-dots { position: absolute; bottom: -45px; list-style: none; display: block; text-align: center; padding: 0; width: 100%; }
72
+ .slick-dots { list-style: none; display: block; text-align: center; padding: 0; width: 100%; margin: 10px 0 0;}
64
73
  .slick-dots li { position: relative; display: inline-block; height: 20px; width: 20px; margin: 0 5px; padding: 0; cursor: pointer; }
65
- .slick-dots li button { border: 0; background: #fff; display: block;
74
+ .slick-dots li button { border: 0; background: #eee; display: block;
66
75
  height: 7px; width: 7px; outline: none; line-height: 0;
67
76
  font-size: 0; color: transparent; padding: 0; cursor: pointer;
68
77
  border-radius:50%;
@@ -71,6 +80,4 @@
71
80
  .slick-dots li button:hover:before, .slick-dots li button:focus:before { opacity: 1; }
72
81
  .slick-dots li button:before { position: absolute; top: 0; left: 0; content: ""; width: 20px; height: 20px;
73
82
  font-size: 6px; line-height: 20px; text-align: center; color: black; opacity: 0.25; }
74
- .slick-dots li.slick-active button { background: #9ec7ac; }
75
-
76
- .slider .h4 { text-align:center;}
83
+ .slick-dots li.slick-active button { background: #33312d; }
@@ -1,4 +1,3 @@
1
1
  /*
2
- *= require scrivito_advanced_editors
3
2
  *= require_tree ./scrivito_slick_slider_widget
4
3
  */
@@ -7,7 +7,7 @@
7
7
  </div>
8
8
  <div class="col-xs-8">
9
9
  <%= scrivito_details_for 'Choose a destination' do %>
10
- <%= scrivito_edit_link(widget, :link) %>
10
+ <%= scrivito_tag(:div, widget, :link) %>
11
11
  <% end %>
12
12
  <%= scrivito_details_for 'Alt-Attribute' do %>
13
13
  <p>(Make sure it has as much relevant information as possible)</p>
@@ -1,6 +1,6 @@
1
1
  <div class="details-view" data-scrivito-modal-size="large">
2
2
  <ul class="tab-list">
3
- <li class="active" data-panel-target="#edit-panels">
3
+ <li data-panel-target="#edit-panels" class="active">
4
4
  Panels
5
5
  </li>
6
6
  <li data-panel-target="#edit-settings">
@@ -9,7 +9,7 @@
9
9
  </ul>
10
10
 
11
11
  <div class="tab-panels">
12
- <div class="tab-panel active" id="edit-panels">
12
+ <div class="tab-panel" id="edit-panels">
13
13
  <%= scrivito_tag :div, widget, :panels %>
14
14
  </div>
15
15
  <div class="tab-panel" id="edit-settings">
@@ -26,13 +26,13 @@
26
26
  <%= scrivito_tag(:div, widget, :slides_to_show_mobile) %>
27
27
  <% end %>
28
28
  <%= scrivito_details_for 'Activate infinite Scrolling' do %>
29
- <%= scrivito_toggle_button_editor(widget, :infinite) %>
29
+ <%= scrivito_tag(:div, widget, :infinite) %>
30
30
  <% end %>
31
31
  <%= scrivito_details_for 'Show indicators' do %>
32
- <%= scrivito_toggle_button_editor(widget, :dots) %>
32
+ <%= scrivito_tag(:div, widget, :dots) %>
33
33
  <% end %>
34
34
  <%= scrivito_details_for 'Autoplay' do %>
35
- <%= scrivito_toggle_button_editor(widget, :autoplay) %>
35
+ <%= scrivito_tag(:div, widget, :autoplay) %>
36
36
  <h4>Speed for autoplay</h4>
37
37
  <%= scrivito_tag(:div, widget, :autoplay_speed) %>
38
38
  <% end %>
@@ -1,5 +1,3 @@
1
- require 'scrivito_advanced_editors'
2
-
3
1
  module ScrivitoSlickSliderWidget
4
2
  class Engine < ::Rails::Engine
5
3
  isolate_namespace ScrivitoSlickSliderWidget
@@ -1,3 +1,3 @@
1
1
  module ScrivitoSlickSliderWidget
2
- VERSION = "0.66.1"
2
+ VERSION = "0.90.0"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: scrivito_slick_slider_widget
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.66.1
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-24 00:00:00.000000000 Z
11
+ date: 2015-12-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: scrivito
@@ -24,20 +24,6 @@ dependencies:
24
24
  - - ">="
25
25
  - !ruby/object:Gem::Version
26
26
  version: 0.42.0
27
- - !ruby/object:Gem::Dependency
28
- name: scrivito_advanced_editors
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
27
  - !ruby/object:Gem::Dependency
42
28
  name: rake
43
29
  requirement: !ruby/object:Gem::Requirement
@@ -73,7 +59,6 @@ files:
73
59
  - app/helpers/scrivito_slick_slider_widget/application_helper.rb
74
60
  - app/models/slick_slider_panel_widget.rb
75
61
  - app/models/slick_slider_widget.rb
76
- - app/views/layouts/scrivito_slick_slider_widget/application.html.erb
77
62
  - app/views/slick_slider_panel_widget/details.html.erb
78
63
  - app/views/slick_slider_widget/add_new_panel.html.erb
79
64
  - app/views/slick_slider_widget/details.html.erb
@@ -1,14 +0,0 @@
1
- <!DOCTYPE html>
2
- <html>
3
- <head>
4
- <title>ScrivitoSlickSliderWidget</title>
5
- <%= stylesheet_link_tag "scrivito_slick_slider_widget/application", media: "all" %>
6
- <%= javascript_include_tag "scrivito_slick_slider_widget/application" %>
7
- <%= csrf_meta_tags %>
8
- </head>
9
- <body>
10
-
11
- <%= yield %>
12
-
13
- </body>
14
- </html>