pageflow-progress-navigation-bar 1.3.0 → 1.4.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 +4 -4
- data/CHANGELOG.md +6 -6
- data/app/assets/javascript/pageflow/progress_navigation_bar/widget.js +21 -3
- data/app/assets/stylesheets/pageflow/progress_navigation_bar.scss +8 -25
- data/app/assets/stylesheets/pageflow/progress_navigation_bar/horizontal.scss +1 -1
- data/app/assets/stylesheets/pageflow/progress_navigation_bar/themes/default.scss +12 -9
- data/app/assets/stylesheets/pageflow/progress_navigation_bar/themes/default/icons/icon_font.scss +1 -42
- data/app/assets/stylesheets/pageflow/progress_navigation_bar/themes/default/icons/sprite.scss +0 -24
- data/app/views/pageflow/progress_navigation_bar/_widget.html.erb +1 -1
- data/app/views/pageflow/progress_navigation_bar/widget/_bar_top.html.erb +5 -3
- data/app/views/pageflow/progress_navigation_bar/widget/_page.html.erb +1 -1
- data/lib/pageflow/progress_navigation_bar/version.rb +1 -1
- data/pageflow-progress-navigation-bar.gemspec +1 -1
- metadata +6 -13
- data/app/assets/stylesheets/pageflow/progress_navigation_bar/themes/default/share_box.scss +0 -9
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ca8ecb1fb0bb721ff0e1d1c49f8c0ccbfb44f02462873725f3f27df0e921b366
|
4
|
+
data.tar.gz: 3d641882476b2791607807319435f1ded2758f47e2395e5bb4066f510fbe4294
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bec65c88bebfedfde1a8306b95708f40589921c3b0297e5f1a2bc5931b6d2a75b171ef9f0c8e2fa3002be3398e17e83a2198ddf092eb375df64e728544a796b6
|
7
|
+
data.tar.gz: 83783405540ea359ca76172da6d924df7c4f9576db8c36bdd047badf14d5570b261d97d423d87206928027f791d2547edef8481f2addab43c2cae56e281a66a0
|
data/CHANGELOG.md
CHANGED
@@ -1,16 +1,16 @@
|
|
1
1
|
# CHANGELOG
|
2
2
|
|
3
|
-
### Version 1.
|
3
|
+
### Version 1.4.0
|
4
4
|
|
5
|
-
2019-
|
5
|
+
2019-05-20
|
6
6
|
|
7
|
-
[Compare changes](https://github.com/codevise/pageflow-progress-navigation-bar/compare/1-
|
7
|
+
[Compare changes](https://github.com/codevise/pageflow-progress-navigation-bar/compare/1-3-stable...v1.4.0)
|
8
8
|
|
9
|
+
- Support for configurable sharing providers
|
10
|
+
([#41](https://github.com/codevise/pageflow-progress-navigation-bar/pull/41))
|
9
11
|
- Remove redundant chapter headers from document outline
|
10
12
|
([#40](https://github.com/codevise/pageflow-progress-navigation-bar/pull/40))
|
11
|
-
- Include text in navigation bar links
|
12
|
-
([#39](https://github.com/codevise/pageflow-progress-navigation-bar/pull/39))
|
13
13
|
|
14
14
|
See
|
15
|
-
[1-
|
15
|
+
[1-3-stable branch](https://github.com/codevise/pageflow-progress-navigation-bar/blob/1-3-stable/CHANGELOG.md)
|
16
16
|
for previous changes.
|
@@ -44,6 +44,21 @@
|
|
44
44
|
}
|
45
45
|
},
|
46
46
|
|
47
|
+
_toggleChapterDisplay: function() {
|
48
|
+
var dots = $('.navigation_dots a', this.element),
|
49
|
+
chaptersInCurrentStoryLine;
|
50
|
+
|
51
|
+
chaptersInCurrentStoryLine = dots.filter(':not(.filtered)').get().map(function(pageLink) {
|
52
|
+
return $(pageLink).data('chapterId');
|
53
|
+
});
|
54
|
+
|
55
|
+
if (_.uniq(chaptersInCurrentStoryLine).length == 1) {
|
56
|
+
this.element.addClass('no_chapters');
|
57
|
+
} else {
|
58
|
+
this.element.removeClass('no_chapters');
|
59
|
+
}
|
60
|
+
},
|
61
|
+
|
47
62
|
_create: function() {
|
48
63
|
var overlays = this.element.find('.navigation_site_detail'),
|
49
64
|
that = this,
|
@@ -123,11 +138,11 @@
|
|
123
138
|
});
|
124
139
|
|
125
140
|
var shareBox = $('.navigation_share_box', this.element),
|
126
|
-
links = $('> a', shareBox);
|
141
|
+
links = $('.share_box_icons > a', shareBox);
|
127
142
|
shareBox.shareMenu({
|
128
143
|
subMenu: $('.sub_share', shareBox),
|
129
144
|
links: links,
|
130
|
-
insertAfter:
|
145
|
+
insertAfter: $('.share_box_icons'),
|
131
146
|
closeOnMouseLeaving: shareBox
|
132
147
|
});
|
133
148
|
|
@@ -221,7 +236,10 @@
|
|
221
236
|
scroller: scroller,
|
222
237
|
scrollToActive: true,
|
223
238
|
animationDuration: 400,
|
224
|
-
onFilterChange:
|
239
|
+
onFilterChange: function() {
|
240
|
+
that._resizeDots();
|
241
|
+
that._toggleChapterDisplay();
|
242
|
+
}
|
225
243
|
});
|
226
244
|
|
227
245
|
});
|
@@ -302,30 +302,6 @@ $progressbar-mobile-width: 14px;
|
|
302
302
|
}
|
303
303
|
}
|
304
304
|
|
305
|
-
.navigation_share_box {
|
306
|
-
$size: 28px;
|
307
|
-
width: 210px;
|
308
|
-
|
309
|
-
a {
|
310
|
-
@include float-start;
|
311
|
-
text-decoration: none;
|
312
|
-
padding: 0 15px 0 15px;
|
313
|
-
width: 39px;
|
314
|
-
|
315
|
-
p {
|
316
|
-
color: $nav-color;
|
317
|
-
margin-bottom: 0;
|
318
|
-
text-align: center;
|
319
|
-
}
|
320
|
-
|
321
|
-
.button {
|
322
|
-
width: $size;
|
323
|
-
height: $size;
|
324
|
-
margin: auto;
|
325
|
-
}
|
326
|
-
}
|
327
|
-
}
|
328
|
-
|
329
305
|
.navigation_credits_box {
|
330
306
|
min-width: 230px;
|
331
307
|
min-height: 4px;
|
@@ -478,7 +454,10 @@ $progressbar-mobile-width: 14px;
|
|
478
454
|
}
|
479
455
|
}
|
480
456
|
}
|
481
|
-
|
457
|
+
|
458
|
+
&.no_chapters ul.navigation_dots li.chapter_beginning a,
|
459
|
+
&.no_chapters ul.navigation_dots li a.in_active_chapter,
|
460
|
+
.scroller ul.navigation_dots li.chapter_beginning a.in_active_chapter {
|
482
461
|
background-color: $nav-dot-even;
|
483
462
|
|
484
463
|
&.active {
|
@@ -486,6 +465,10 @@ $progressbar-mobile-width: 14px;
|
|
486
465
|
}
|
487
466
|
}
|
488
467
|
|
468
|
+
&.no_chapters .navigation_site_detail .chapter {
|
469
|
+
display: none;
|
470
|
+
}
|
471
|
+
|
489
472
|
.navigation_menu_box {
|
490
473
|
&:before {
|
491
474
|
top: auto;
|
@@ -49,7 +49,6 @@ $nav-bg-color-transparent: $basic-background-color-transparent;
|
|
49
49
|
@import "./default/icons/icon_font";
|
50
50
|
@import "./default/icons/sprite";
|
51
51
|
@import "./default/menu_boxes";
|
52
|
-
@import "./default/share_box";
|
53
52
|
@import "./default/typography";
|
54
53
|
|
55
54
|
@if $progress-navigation-bar-icons == "sprite" {
|
@@ -155,7 +154,7 @@ $nav-bg-color-transparent: $basic-background-color-transparent;
|
|
155
154
|
}
|
156
155
|
|
157
156
|
@if not $progress-navigation-bar-display-share-button {
|
158
|
-
.navigation_menu.share {
|
157
|
+
.navigation_button_area .navigation_bar_buttons li.navigation_menu.share {
|
159
158
|
display: none;
|
160
159
|
}
|
161
160
|
}
|
@@ -186,6 +185,13 @@ $nav-bg-color-transparent: $basic-background-color-transparent;
|
|
186
185
|
}
|
187
186
|
}
|
188
187
|
|
188
|
+
&.without_sharing_button,
|
189
|
+
&.mobile_sharing_only {
|
190
|
+
.navigation_button_area .navigation_bar_buttons li.navigation_menu.share {
|
191
|
+
display: none;
|
192
|
+
}
|
193
|
+
}
|
194
|
+
|
189
195
|
.navigation_button_area .navigation_bar_buttons {
|
190
196
|
&:after {
|
191
197
|
background-color: $nav-bg-color-transparent;
|
@@ -198,12 +204,6 @@ $nav-bg-color-transparent: $basic-background-color-transparent;
|
|
198
204
|
&.js a.scroll_indicator {
|
199
205
|
background-image: image-url('pageflow/themes/default/scroll_indicator_sprite.png');
|
200
206
|
}
|
201
|
-
|
202
|
-
.navigation_share_box {
|
203
|
-
a {
|
204
|
-
text-align: center;
|
205
|
-
}
|
206
|
-
}
|
207
207
|
}
|
208
208
|
|
209
209
|
&.js .scroller:after {
|
@@ -250,8 +250,11 @@ $nav-bg-color-transparent: $basic-background-color-transparent;
|
|
250
250
|
img {
|
251
251
|
display: block;
|
252
252
|
}
|
253
|
+
}
|
253
254
|
|
254
|
-
|
255
|
+
&.no_chapters,
|
256
|
+
&.no_chapters.js {
|
257
|
+
.scroller ul.navigation_dots {
|
255
258
|
li.chapter_beginning a, li a.in_active_chapter, li.chapter_beginning a.in_active_chapter {
|
256
259
|
background-color: $progress-navigation-bar-inactive-chapter-color;
|
257
260
|
|
data/app/assets/stylesheets/pageflow/progress_navigation_bar/themes/default/icons/icon_font.scss
CHANGED
@@ -4,10 +4,7 @@
|
|
4
4
|
|
5
5
|
$button-icon-color,
|
6
6
|
$active-button-icon-color,
|
7
|
-
$deactivated-button-icon-color
|
8
|
-
|
9
|
-
$share-icon-color: $widget-text-color,
|
10
|
-
$active-share-icon-color: $main-color
|
7
|
+
$deactivated-button-icon-color
|
11
8
|
) {
|
12
9
|
.navigation_button_area .navigation_bar_buttons {
|
13
10
|
|
@@ -135,44 +132,6 @@
|
|
135
132
|
@include fa-info-icon;
|
136
133
|
}
|
137
134
|
}
|
138
|
-
|
139
|
-
.share_google,
|
140
|
-
.share_facebook,
|
141
|
-
.share_twitter {
|
142
|
-
font-size: 1.5em;
|
143
|
-
&:before {
|
144
|
-
font-family: "FontAwesome";
|
145
|
-
color: $share-icon-color;
|
146
|
-
text-shadow: none;
|
147
|
-
}
|
148
|
-
}
|
149
|
-
|
150
|
-
.share_google {
|
151
|
-
@include fa-google-plus-icon;
|
152
|
-
}
|
153
|
-
.share_facebook {
|
154
|
-
@include fa-facebook-icon;
|
155
|
-
}
|
156
|
-
.share_twitter {
|
157
|
-
@include fa-twitter-icon;
|
158
|
-
}
|
159
|
-
|
160
|
-
.navigation_share_box {
|
161
|
-
a.active,
|
162
|
-
a:hover {
|
163
|
-
p {
|
164
|
-
color: $active-share-icon-color;
|
165
|
-
}
|
166
|
-
|
167
|
-
.share_google,
|
168
|
-
.share_facebook,
|
169
|
-
.share_twitter {
|
170
|
-
&:before {
|
171
|
-
color: $active-share-icon-color;
|
172
|
-
}
|
173
|
-
}
|
174
|
-
}
|
175
|
-
}
|
176
135
|
}
|
177
136
|
|
178
137
|
.volume-control:before,
|
data/app/assets/stylesheets/pageflow/progress_navigation_bar/themes/default/icons/sprite.scss
CHANGED
@@ -66,30 +66,6 @@
|
|
66
66
|
@include pageflow-sprite-icon-credits($target: ".button");
|
67
67
|
}
|
68
68
|
|
69
|
-
.share.google {
|
70
|
-
@include pageflow-sprite-icon-google($offset: -5px, $target: ".button");
|
71
|
-
|
72
|
-
&.active {
|
73
|
-
@include pageflow-sprite-icon-google("active", $offset: -5px, $target: ".button");
|
74
|
-
}
|
75
|
-
}
|
76
|
-
|
77
|
-
.share.twitter {
|
78
|
-
@include pageflow-sprite-icon-twitter($offset: -5px, $target: ".button");
|
79
|
-
|
80
|
-
&.active {
|
81
|
-
@include pageflow-sprite-icon-twitter("active", $offset: -5px, $target: ".button");
|
82
|
-
}
|
83
|
-
}
|
84
|
-
|
85
|
-
.share.facebook {
|
86
|
-
@include pageflow-sprite-icon-facebook($offset: -5px, $target: ".button");
|
87
|
-
|
88
|
-
&.active {
|
89
|
-
@include pageflow-sprite-icon-facebook("active", $offset: -5px, $target: ".button");
|
90
|
-
}
|
91
|
-
}
|
92
|
-
|
93
69
|
.volume-control {
|
94
70
|
&:before,
|
95
71
|
&:after {
|
@@ -5,7 +5,7 @@
|
|
5
5
|
<%= render 'pageflow/progress_navigation_bar/widget/bar_top', :entry => entry %>
|
6
6
|
</div>
|
7
7
|
<div class="scroller">
|
8
|
-
<ul class="navigation_dots
|
8
|
+
<ul class="navigation_dots">
|
9
9
|
<%= render :partial => 'pageflow/progress_navigation_bar/widget/page',
|
10
10
|
:collection => entry.pages.displayed_in_navigation,
|
11
11
|
:locals => {:image_style => :navigation_thumbnail_small, :image_width => 85, :chapters_count => entry.chapters.count} %>
|
@@ -38,9 +38,11 @@
|
|
38
38
|
</li>
|
39
39
|
<li class="navigation_menu share" tabindex="2">
|
40
40
|
<div class="navigation_menu_box navigation_share_box">
|
41
|
-
|
42
|
-
|
43
|
-
|
41
|
+
<div class="share_box_icons">
|
42
|
+
<% entry.active_share_providers.each do |provider| %>
|
43
|
+
<%= render "pageflow/entries/share_menu/#{provider}_link", entry: entry %>
|
44
|
+
<% end %>
|
45
|
+
</div>
|
44
46
|
<div class="sub_share">
|
45
47
|
<a tabindex="2" target="_blank"><%= t('pageflow.public.share_this_entry') %></a>
|
46
48
|
<a tabindex="2" target="_blank"><%= t('pageflow.public.share_this_page') %></a>
|
@@ -7,8 +7,8 @@
|
|
7
7
|
<div class="chapter">
|
8
8
|
<span class="chapter_number"><%= "#{I18n.t('pageflow.public.chapter')} #{page.chapter.position + 1}" %></span>
|
9
9
|
<span class="chapter_title"><%= page.chapter.title %></span>
|
10
|
+
<hr />
|
10
11
|
</div>
|
11
|
-
<hr />
|
12
12
|
<% end %>
|
13
13
|
<%= page.title %>
|
14
14
|
<div class="thumbnail is_<%= page.template %>">
|
@@ -18,7 +18,7 @@ Gem::Specification.new do |spec|
|
|
18
18
|
|
19
19
|
spec.required_ruby_version = '~> 2.1'
|
20
20
|
|
21
|
-
spec.add_runtime_dependency 'pageflow',
|
21
|
+
spec.add_runtime_dependency 'pageflow', '~> 14.1.x'
|
22
22
|
spec.add_runtime_dependency 'pageflow-public-i18n', '~> 1.0'
|
23
23
|
|
24
24
|
spec.add_development_dependency 'bundler', '~> 1.0'
|
metadata
CHANGED
@@ -1,35 +1,29 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: pageflow-progress-navigation-bar
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.4.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Codevise Solutions Ltd.
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-
|
11
|
+
date: 2019-05-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: pageflow
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- - "
|
18
|
-
- !ruby/object:Gem::Version
|
19
|
-
version: 12.5.x
|
20
|
-
- - "<"
|
17
|
+
- - "~>"
|
21
18
|
- !ruby/object:Gem::Version
|
22
|
-
version:
|
19
|
+
version: 14.1.x
|
23
20
|
type: :runtime
|
24
21
|
prerelease: false
|
25
22
|
version_requirements: !ruby/object:Gem::Requirement
|
26
23
|
requirements:
|
27
|
-
- - "
|
28
|
-
- !ruby/object:Gem::Version
|
29
|
-
version: 12.5.x
|
30
|
-
- - "<"
|
24
|
+
- - "~>"
|
31
25
|
- !ruby/object:Gem::Version
|
32
|
-
version:
|
26
|
+
version: 14.1.x
|
33
27
|
- !ruby/object:Gem::Dependency
|
34
28
|
name: pageflow-public-i18n
|
35
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -116,7 +110,6 @@ files:
|
|
116
110
|
- app/assets/stylesheets/pageflow/progress_navigation_bar/themes/default/icons/icon_font.scss
|
117
111
|
- app/assets/stylesheets/pageflow/progress_navigation_bar/themes/default/icons/sprite.scss
|
118
112
|
- app/assets/stylesheets/pageflow/progress_navigation_bar/themes/default/menu_boxes.scss
|
119
|
-
- app/assets/stylesheets/pageflow/progress_navigation_bar/themes/default/share_box.scss
|
120
113
|
- app/assets/stylesheets/pageflow/progress_navigation_bar/themes/default/typography.scss
|
121
114
|
- app/assets/stylesheets/pageflow/progress_navigation_bar/themes/default/widget_margin.scss
|
122
115
|
- app/assets/stylesheets/pageflow/progress_navigation_bar/vertical.scss
|