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 +4 -4
- data/README.md +2 -2
- data/app/assets/javascripts/scrivito_accordion_widget.js +3 -2
- data/app/assets/stylesheets/scrivito_accordion_widget.css.scss +9 -2
- data/app/views/accordion_panel_widget/details.html.erb +3 -3
- data/lib/scrivito_accordion_widget/version.rb +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: a4d6e71174afbc3b94c359bf62500b312023fa34
|
4
|
+
data.tar.gz: 2876d4cc55ac3e6bb2f594f42e553abc246ad5c8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
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
|
-
|
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
|
-
|
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: #
|
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-
|
1
|
+
<div class="scrivito-title-details">
|
2
2
|
<%= scrivito_tag :h4, widget, :title %>
|
3
|
-
<%= link_to '(details)', '#', 'data-scrivito-
|
4
|
-
<div class="scrivito-
|
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 %>
|
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.
|
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-
|
11
|
+
date: 2015-07-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|