pageflow-progress-navigation-bar 1.0.0 → 1.1.0

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
- SHA1:
3
- metadata.gz: 002276bbe2f90573ae2dfb95e8529d2c231b247a
4
- data.tar.gz: 99d29481b7ce7f1a021ea4499ec84e8b1b9151fe
2
+ SHA256:
3
+ metadata.gz: 2211c725fc377e1c74bf90f3585b536fd53ddbd1405fd2015fd7573dadf0c435
4
+ data.tar.gz: 152b008820f8363bd824a77c56755a621e5a6b56efff6d576ca1c77373408ad2
5
5
  SHA512:
6
- metadata.gz: c53b695f177f52c602af08f1f2e9a619fddc8d3587c6bbcfd9e65caf86cfe0c4ec7be90c7a69c196abc61dae213b535ae2788f0a478693f3122fd03f160a9144
7
- data.tar.gz: 94dfb95d1da34586ea4f34b42a3a743e825659175dcadee5b889a31e37fcd2490ef9f5f897b996efba9fd7d7e7befdf52dae17b837dba3cafe5c9aa718afc7d9
6
+ metadata.gz: 2fb9dcb7d575f426c8ee0142946e0ee2a8f33328a8fae65a455ed4effcb05734e6ddbd3bccc630dd80e45e7e155e12e829c1f3cc7e9bd6a3c308a1901e91db9e
7
+ data.tar.gz: be3ac84d62a5919a7d43f016ef7a43f0907cae11d1c2f38fb0e8bc9594619314125ad760873d5bb73ef2ea1b2e6c779c00310d29618672f636ba8dd094a6a3a4
data/CHANGELOG.md CHANGED
@@ -1,13 +1,27 @@
1
1
  # CHANGELOG
2
2
 
3
- ### Version 1.0.0
3
+ ### Version 1.1.0
4
4
 
5
- 2017-08-11
5
+ 2018-12-10
6
6
 
7
- [Compare changes](https://github.com/codevise/pageflow-progress-navigation-bar/compare/0-x-stable...v1.0.0)
7
+ [Compare changes](https://github.com/codevise/pageflow-progress-navigation-bar/compare/1-0-stable...v1.1.0)
8
8
 
9
- None so far.
9
+ - Add support for Pageflow 13
10
+ ([#31](https://github.com/codevise/pageflow-progress-navigation-bar/pull/31))
11
+ - Use pageflow.navigationDirection on mobile
12
+ ([#33](https://github.com/codevise/pageflow-progress-navigation-bar/pull/33),
13
+ [#34](https://github.com/codevise/pageflow-progress-navigation-bar/pull/34))
14
+ - Add horizontal mobile variant
15
+ ([#32](https://github.com/codevise/pageflow-progress-navigation-bar/pull/32))
16
+ - Right to left layout support
17
+ ([#28](https://github.com/codevise/pageflow-progress-navigation-bar/pull/28))
18
+ - Chapter indicator color options
19
+ ([#30](https://github.com/codevise/pageflow-progress-navigation-bar/pull/30))
20
+ - Make widget-icon-font-options apply to buttons
21
+ ([#36](https://github.com/codevise/pageflow-progress-navigation-bar/pull/36))
22
+ - Fix position of unmute button in mobile variant
23
+ ([#35](https://github.com/codevise/pageflow-progress-navigation-bar/pull/35))
10
24
 
11
25
  See
12
- [0-5-stable branch](https://github.com/codevise/pageflow-progress-navigation-bar/blob/0-5-stable/CHANGELOG.md)
26
+ [1-0-stable branch](https://github.com/codevise/pageflow-progress-navigation-bar/blob/1-0-stable/CHANGELOG.md)
13
27
  for previous changes.
@@ -51,8 +51,8 @@
51
51
 
52
52
  this.element.addClass('js').append(overlays);
53
53
 
54
- this.element.toggleClass('horizontal', this.element.data('widget') === 'progress_navigation_bar_horizontal');
55
- this.element.toggleClass('vertical', this.element.data('widget') !== 'progress_navigation_bar_horizontal');
54
+ this.element.toggleClass('horizontal', !!useHorizontalVariant(this.element));
55
+ this.element.toggleClass('vertical', !useHorizontalVariant(this.element));
56
56
 
57
57
  $('a.navigation_top', this.element).topButton();
58
58
 
@@ -289,4 +289,10 @@
289
289
  });
290
290
  }
291
291
  });
292
+
293
+ function useHorizontalVariant(element) {
294
+ return element.data('widget') === 'progress_navigation_bar_horizontal' ||
295
+ (pageflow.navigationDirection &&
296
+ pageflow.navigationDirection.isHorizontal());
297
+ }
292
298
  }(jQuery));
@@ -50,12 +50,18 @@ $progressbar-mobile-width: 14px;
50
50
 
51
51
  @include pageflow-progress-mobile-variant {
52
52
  opacity: 0;
53
+ pointer-events: none;
53
54
  width: $progressbar-mobile-width;
54
55
  @include transition(opacity 0.4s ease 0.5s);
55
56
  @include transform(translateZ(0));
56
57
  -webkit-backface-visibility: hidden;
57
58
  }
58
59
 
60
+ &.show_on_mobile {
61
+ opacity: 1;
62
+ @include transition(opacity 0.4s ease);
63
+ }
64
+
59
65
  position: absolute;
60
66
  right: 0;
61
67
  top: 0;
@@ -159,11 +165,6 @@ $progressbar-mobile-width: 14px;
159
165
 
160
166
  &.hover, &:hover, &:focus, &.focus {
161
167
  overflow: visible;
162
- width: 122px;
163
-
164
- @include pageflow-progress-mobile-variant {
165
- width: $progressbar-mobile-width;
166
- }
167
168
 
168
169
  .navigation_button_area {
169
170
  width: 87px;
@@ -305,7 +306,7 @@ $progressbar-mobile-width: 14px;
305
306
  width: 210px;
306
307
 
307
308
  a {
308
- float: left;
309
+ @include float-start;
309
310
  text-decoration: none;
310
311
  padding: 0 15px 0 15px;
311
312
  width: 39px;
@@ -333,7 +334,7 @@ $progressbar-mobile-width: 14px;
333
334
  }
334
335
 
335
336
  a.legal, a.copy {
336
- float: left;
337
+ @include float-start;
337
338
  }
338
339
  }
339
340
 
@@ -418,24 +419,14 @@ $progressbar-mobile-width: 14px;
418
419
  top: 0;
419
420
  bottom: 0;
420
421
  right: 0;
421
- width: 30px;
422
422
  max-height: 100%;
423
423
  overflow: hidden;
424
424
  position: absolute;
425
425
  @include pageflow-progress-navigation-bar-transparent-background;
426
426
 
427
- @include pageflow-progress-mobile-variant {
428
- width: $progressbar-mobile-width;
429
- }
430
-
431
427
  ul {
432
428
  position: absolute;
433
429
 
434
- @include pageflow-progress-mobile-variant {
435
- right: 3px;
436
- width: 8px;
437
- }
438
-
439
430
  li {
440
431
  position: relative;
441
432
  @include box-sizing(border-box);
@@ -8,7 +8,12 @@ $thumbnail-small-width: 50px;
8
8
  width: 100%;
9
9
 
10
10
  @include pageflow-progress-mobile-variant {
11
- display: none;
11
+ height: $progressbar-mobile-width;
12
+ overflow: hidden;
13
+
14
+ .header_button {
15
+ display: none;
16
+ }
12
17
  }
13
18
 
14
19
  &:before {
@@ -82,6 +87,7 @@ $thumbnail-small-width: 50px;
82
87
  width: 100%;
83
88
 
84
89
  .volume-control {
90
+ direction: ltr;
85
91
  text-align: center;
86
92
  display: inline-block;
87
93
  margin: 30px 0 0 0;
@@ -213,15 +219,25 @@ $thumbnail-small-width: 50px;
213
219
  text-align: center;
214
220
  white-space: nowrap;
215
221
 
222
+
216
223
  li {
217
224
  width: 20px;
218
225
  height: 18px;
219
- margin-right: 1px;
226
+ @include margin-end(1px);
220
227
  display: inline-block;
221
228
  @include box-sizing(border-box);
222
229
 
223
230
  &:last-child {
224
- margin-right: 0;
231
+ @include margin-end(0);
232
+ }
233
+ }
234
+
235
+ @include pageflow-progress-mobile-variant {
236
+ width: 100%;
237
+ margin-top: -4px;
238
+
239
+ li {
240
+ height: 8px;
225
241
  }
226
242
  }
227
243
  }
@@ -15,20 +15,26 @@ $progress-navigation-bar-display-share-button: $navigation-display-share-button
15
15
  /// Display hide text menu button
16
16
  $progress-navigation-bar-display-hide-text-button: $navigation-display-hide-text-button !default;
17
17
 
18
- // Legacy
18
+ /// Chapter Indicator colors
19
19
 
20
- $nav-color: $main-color;
20
+ $progress-navigation-bar-active-page-color: $main-color !default;
21
21
 
22
- $nav-active-chapter: desaturate($main-color, 50%);
23
- $nav-active-page: $main-color;
22
+ $progress-navigation-bar-inactive-chapter-color: #9B9B9B !default;
24
23
 
25
- $nav-active-chapter-beginning: desaturate($main-color, 40%);
24
+ $progress-navigation-bar-chapter-beginning-color: #afafaf !default;
26
25
 
27
- $nav-hint-color: #A9A9A9 !default;
26
+ $progress-navigation-bar-active-chapter-color: desaturate($progress-navigation-bar-active-page-color, 50%) !default;
27
+
28
+ $progress-navigation-bar-active-chapter-beginning-color: desaturate($progress-navigation-bar-active-page-color, 40%) !default;
28
29
 
29
- $nav-chapter-beginning: #afafaf;
30
- $nav-dot-even: #9B9B9B;
31
- $nav-dot-odd: #afafaf;
30
+ /// @see $default-widget-icon-font-options
31
+ $progress-navigation-bar-icon-font-options: () !default;
32
+
33
+ // Legacy
34
+
35
+ $nav-color: $main-color;
36
+
37
+ $nav-hint-color: #A9A9A9 !default;
32
38
 
33
39
  $nav-bg-color: $basic-background-color;
34
40
  $bg-color: $nav-bg-color;
@@ -49,7 +55,9 @@ $nav-bg-color-transparent: $basic-background-color-transparent;
49
55
  @if $progress-navigation-bar-icons == "sprite" {
50
56
  @include progress-navigation-bar-icons-sprite;
51
57
  } @else {
52
- @include progress-navigation-bar-icons-icon-font;
58
+ @include progress-navigation-bar-icons-icon-font(
59
+ widget-icon-font-options($progress-navigation-bar-icon-font-options)...
60
+ );
53
61
  }
54
62
 
55
63
  .navigation_site_detail .thumbnail {
@@ -195,19 +203,6 @@ $nav-bg-color-transparent: $basic-background-color-transparent;
195
203
  a {
196
204
  text-align: center;
197
205
  }
198
-
199
- a.active,
200
- a:hover {
201
- p {
202
- color: $nav-color;
203
- }
204
-
205
- .share_google, .share_facebook, .share_twitter {
206
- &:before {
207
- color: $nav-color;
208
- }
209
- }
210
- }
211
206
  }
212
207
  }
213
208
 
@@ -222,33 +217,33 @@ $nav-bg-color-transparent: $basic-background-color-transparent;
222
217
  left: 0;
223
218
  height: 100%;
224
219
  width: 100%;
225
- background-color: $nav-dot-even;
220
+ background-color: $progress-navigation-bar-inactive-chapter-color;
226
221
  border-bottom: 1px solid $nav-bg-color-transparent;
227
222
  @include box-sizing(border-box);
228
223
 
229
224
  &.in_active_chapter {
230
- background-color: $nav-active-chapter;
225
+ background-color: $progress-navigation-bar-active-chapter-color;
231
226
  }
232
227
 
233
228
  &.active {
234
229
  cursor: default;
235
- background-color: $nav-active-page;
230
+ background-color: $progress-navigation-bar-active-page-color;
236
231
 
237
232
  img {
238
- border-left: 5px solid $nav-active-page;
233
+ border-left: 5px solid $progress-navigation-bar-active-page-color;
239
234
  }
240
235
  }
241
236
  }
242
237
 
243
238
  li.chapter_beginning a {
244
- background-color: $nav-chapter-beginning;
239
+ background-color: $progress-navigation-bar-chapter-beginning-color;
245
240
 
246
241
  &.in_active_chapter {
247
- background-color: $nav-active-chapter-beginning;
242
+ background-color: $progress-navigation-bar-active-chapter-beginning-color;
248
243
  }
249
244
 
250
245
  &.active {
251
- background-color: $main-color;
246
+ background-color: $progress-navigation-bar-active-page-color;
252
247
  }
253
248
  }
254
249
 
@@ -258,10 +253,10 @@ $nav-bg-color-transparent: $basic-background-color-transparent;
258
253
 
259
254
  &.no_chapters {
260
255
  li.chapter_beginning a, li a.in_active_chapter, li.chapter_beginning a.in_active_chapter {
261
- background-color: $nav-dot-even;
256
+ background-color: $progress-navigation-bar-inactive-chapter-color;
262
257
 
263
258
  &.active {
264
- background-color: $nav-active-page;
259
+ background-color: $progress-navigation-bar-active-page-color;
265
260
  }
266
261
  }
267
262
  }
@@ -1,6 +1,13 @@
1
1
  @mixin progress-navigation-bar-icons-icon-font(
2
- $button-background-color: rgb(219, 219, 219),
3
- $active-button-background-color: $main-color
2
+ $button-background-color,
3
+ $active-button-background-color,
4
+
5
+ $button-icon-color,
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
4
11
  ) {
5
12
  .navigation_button_area .navigation_bar_buttons {
6
13
 
@@ -16,7 +23,7 @@
16
23
  display: block;
17
24
  box-shadow: 1px 2px 1px 0 rgba(0, 0, 0, 0.2);
18
25
  border-radius: 18px;
19
- color: rgba(0, 0, 0, 0.75);
26
+ color: $button-icon-color;
20
27
  cursor: pointer;
21
28
  margin: -25px auto 0 30px;
22
29
  position: relative;
@@ -27,16 +34,12 @@
27
34
  }
28
35
  }
29
36
 
30
- &:hover .button, &.active .button {
37
+ &:hover .button,
38
+ &.active .button {
31
39
  background-color: $active-button-background-color !important;
32
40
  -webkit-mask-image: none;
33
- color: rgba(255, 255, 255, 0.9);
41
+ color: $active-button-icon-color;
34
42
  text-shadow: -1px -1px 1px rgba(0, 0, 0, 0.2);
35
-
36
- .button, .navigation_mute, .navigation_share {
37
- color: rgba(255, 255, 255, 0.9);
38
- text-shadow: -1px -1px 1px rgba(0, 0, 0, 0.2);
39
- }
40
43
  }
41
44
 
42
45
  .navi_hint {
@@ -45,15 +48,17 @@
45
48
 
46
49
  &:active .button {
47
50
  box-shadow: 0 1px 1px 0 rgba(0, 0, 0, 0.2);
48
- -webkit-transform: translate(1px, 1px);
49
- background: linear-gradient(to bottom, rgba(0, 0, 0, 0.2) 0%, rgba(0, 0, 0, 0.2) 40%, rgba(0, 0, 0, 0.2) 100%);
51
+ @include transform(translate(1px, 1px));
52
+ }
53
+
54
+ &.deactivated .button {
55
+ color: $deactivated-button-icon-color;
50
56
  }
51
57
  }
52
58
 
53
59
  .button, .navigation_mute, .navigation_share {
54
60
  font-family: "FontAwesome";
55
61
  font-size: 1em;
56
- color: rgba(0, 0, 0, 0.75);
57
62
  text-shadow: -1px -1px 1px rgba(255, 255, 255, 0.6);
58
63
 
59
64
  display: inline-block;
@@ -131,11 +136,13 @@
131
136
  }
132
137
  }
133
138
 
134
- .share_google, .share_facebook, .share_twitter {
139
+ .share_google,
140
+ .share_facebook,
141
+ .share_twitter {
135
142
  font-size: 1.5em;
136
143
  &:before {
137
144
  font-family: "FontAwesome";
138
- color: white;
145
+ color: $share-icon-color;
139
146
  text-shadow: none;
140
147
  }
141
148
  }
@@ -149,6 +156,23 @@
149
156
  .share_twitter {
150
157
  @include fa-twitter-icon;
151
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
+ }
152
176
  }
153
177
 
154
178
  .volume-control:before,
@@ -10,7 +10,7 @@
10
10
  margin-right: 120px;
11
11
 
12
12
  @include pageflow-progress-mobile-variant {
13
- margin-right: 0;
13
+ margin-right: 10px;
14
14
  }
15
15
  }
16
16
 
@@ -1,7 +1,10 @@
1
1
  .js.progress_navigation_bar.vertical {
2
- &.show_on_mobile {
3
- opacity: 1;
4
- @include transition(opacity 0.4s ease);
2
+ &.hover, &:hover, &:focus, &.focus {
3
+ width: 122px;
4
+
5
+ @include pageflow-progress-mobile-variant {
6
+ width: $progressbar-mobile-width;
7
+ }
5
8
  }
6
9
 
7
10
  .header_button {
@@ -46,51 +49,57 @@
46
49
  }
47
50
  }
48
51
 
49
- .scroller ul {
52
+ .scroller {
53
+ width: 30px;
54
+
50
55
  @include pageflow-progress-mobile-variant {
51
- right: 3px;
52
- width: 8px;
53
- }
54
- }
56
+ width: $progressbar-mobile-width;
55
57
 
56
- .scroller li {
57
- &.animate_in {
58
- &.moving_forwards {
59
- @include animation(pageflow-progress-navigation-bar-slide-in-from-bottom 0.4s ease-out);
58
+ ul {
59
+ right: 3px;
60
+ width: 8px;
60
61
  }
62
+ }
61
63
 
62
- &.moving_backwards {
63
- @include animation(pageflow-progress-navigation-bar-slide-in-from-top 0.4s ease-out);
64
- }
64
+ li {
65
+ &.animate_in {
66
+ &.moving_forwards {
67
+ @include animation(pageflow-progress-navigation-bar-slide-in-from-bottom 0.4s ease-out);
68
+ }
65
69
 
66
- &.moving_down {
67
- @include animation(pageflow-progress-navigation-bar-slide-in-from-right 0.4s ease-out);
68
- }
70
+ &.moving_backwards {
71
+ @include animation(pageflow-progress-navigation-bar-slide-in-from-top 0.4s ease-out);
72
+ }
69
73
 
70
- &.moving_up {
71
- @include animation(pageflow-progress-navigation-bar-slide-in-from-left 0.4s ease-out);
72
- }
73
- }
74
+ &.moving_down {
75
+ @include animation(pageflow-progress-navigation-bar-slide-in-from-right 0.4s ease-out);
76
+ }
74
77
 
75
- &.animate_out {
76
- &.moving_forwards {
77
- @include animation(pageflow-progress-navigation-bar-slide-out-to-top 0.4s ease-in);
78
- opacity: 0;
78
+ &.moving_up {
79
+ @include animation(pageflow-progress-navigation-bar-slide-in-from-left 0.4s ease-out);
80
+ }
79
81
  }
80
82
 
81
- &.moving_backwards {
82
- @include animation(pageflow-progress-navigation-bar-slide-out-to-bottom 0.4s ease-in);
83
- opacity: 0;
84
- }
83
+ &.animate_out {
84
+ &.moving_forwards {
85
+ @include animation(pageflow-progress-navigation-bar-slide-out-to-top 0.4s ease-in);
86
+ opacity: 0;
87
+ }
85
88
 
86
- &.moving_down {
87
- @include animation(pageflow-progress-navigation-bar-slide-out-to-left 0.4s ease-in);
88
- @include transform(translate3d(-50px, 0, 0));
89
- }
89
+ &.moving_backwards {
90
+ @include animation(pageflow-progress-navigation-bar-slide-out-to-bottom 0.4s ease-in);
91
+ opacity: 0;
92
+ }
90
93
 
91
- &.moving_up {
92
- @include animation(pageflow-progress-navigation-bar-slide-out-to-right 0.4s ease-in);
93
- @include transform(translate3d(50px, 0, 0));
94
+ &.moving_down {
95
+ @include animation(pageflow-progress-navigation-bar-slide-out-to-left 0.4s ease-in);
96
+ @include transform(translate3d(-50px, 0, 0));
97
+ }
98
+
99
+ &.moving_up {
100
+ @include animation(pageflow-progress-navigation-bar-slide-out-to-right 0.4s ease-in);
101
+ @include transform(translate3d(50px, 0, 0));
102
+ }
94
103
  }
95
104
  }
96
105
  }
@@ -1,5 +1,5 @@
1
1
  module Pageflow
2
2
  module ProgressNavigationBar
3
- VERSION = '1.0.0'.freeze
3
+ VERSION = '1.1.0'.freeze
4
4
  end
5
5
  end
@@ -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', ['>= 0.11', '< 13']
21
+ spec.add_runtime_dependency 'pageflow', ['>= 12.2.x', '< 14']
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,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pageflow-progress-navigation-bar
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.1.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: 2017-08-11 00:00:00.000000000 Z
11
+ date: 2018-12-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: pageflow
@@ -16,20 +16,20 @@ dependencies:
16
16
  requirements:
17
17
  - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: '0.11'
19
+ version: 12.2.x
20
20
  - - "<"
21
21
  - !ruby/object:Gem::Version
22
- version: '13'
22
+ version: '14'
23
23
  type: :runtime
24
24
  prerelease: false
25
25
  version_requirements: !ruby/object:Gem::Requirement
26
26
  requirements:
27
27
  - - ">="
28
28
  - !ruby/object:Gem::Version
29
- version: '0.11'
29
+ version: 12.2.x
30
30
  - - "<"
31
31
  - !ruby/object:Gem::Version
32
- version: '13'
32
+ version: '14'
33
33
  - !ruby/object:Gem::Dependency
34
34
  name: pageflow-public-i18n
35
35
  requirement: !ruby/object:Gem::Requirement
@@ -155,7 +155,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
155
155
  version: '0'
156
156
  requirements: []
157
157
  rubyforge_project:
158
- rubygems_version: 2.6.8
158
+ rubygems_version: 2.7.5
159
159
  signing_key:
160
160
  specification_version: 4
161
161
  summary: Pageflow navigation widget.