pageflow-progress-navigation-bar 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,29 @@
1
+ body .widget_progress_navigation_bar_present .navigation_mobile {
2
+ .menu.index {
3
+ right: 20px;
4
+ }
5
+ &.active .menu.index {
6
+ right: 200px;
7
+ }
8
+ }
9
+
10
+ .navigation_mobile, .navigation_mobile > * {
11
+ body.has_mobile_platform .widget_progress_navigation_bar_present & {
12
+ display: block;
13
+ }
14
+
15
+ body.has_no_mobile_platform .widget_progress_navigation_bar_present & {
16
+ display: none;
17
+ }
18
+ }
19
+ .js .widget_progress_navigation_bar_present .page .close_button {
20
+ @include desktop {
21
+ right: 125px;
22
+ }
23
+ }
24
+
25
+ .js .widget_progress_navigation_bar_present .videoWrapper {
26
+ @include desktop {
27
+ margin-right: 30px;
28
+ }
29
+ }
@@ -0,0 +1,676 @@
1
+ $bg-color: #353535;
2
+ $nav-color: #9c9c9c;
3
+
4
+ $nav-hint-color: #A9A9A9;
5
+ $nav-hint-hover-color: #b4c552;
6
+
7
+ $nav-dot-even: #afafaf;
8
+ $nav-dot-odd: #afafaf;
9
+
10
+ $nav-button-hr: #6f6f6f;
11
+
12
+ $nav-active-page: #b4c552;
13
+ $nav-active-chapter-beginning: #879438;
14
+ $nav-active-chapter: #6D772E;
15
+
16
+ $progressbar-mobile-width: 14px;
17
+
18
+ @import "cross_dependant_styles";
19
+
20
+ @mixin pageflow-progress-navigation-bar-small-height {
21
+ @media screen and (max-height: 870px) {
22
+ @content;
23
+ }
24
+ }
25
+
26
+ @mixin pageflow-progress-navigation-bar-transparent-background {
27
+ &:after {
28
+ height: 100%;
29
+ background-image: none;
30
+ width: 100%;
31
+ top: 0;
32
+ position: absolute;
33
+ z-index: -1;
34
+ content: "";
35
+ }
36
+ }
37
+
38
+ @mixin pageflow-progress-navigation-bar-box($margin-top, $right) {
39
+ visibility: hidden;
40
+ margin-top: $margin-top;
41
+ background-color: $bg-color;
42
+ border: 2px solid $nav-color;
43
+ position: absolute;
44
+ right: $right;
45
+ padding: 15px;
46
+ height: auto;
47
+ left: initial;
48
+
49
+ hr {
50
+ border:0;
51
+ border-bottom: 1px solid $nav-color;
52
+ }
53
+ }
54
+
55
+ .progress_navigation_bar {
56
+ @include unselectable;
57
+ color: $nav-color;
58
+ width: 30px;
59
+
60
+ .hint {
61
+ position: absolute;
62
+ top: -1000em;
63
+ left: -1000em;
64
+ line-height: 0;
65
+ height: 0;
66
+ font-size: 0;
67
+ color: transparent;
68
+ border: 0 none;
69
+ }
70
+
71
+ .navi_hint {
72
+ text-align: center;
73
+ color: $nav-hint-color;
74
+ font-family: "SourceSansPro";
75
+ font-size: 11px;
76
+ top: 50%;
77
+ position: absolute;
78
+ width: 86%;
79
+ margin-top: 16px;
80
+ padding: 0px 7%;
81
+ @include pageflow-progress-navigation-bar-small-height {
82
+ display: none !important;
83
+ }
84
+ }
85
+
86
+ .has_mobile_platform & {
87
+ width: $progressbar-mobile-width;
88
+ @include transition(opacity 0.4s ease 0.5s);
89
+ opacity: 0;
90
+ @include transform(translateZ(0));
91
+ -webkit-backface-visibility: hidden;
92
+ }
93
+
94
+ &.show_on_mobile {
95
+ opacity: 1;
96
+ @include transition(opacity 0.4s ease);
97
+ }
98
+ position: absolute;
99
+ right: 0;
100
+ top: 0;
101
+ z-index: 3;
102
+
103
+ &:before {
104
+ content: "";
105
+ display: block;
106
+ width: 28px;
107
+ height: 28px;
108
+ background-image: image-url('pageflow/progress_navigation_bar/indicator.png');
109
+ position: absolute;
110
+ right: 60px;
111
+ top: 4.05%;
112
+ @include transition(opacity 0.3s linear);
113
+ opacity: 1;
114
+ top: 35px;
115
+ background-position: left top;
116
+
117
+ .has_mobile_platform & {
118
+ display: none;
119
+ }
120
+
121
+ .bigScreen &, .hideText & {
122
+ display: none;
123
+ }
124
+ }
125
+ .navigation_button_area {
126
+ width: 0;
127
+ right: 30px;
128
+ border-right: 1px solid transparent;
129
+ position: absolute;
130
+ height: 100%;
131
+ @include transition(0.3s ease, overflow 0s);
132
+ overflow: hidden;
133
+
134
+ &:hover {
135
+ overflow: visible;
136
+ }
137
+
138
+
139
+ .navigation_bar_buttons {
140
+ @include transition(opacity 0.15s ease, right 0.3s ease);
141
+ left:0;
142
+ opacity: 0;
143
+ width: 87px;
144
+ position: absolute;
145
+
146
+ @include pageflow-progress-navigation-bar-transparent-background;
147
+
148
+ li {
149
+ height: 11.11%;
150
+ border-bottom: 1px solid $nav-button-hr;
151
+
152
+ &:last-child {
153
+ border-bottom: 0px solid $nav-button-hr;
154
+ }
155
+ position: relative;
156
+ box-sizing: border-box;
157
+
158
+ &.mute {
159
+ height: 22.22%;
160
+ }
161
+
162
+ > a {
163
+ height:100%;
164
+ width: 100%;
165
+
166
+ span.button {
167
+ display: block;
168
+ margin: -25px auto 0 23px;
169
+ top: 50%;
170
+ position: absolute;
171
+
172
+ @include pageflow-progress-navigation-bar-small-height {
173
+ margin: -20px auto 0 23px;
174
+ }
175
+ }
176
+
177
+ &:hover .navi_hint, &.active .navi_hint {
178
+ color: $nav-hint-hover-color;
179
+ }
180
+ }
181
+ }
182
+ }
183
+ }
184
+
185
+ &.with_home_button .navigation_button_area .navigation_bar_buttons {
186
+
187
+ li {
188
+ height: 10%;
189
+
190
+ &.mute {
191
+ height :20%;
192
+ }
193
+ }
194
+ }
195
+
196
+ &.focus .navigation_button_area {
197
+ overflow: visible;
198
+ }
199
+
200
+ &.hover, &:hover, &:focus, &.focus {
201
+ overflow: visible;
202
+ width: 122px;
203
+
204
+ .has_mobile_platform & {
205
+ width: 14px;
206
+ }
207
+
208
+ .navigation_button_area {
209
+ width: 87px;
210
+
211
+ .has_mobile_platform & {
212
+ display: none;
213
+ }
214
+
215
+ .navigation_bar_buttons {
216
+ overflow: visible;
217
+ left: 0;
218
+ opacity: 1;
219
+ @include transition(opacity 0.2s ease 0.1s);
220
+
221
+ main & {
222
+ @include transition(opacity 0.2s ease 0.5s);
223
+ }
224
+ }
225
+ }
226
+
227
+ &:before {
228
+ opacity: 0;
229
+ main & {
230
+ @include transition(opacity 0.7s linear);
231
+ }
232
+ }
233
+ }
234
+
235
+ img {
236
+ border: none;
237
+ }
238
+
239
+ a.navigation_main, a.navigation_top, a.navigation_index {
240
+ display: none;
241
+ }
242
+
243
+ .navigation_bar_bottom {
244
+ display: none;
245
+ }
246
+
247
+ ul {
248
+ margin: 0;
249
+ padding: 0;
250
+ }
251
+
252
+ .scroller:after {
253
+ content: " ";
254
+ display: block;
255
+ height: 150px;
256
+ @include background-image(linear-gradient(rgba(53, 53, 53, 1) 0, transparent 100%));
257
+ }
258
+
259
+ li {
260
+ list-style-type: none;
261
+
262
+ &[tabindex] {
263
+ outline: -webkit-focus-ring-color none 0;
264
+ }
265
+ }
266
+
267
+ a {
268
+ display: block;
269
+
270
+ span {
271
+ display: block;
272
+
273
+ &.hidden {
274
+ display: inline;
275
+ }
276
+ }
277
+
278
+ &:active {
279
+ outline: none;
280
+ }
281
+ }
282
+
283
+ a {
284
+ @include hover {
285
+ + div {
286
+ visibility: visible;
287
+ }
288
+ }
289
+ }
290
+
291
+ a:focus + div, .navigation_menu.focused div {
292
+ visibility: visible;
293
+ }
294
+
295
+ .navigation_dots a {
296
+ position: relative;
297
+ outline: none;
298
+
299
+ &:focus:after {
300
+ content: " ";
301
+ position: absolute;
302
+ top: 0;
303
+ right: 0;
304
+ bottom: 0;
305
+ left: 0;
306
+ border: solid 3px #eee;
307
+ }
308
+ }
309
+
310
+ .navigation_site_detail {
311
+
312
+ color: white;
313
+ font-size: 1em;
314
+ line-height: 1.1em;
315
+ font-family: sourcesanspro;
316
+
317
+ @include pageflow-progress-navigation-bar-box(-40px, 30px);
318
+
319
+ img {
320
+ margin-top: 12px;
321
+ }
322
+ }
323
+
324
+ .navigation_bar_buttons, .navigation_bar_bottom {
325
+ opacity: 0.9;
326
+
327
+ li:last-child a .button {
328
+ border-bottom: none;
329
+ }
330
+ }
331
+
332
+ .navigation_menu {
333
+ a {
334
+ -webkit-mask-position-y: -4px !important;
335
+ }
336
+ }
337
+
338
+ .navigation_menu_box {
339
+ @include pageflow-progress-navigation-bar-box(0, 87px);
340
+
341
+ a {
342
+ @include hover {
343
+ -webkit-mask-image: none;
344
+ }
345
+ }
346
+
347
+ p {
348
+ margin: 0 0 0.5em;
349
+ }
350
+ }
351
+
352
+ .navigation_share_box {
353
+ $size: 28px;
354
+ width: 210px;
355
+
356
+ a {
357
+ float: left;
358
+ text-decoration: none;
359
+ padding: 0 15px 0 15px;
360
+ width: 39px;
361
+
362
+ p {
363
+ font-size: 9px;
364
+ color: $nav-color;
365
+ margin-bottom: 0;
366
+ text-align: center;
367
+ }
368
+
369
+ .button {
370
+ width: $size;
371
+ height: $size;
372
+ margin: auto;
373
+ }
374
+ }
375
+ }
376
+
377
+ .navigation_credits_box {
378
+ font-size: 1em;
379
+ min-width: 230px;
380
+ min-height: 4px;
381
+ font-family: "sourcesanspro";
382
+ bottom: 0;
383
+
384
+ a {
385
+ color: #b4c552;
386
+ }
387
+
388
+ a.legal, a.copy {
389
+ float: left;
390
+ }
391
+ }
392
+
393
+ .navigation_menu {
394
+ @include hover {
395
+ .navigation_menu_box {
396
+ visibility: visible;
397
+ }
398
+ }
399
+
400
+ &:focus, &.open {
401
+ .navigation_menu_box {
402
+ visibility: visible;
403
+ }
404
+ }
405
+ }
406
+
407
+ &.js {
408
+ position: absolute;
409
+ bottom: 0;
410
+
411
+ & > .navigation_site_detail {
412
+ margin-top: 0;
413
+ width: auto;
414
+ }
415
+
416
+ a.scroll_indicator {
417
+ height: 30px;
418
+ width: 35px;
419
+ right: 25px;
420
+ background-repeat: no-repeat;
421
+ background-image: image-url('pageflow/scroll_indicator_sprite.png');
422
+ background-color: transparent;
423
+ -webkit-mask-image: none;
424
+ $normal-offset: -14px;
425
+ $hover-offset: -115px;
426
+ $pressed-offset: -64px;
427
+
428
+ &.top {
429
+ top: 145px;
430
+ $top-offset: -13px;
431
+ background-position: $top-offset $normal-offset;
432
+
433
+ @include hover {
434
+ background-position: $top-offset $hover-offset;
435
+ }
436
+
437
+ @include pressed {
438
+ background-position: $top-offset $pressed-offset;
439
+ }
440
+ }
441
+
442
+ &.bottom {
443
+ z-index: 1;
444
+ bottom: 234px;
445
+ $bottom-offset: -161px;
446
+ background-position: $bottom-offset $normal-offset;
447
+
448
+ @include hover {
449
+ background-position: $bottom-offset $hover-offset;
450
+ }
451
+ @include pressed {
452
+ background-position: $bottom-offset $pressed-offset;
453
+ }
454
+ }
455
+ }
456
+
457
+ .navigation_bar_buttons {
458
+ top: 0;
459
+ height: 100%;
460
+
461
+ a.navigation_main, a.navigation_top, a.navigation_index {
462
+ display: block;
463
+ }
464
+ }
465
+
466
+ .scroller {
467
+ top: 0;
468
+ bottom: 0;
469
+ right: 0;
470
+ width: 30px;
471
+ .has_mobile_platform & {
472
+ width: $progressbar-mobile-width;
473
+ }
474
+ max-height: 100%;
475
+ overflow: hidden;
476
+ position: absolute;
477
+
478
+ @include pageflow-progress-navigation-bar-transparent-background;
479
+
480
+
481
+
482
+ ul {
483
+ position: absolute;
484
+ right: 8px;
485
+ width: 14px;
486
+
487
+ .has_mobile_platform & {
488
+ right: 3px;
489
+ width: 8px;
490
+
491
+
492
+ }
493
+ top: 50%;
494
+ max-height: 100%;
495
+ @include transform(translate(0, -50%) !important);
496
+
497
+ li {
498
+ position: relative;
499
+ box-sizing: border-box;
500
+
501
+ &:last-child {
502
+ margin-bottom: 0;
503
+ }
504
+ }
505
+
506
+ a {
507
+ position: absolute;
508
+ top: 0;
509
+ left: 0;
510
+ height: 100%;
511
+ width: 100%;
512
+ background-color: $nav-dot-even;
513
+ border-bottom: 1px solid $bg-color;
514
+ box-sizing: border-box;
515
+
516
+ &.in_active_chapter {
517
+ background-color: $nav-active-chapter;
518
+ }
519
+
520
+ &.active {
521
+ cursor: default;
522
+ background-color: $nav-active-page;
523
+
524
+
525
+ img {
526
+ border-left: 5px solid #A6D513;
527
+ }
528
+ }
529
+
530
+ /* &:visited {
531
+ background-color: #9EA95C;
532
+ } */
533
+ }
534
+
535
+ /* li.chapter_odd a {
536
+ background-color: $nav-dot-odd;
537
+
538
+ &.in_active_chapter {
539
+ background-color: $nav-active-chapter;
540
+ }
541
+
542
+ &.active {
543
+ background-color: $nav-active-page;
544
+ }
545
+ } */
546
+
547
+ li.chapter_beginning a {
548
+ background-color: #949494;
549
+
550
+ &.in_active_chapter {
551
+ background-color: $nav-active-chapter-beginning;
552
+ }
553
+
554
+ /* &:visited {
555
+ background-color: #9EA95C;
556
+ opacity: 0;
557
+ } */
558
+ }
559
+
560
+ img {
561
+ display: block;
562
+ }
563
+ }
564
+ }
565
+ .no_chapters li.chapter_beginning a, .no_chapters li a.in_active_chapter, .scroller ul.no_chapters li.chapter_beginning a.in_active_chapter {
566
+ background-color: $nav-dot-even;
567
+
568
+ &.active {
569
+ background-color: $nav-active-page;
570
+ }
571
+ }
572
+
573
+ .navigation_menu_box {
574
+ &:before {
575
+ top: auto;
576
+ bottom: -2px;
577
+ }
578
+ }
579
+
580
+ .visible {
581
+ visibility: visible;
582
+ }
583
+
584
+ .hidden {
585
+ visibility: hidden;
586
+ }
587
+
588
+ .navigation_volume_box {
589
+ height: 100%;
590
+
591
+ .volume-control {
592
+ height: 100%;
593
+
594
+ &:before, &:after, .volume-level:before {
595
+ background-image: image-url('pageflow/progress_navigation_bar/volume_control_sprite.png');
596
+ position: absolute;
597
+ width: 28px;
598
+ height: 19px;
599
+ content: " ";
600
+ background-repeat: no-repeat;
601
+ top: 8px;
602
+ }
603
+
604
+ &:before {
605
+ background-position: -34px top;
606
+ left: 32px;
607
+ bottom: 6%;
608
+ top: initial;
609
+ }
610
+ &:after {
611
+ background-position: -3px top;
612
+ left: 32px;
613
+ top: 6%;
614
+ }
615
+ &:after, &:before {
616
+ @include pageflow-progress-navigation-bar-small-height {
617
+ display: none;
618
+ }
619
+ }
620
+ }
621
+ }
622
+
623
+ .volume-control {
624
+ margin: 0px 20px;
625
+
626
+ .volume-slider {
627
+ width: 5px;
628
+ height: 60%;
629
+ background-color: gray;
630
+ top: 20%;
631
+ position: absolute;
632
+ left: 40px;
633
+
634
+ @include pageflow-progress-navigation-bar-small-height {
635
+ top: 10%;
636
+ height: 80%;
637
+ }
638
+ }
639
+ .volume-level {
640
+ height: 100%;
641
+ background-color: #b4c552;
642
+ bottom: 0;
643
+ position: absolute;
644
+
645
+ &:before {
646
+ display: block;
647
+ content: "";
648
+ background-position: -66px top;
649
+ top: -9px !important;
650
+ width: 18px !important;
651
+ height: 16px !important;
652
+ left: -6px !important;
653
+ }
654
+ }
655
+ }
656
+ }
657
+ }
658
+
659
+ .progress_navigation_bar.header_active {
660
+ &:before {
661
+ background-position: right top;
662
+ }
663
+ }
664
+
665
+ .navigation_site_detail.progress_navigation h2 {
666
+ font-size: 1em;
667
+ line-height: 1.2em;
668
+ margin: 0;
669
+
670
+ > span {
671
+ display: block;
672
+ }
673
+ .chapter_number {
674
+ font-weight: normal;
675
+ }
676
+ }