scrivito_tabbed_content_widget 0.70.1 → 0.70.2

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: 7cdc32b392f09ada3cd878a21f8e63fd9be34b38
4
- data.tar.gz: 9332cfb6c3c1ca5d142a4c0dc33d6ec5d3a51f6b
3
+ metadata.gz: 9a0f6ee340762afd2228fdc7f33d312648eed618
4
+ data.tar.gz: 67b493daad18acfeb60a4269e9623383aa634e5a
5
5
  SHA512:
6
- metadata.gz: 0a0401b009163d51af7c44ff6994bccbb83a8b1043b19f501de195472ea559d45737e8c8bcd4fe928a951bc4687868cbe76104437dd65c945c7329ceaa2bbe51
7
- data.tar.gz: 2b36649bd1febc36cffd7f165746aade197c532e4a0bc556458841e0cd9cd628774b40739ae2de55302321eeff1c64b25105808f6a606d8b6e77cb95f6c45d31
6
+ metadata.gz: 2925a382e8dbb15d6216b7f55c383619857c56bb0a04fdecdf22873462abd835e67f5dce4ba40f2fba8ffeaecf6e58452f1e061be3937b63a4936a80af5ce4bc
7
+ data.tar.gz: 178cf293e95f18c1e0bc2cbae9eeef5b4b12e97b82531360a30dfeeb9afd5929fc114e520d56adcf9d676a20e5936d2d6d7fc20595081bd0ff26bd0a68f94bd6
data/README.md CHANGED
@@ -8,14 +8,6 @@ Add the gem to your Gemfile:
8
8
 
9
9
  gem 'scrivito_tabbed_content_widget'
10
10
 
11
- Add this line to your applications stylesheet manifest
12
-
13
- *= require scrivito_tabbed_content_widget
14
-
15
- Add this line to your applications javascript manifest
16
-
17
- //= require scrivito_tabbed_content_widget
18
-
19
11
  ## License
20
12
 
21
13
  Copyright (c) 2009 - 2015 Infopark AG (http://www.infopark.com)
@@ -1,14 +1,16 @@
1
1
  <div class="scrivito-tab-group">
2
- <div class="scrivito-tab-titles">
2
+ <ul class="nav nav-tabs" role="tablist">
3
3
  <% widget.tabs.each_with_index do |tab, i| %>
4
- <div class="<%= tab.classes(i) %>">
5
- <%= scrivito_value tab.title %>
6
- </div>
4
+ <li role="presentation" class="<%= i == 0 ? 'active' : '' %>">
5
+ <a href="#tab-<%= widget.id %>-<%= i %>" aria-controls="home" role="tab" data-toggle="tab" class="<%= tab.background_color %>">
6
+ <%= scrivito_value tab.title %>
7
+ </a>
8
+ </li>
7
9
  <% end %>
8
10
  </div>
9
- <div class="scrivito-tab-contents">
11
+ <div class="tab-content">
10
12
  <% widget.tabs.each_with_index do |tab, i| %>
11
- <%= scrivito_tag :div, tab, :content, class: "#{tab.background_color} scrivito-tab-content #{'scrivito-tab-active' if i == 0}" %>
13
+ <%= scrivito_tag :div, tab, :content, id: "tab-#{widget.id}-#{i}", class: "#{tab.background_color} tab-pane #{'active' if i == 0}" %>
12
14
  <% end %>
13
15
  </div>
14
16
  </div>
@@ -1,3 +1,3 @@
1
1
  module ScrivitoTabbedContentWidget
2
- VERSION = "0.70.1"
2
+ VERSION = "0.70.2"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: scrivito_tabbed_content_widget
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.70.1
4
+ version: 0.70.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Scrivito
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-09-14 00:00:00.000000000 Z
11
+ date: 2015-09-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: scrivito
@@ -63,8 +63,6 @@ files:
63
63
  - README.md
64
64
  - Rakefile
65
65
  - app/assets/images/scrivito_tabbed_content_widget/widget_preview_tabbed.png
66
- - app/assets/javascripts/scrivito_tabbed_content_widget.js
67
- - app/assets/stylesheets/scrivito_tabbed_content_widget.css
68
66
  - app/models/tabbed_content_tab_widget.rb
69
67
  - app/models/tabbed_content_widget.rb
70
68
  - app/views/tabbed_content_tab_widget/details.html.erb
@@ -1,21 +0,0 @@
1
- (function($, App) {
2
- 'use strict';
3
-
4
- $(function() {
5
- scrivito.on('content', function(content) {
6
- $(content).find('.scrivito-tab-group').each(function(i, tab_group) {
7
- tab_group = $(tab_group);
8
- tab_group.find('.scrivito-tab-title').each(function(i, tab_title) {
9
- tab_title = $(tab_title);
10
- tab_title.click(function() {
11
- tab_group.find('.scrivito-tab-title').removeClass('scrivito-tab-active');
12
- tab_title.addClass('scrivito-tab-active');
13
- tab_group.find('.scrivito-tab-content').removeClass('scrivito-tab-active');
14
- tab_group.find('.scrivito-tab-content').eq(tab_title.index())
15
- .addClass('scrivito-tab-active');
16
- });
17
- });
18
- });
19
- });
20
- });
21
- })(jQuery, this);
@@ -1,47 +0,0 @@
1
- .scrivito-tab-group .scrivito-tab-titles:before,
2
- .scrivito-tab-group .scrivito-tab-titles:after {
3
- content: " ";
4
- display: table;
5
- }
6
- .scrivito-tab-group .scrivito-tab-titles:after {
7
- clear: both;
8
- }
9
-
10
- .scrivito-tab-group .scrivito-tab-titles .scrivito-tab-title {
11
- float: left;
12
- padding: 10px 20px;
13
- background: transparent;
14
- cursor: pointer;
15
- margin-right: 2px;
16
- }
17
-
18
- .scrivito-tab-group .scrivito-tab-titles .scrivito-tab-title:hover {
19
- background: whitesmoke;
20
- }
21
-
22
- .scrivito-tab-group .scrivito-tab-titles .scrivito-tab-title.scrivito-tab-active {
23
- background: #fff;
24
- box-shadow: -2px -2px 5px -2px rgba(0,0,0,0.1),2px -2px 5px -2px rgba(0,0,0,0.1);
25
- }
26
-
27
- .scrivito-tab-group .scrivito-tab-contents {
28
- background-color: #fff;
29
- box-shadow: 0 0 5px rgba(0,0,0,0.1);
30
- min-height: 100px!important;
31
- width: 100%;
32
- }
33
-
34
- .scrivito-tab-group .scrivito-tab-contents .scrivito-tab-content {
35
- display: none;
36
- padding: 20px;
37
- }
38
-
39
- .scrivito-tab-group .scrivito-tab-contents .scrivito-tab-content.scrivito-tab-active {
40
- display: block;
41
- }
42
-
43
- @media (max-width: 600px) {
44
- .scrivito-tab-group .scrivito-tab-titles .scrivito-tab-title {
45
- width: 100%;
46
- }
47
- }