scrollytelling-pageflow-navigation 1.2.1 → 1.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 34f6400765c104eafa6020d23c0c9cf92e3633b0
4
- data.tar.gz: c264c243edb692e4e4277223f9598c47f9f2497d
3
+ metadata.gz: bb7e4d0244473cd72d596f0865b72ec8cae5a948
4
+ data.tar.gz: 464585523255f4b70f88b1f7e40f3a1387380bd5
5
5
  SHA512:
6
- metadata.gz: a3c899280d045dbf934a3c46c08c623136b50b67767217ff18e24f7651763278b1d81861c77f4aa6734692adfffa99b8fcf55897910abd94be46a37a5847e6bd
7
- data.tar.gz: 4c66189298313b7aa9c343fdad77441071099e33aa47ae5415436974bd73cc84fcff37f60b99cd8030e82db94b323da8f06a4070770c5fb06065de9eaf4bfec0
6
+ metadata.gz: 3332a79d30f046adbbe3c45bca324ec03d0d083a71b61e1c0acc59b14aa53b63f03e596aa6d73e0ed28471b3c385acdaa042c68abacd2a814c20f084020820a9
7
+ data.tar.gz: 3ecd13ee19f760ef66c30eb6df3e41e3ae9fe26657770ad018d04d94ec9b6b4cad9b1ff14af5cae3f0ecc97b1715e611df7310daf2f16138128fc1ddc829c2f8
@@ -5,5 +5,11 @@ pageflow.widgetTypes.register('scrollytelling_pageflow_navigation', {
5
5
  element.facebookSharing();
6
6
  element.twitterSharing();
7
7
  element.audioControl();
8
+
9
+ // hacky: if the entry URL matches 'onsite', push onsite class on the navigation.
10
+ // this allows us to hide the sharing widgets for onsite productions.
11
+ if($('head link[href*="onsite"]')) {
12
+ element.addClass('onsite');
13
+ }
8
14
  }
9
15
  });
@@ -36,11 +36,9 @@ ul.scrollytelling-options {
36
36
  }
37
37
  }
38
38
  }
39
-
40
39
  }
41
40
 
42
41
  ul.scrollytelling-sharing {
43
-
44
42
  position: absolute;
45
43
  top: 2%;
46
44
  right: 2%;
@@ -57,11 +55,13 @@ ul.scrollytelling-sharing {
57
55
 
58
56
  #share-tw:before { content: "\f099"; }
59
57
  #share-fb:before { content: "\f082"; }
58
+ }
60
59
 
60
+ .onsite ul.scrollytelling-sharing {
61
+ display: none;
61
62
  }
62
63
 
63
64
  ul.scrollytelling-options {
64
-
65
65
  position: absolute;
66
66
  bottom: 2%;
67
67
  right: 2%;
@@ -71,5 +71,4 @@ ul.scrollytelling-options {
71
71
 
72
72
  .audio-playing:before { content: "\f028"; }
73
73
  .audio-muted:before { content: "\f026"; }
74
-
75
74
  }
@@ -1,7 +1,7 @@
1
1
  module Scrollytelling
2
2
  module Pageflow
3
3
  module Navigation
4
- VERSION = "1.2.1"
4
+ VERSION = "1.3.0"
5
5
  end
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: scrollytelling-pageflow-navigation
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.1
4
+ version: 1.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Joost Baaij
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2016-06-29 00:00:00.000000000 Z
11
+ date: 2016-07-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: pageflow
@@ -134,7 +134,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
134
134
  version: '0'
135
135
  requirements: []
136
136
  rubyforge_project:
137
- rubygems_version: 2.2.2
137
+ rubygems_version: 2.4.8
138
138
  signing_key:
139
139
  specification_version: 4
140
140
  summary: Replace Pageflow navigation with Scrollytelling navigation