scrivito_accordion_widget 1.0.9 → 1.0.10

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: 1dca34b6bf305573c5e0a3c60a7e49a6e595df31
4
- data.tar.gz: 05bf5f62784514f1b524738eb1a9b68b60fbd9dc
3
+ metadata.gz: a4d6e71174afbc3b94c359bf62500b312023fa34
4
+ data.tar.gz: 2876d4cc55ac3e6bb2f594f42e553abc246ad5c8
5
5
  SHA512:
6
- metadata.gz: 4c8750ea96514bb26a529af8c6f89e7ef3921a6f94a7e4f63aa32aff91ebcfe36385b20585d65a27810915a21f79903f8431a9865ee56890eead9413f5cb4f79
7
- data.tar.gz: e56e0ef6aec00165b44bbae3000e1db262f0743e9fd730e8bae15ae0199082a3d9455cfaa9b6e22238bc55375dcb6d012080f4e383ac25d7450b738f56391acd
6
+ metadata.gz: c0cd8b70a5d1b4c50797b717174a740d4402f6f7fa3d41060b74510db267b9e5c74dcb09008c43a9188a4fb11b29018fdd2f3dd7671169656f839980cac51882
7
+ data.tar.gz: 1e7dfdf462bf10e586e01a14182dc00b3833ead3b68528a19548999c2aaac6d4d93ddf23d5d9dfd90d280eae801f667e02261abb3c049c238db6cc0633da6402
data/README.md CHANGED
@@ -4,7 +4,7 @@
4
4
 
5
5
  ## Installation
6
6
 
7
- A Widget for Scrivito for an accordion.
7
+ A Widget for Scrivito to add an accordion.
8
8
 
9
9
  ## Installation
10
10
 
@@ -18,7 +18,7 @@ Than add to your stylesheet manifest:
18
18
 
19
19
  Than add to your Javascript manifest:
20
20
 
21
- *//= require scrivito_accordion_widget
21
+ //= require scrivito_accordion_widget
22
22
 
23
23
  ## Changelog
24
24
  See [Changelog](https://github.com/Scrivito/scrivito_accordion_widget/blob/master/CHANGELOG.md) for more
@@ -9,9 +9,10 @@
9
9
  var accordion_title = $(accordion_title);
10
10
  accordion_title.click(function() {
11
11
  accordion_group.find('.scrivito-accordion-title').removeClass('scrivito-accordion-active');
12
+ accordion_group.find('.scrivito-accordion-content').slideUp(500);
13
+
12
14
  accordion_title.addClass('scrivito-accordion-active');
13
- accordion_group.find('.scrivito-accordion-content').removeClass('scrivito-accordion-active');
14
- accordion_title.next().addClass('scrivito-accordion-active');
15
+ accordion_title.next().slideDown(500);
15
16
  });
16
17
  });
17
18
  });
@@ -1,16 +1,23 @@
1
1
  .scrivito-accordion-group {
2
+ box-shadow: 0 0 3px rgba(0,0,0,0.3);
3
+ border-radius: 5px;
4
+ overflow: hidden;
2
5
  .scrivito-accordion-title {
3
- background-color: #fff;
4
- padding: 10px;
6
+ background-color: #eee;
7
+ padding: 15px 10px;
5
8
  font-size: 14px;
6
9
  line-height: 14px;
7
10
  cursor: pointer;
8
11
  &.scrivito-accordion-active {
9
12
  background-color: #ddd;
10
13
  }
14
+ &:hover {
15
+ background-color: #ccc;
16
+ }
11
17
  }
12
18
  .scrivito-accordion-content {
13
19
  display: none;
20
+ padding: 10px;
14
21
  }
15
22
  .scrivito-accordion-content.scrivito-accordion-active {
16
23
  display: block;
@@ -1,7 +1,7 @@
1
- <div class="scrivito-tab-title-details">
1
+ <div class="scrivito-title-details">
2
2
  <%= scrivito_tag :h4, widget, :title %>
3
- <%= link_to '(details)', '#', 'data-scrivito-tab-toggle-details' => widget.id %>
4
- <div class="scrivito-tab-details-<%= widget.id %>">
3
+ <%= link_to '(details)', '#', 'data-scrivito-toggle-details' => widget.id %>
4
+ <div class="scrivito-details-<%= widget.id %>">
5
5
  <div>
6
6
  <b>Background Color</b>
7
7
  <%= render 'scrivito_advanced_editors/color_picker', widget: widget, attribute: :background_color %>
@@ -1,3 +1,3 @@
1
1
  module ScrivitoAccordionWidget
2
- VERSION = "1.0.9"
2
+ VERSION = "1.0.10"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: scrivito_accordion_widget
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.9
4
+ version: 1.0.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - Scrivito
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-06-24 00:00:00.000000000 Z
11
+ date: 2015-07-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler