This repository has been archived by the owner on Jul 10, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 77
/
index.html
1647 lines (1148 loc) · 78 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
<!DOCTYPE html>
<!--
**** BEWARE **** The code of this demo website is really messy due to designing it while coding.
-->
<html lang="en">
<head>
<!-- Basic information -->
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, height=device-height, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<!-- Site information -->
<title>Vuebar</title>
<!-- Favicon -->
<link rel="apple-touch-icon" sizes="180x180" href="./site/favicon/apple-touch-icon.png">
<link rel="icon" type="image/png" sizes="32x32" href="./site//favicon/favicon-32x32.png">
<link rel="icon" type="image/png" sizes="16x16" href="./site//favicon/favicon-16x16.png">
<link rel="manifest" href="./site//favicon/manifest.json">
<link rel="mask-icon" href="./site//favicon/safari-pinned-tab.svg" color="#3079f4">
<link rel="shortcut icon" href="./site//favicon/favicon.ico">
<meta name="msapplication-config" content="./site//favicon/browserconfig.xml">
<meta name="theme-color" content="#ffffff">
<!-- Pure CSS -->
<link rel="stylesheet" href="./site/css/pure-min.css">
<!-- Styles -->
<style>
:root {
font-family: 'Segoe UI', 'Arial', sans-serif;
margin: 0;
}
body {
margin: 0;
overflow: hidden;
padding: 0;
background-color: #3079f4;
-webkit-overflow-scrolling: touch;
}
code {
background-color: #eee;
background-color: #f0f6ff;
display: inline-block;
font-family: monospace, monospace, sans-serif;
}
code.full {
display: block;
padding: 10px 20px;
}
pre {
margin: 0;
}
ul {
list-style-type: none;
padding: 0;
margin: 0;
}
li {
list-style-type: none;
padding: 0;
margin: 0;
margin-bottom: 10px;
display: block;
position: relative;
padding-left: 22px;
}
li svg {
position: absolute;
top: 2px;
left: 0;
}
li svg path {
fill: #3079f4;
}
a {
text-decoration: none;
color: #1c69ec;
font-weight: 600;
}
#app {
display: block;
margin: 0 auto;
}
.main-header {
background-color: white;
background-color: #f0f6ff;
margin-top: 50px;
max-width: 650px;
padding-top: 10px;
padding-bottom: 50px;
}
.mod-ms-autohiding {
-ms-overflow-style: -ms-autohiding-scrollbar;
}
.pkg-link {
text-decoration: none;
vertical-align: baseline;
display: inline-block;
font-weight: 600;
font-size: 13px;
padding: 5px 10px;
border-radius: 2px;
color: #3079f4;
line-height: 1;
opacity: .6;
transition: opacity 100ms ease-out;
}
.pkg-link:hover {
opacity: 1;
}
#GitHub_Logo {
position: relative;
top: 4px;
display: inline-block;
width: 15px;
height: 20px;
margin-right: 2px;
opacity: .2;
transition: opacity 100ms ease-out;
}
#npm_logo {
display: inline-block;
width: 20px;
position: relative;
top: 6px;
height: 20px;
margin-right: 2px;
opacity: .2;
transition: opacity 100ms ease-out;
}
#usercap {
position: relative;
top: 2px;
}
.pkg-link:hover #npm_logo, .pkg-link:hover #GitHub_Logo{
opacity: 1;
}
.main-title {
font-size: 47px;
font-weight: 700;
color: #3079f4;
color: #1c69ec;
margin: 0;
line-height: 1;
margin-top: 40px;
}
.main-title span {
font-size: 35px;
color: #abc8f9;
display: inline-block;
transform: translate(-11px, -20px) rotate(-15deg);
}
.main-desc {
color: #3079f4;
font-size: 15px;
margin-top: 30px;
margin-bottom: 40px;
}
.main-header-btn {
color: #3079f4;
font-size: 15px;
vertical-align: middle;
text-decoration: none;
display: inline-block;
background-color: #3079f4;
background-color: #4d8bf5;
padding: 5px 20px;
padding-top: 6px;
color: white;
transition: background-color 100ms ease-out;
margin-top: 5px;
width: 100%;
max-width: 330px;
}
.main-header-btn:hover {
background-color: #3079f4;
}
.main-header-btn.mod-browserstack {
padding: 4px 20px;
padding-bottom: 5px;
}
.main-header-btn.mod-browserstack img {
margin-left: 5px;
vertical-align: bottom;
display: inline-block;
width: auto;
height: 24px;
position: relative;
top: -0px;
}
.main-header-btn.mod-browserstack .bs-tested {
position: relative;
top: -2px;
}
#GGather_Logo_Small {
width: 13px;
vertical-align: middle;
position: relative;
top: -2px;
display: inline-block;
margin-left: 8px;
margin-right: 3px;
}
.container-title {
margin: 0;
text-align: left;
margin-top: 30px;
padding: 0px;
font-weight: 700;
font-size: 25px;
line-height: 1.4;
padding-left: 15px;
padding-left: 19px;
padding-top: 30px;
padding-bottom: 15px;
background-color: white;
color: #f0f6ff;
color: #3079f4;
color: #1c69ec;
background-color: #f0f6ff;
}
.container-title.mod-table {
}
.container {
background-color: white;
margin-bottom: 30px;
padding: 20px;
color: #3079f4;
font-size: 14px;
text-align: left;
}
.container h3 {
margin-top: 40px;
font-size: 16px;
line-height: 1.2;
font-weight: 600;
color: #1c69ec;
}
.container h3.first {
margin-top: 0;
}
.container p {
margin-top: 5px;
line-height: 1.3;
margin-bottom: 20px;
color: #3079f4;
}
.container.mod-table {
padding: 0;
}
.pure-button {
transition: background-color 100ms ease-out;
background-color: #f0f6ff;
background-color: #4d8bf5;
color: #3079f4;
color: white;
font-weight: 500;
}
.pure-button:hover {
background: #3079f4;
}
.pure-button:focus {
background: #3079f4;
box-shadow: none;
}
.pure-button:active {
background:#3079f4;
box-shadow: none;
}
.pure-button.button-xsmall {
padding: 1px 5px 2px 5px;
vertical-align: baseline;
font-size: 12px;
position: relative;
top: -1px;
}
.pure-table {
border-color: #0d4cb9;
border: none;
}
.pure-table tbody {
border-color: #1f5eca;
background-color: white;
}
.pure-table thead {
background-color: #1c67e4;
background-color: #f0f6ff;
color: white;
color: #3079f4;
border: none;
padding-top: 20px;
padding-left: 5px;
padding-right: 5px;
padding-bottom: 20px;
}
.pure-table td {
border-color: #3079f4;
color: #3079f4;
border: none;
}
.pure-table td.small {
font-size: 12px;
}
.pure-table td:nth-of-type(1) {
font-weight: 500;
font-family: monospace, monospace, sans-serif;
padding-left: 20px;
}
.pure-table td:nth-of-type(2) {
font-weight: 400;
font-size: 12px;
opacity: .7;
}
.pure-table td:nth-of-type(3) {
font-weight: 400;
font-size: 12px;
opacity: .7;
white-space: nowrap;
font-family: monospace, monospace, sans-serif;
}
.pure-table td:nth-of-type(4) {
font-size: 12px;
padding-right: 20px;
}
.pure-table th {
border-top: 1px solid #0d4cb9;
border-color: #0d4cb9;
border: none;
}
.pure-table th:nth-of-type(1) {
padding-left: 20px;
}
.pure-table th:nth-of-type(2) {
font-size: 12px;
}
.pure-table th:nth-of-type(3) {
font-size: 12px;
}
.pure-table th:nth-of-type(4) {
padding-right: 20px;
}
.pure-table tr {
border-top: 1px solid #3079f4;
border-color: #f0f6ff;
text-align: left;
padding-top: 20px;
padding-left: 5px;
padding-right: 5px;
padding-bottom: 20px;
}
.pure-table tr:first-of-type {
border-top: none;
}
.el1full {
display: block;
width: auto;
height: 100vh;
}
.el1full > .vb-dragger {
width: 12px;
right: 0;
}
.el1full > .vb-dragger .vb-dragger-styler {
backface-visibility: hidden;
transform: rotate3d(0,0,0,0);
transition:
background-color 100ms ease-out,
margin 100ms ease-out,
height 100ms ease-out;
background-color: rgba(255,255,255,.1);
margin: 5px 5px 5px 0;
border-radius: 20px;
height: calc(100% - 10px);
display: block;
}
.el1full.vb.vb-scrolling-phantom > .vb-dragger .vb-dragger-styler {
background-color: rgba(255,255,255,.3);
}
.el1full > .vb-dragger:hover .vb-dragger-styler {
background-color: rgba(255,255,255,.5);
margin: 0px;
height: 100%;
}
.el1full.vb.vb-dragging > .vb-dragger .vb-dragger-styler {
background-color: rgba(255,255,255,.5);
margin: 0px;
height: 100%;
}
.el1full.vb.vb-dragging-phantom > .vb-dragger .vb-dragger-styler {
background-color: rgba(255,255,255,.5);
}
.fade-enter-active, .fade-leave-active {
transition: opacity .5s
}
.fade-enter, .fade-leave-to /* .fade-leave-active in <2.1.8 */ {
opacity: 0
}
.main-content-container {
max-width: 650px;
margin: 0 auto;
text-align: center;
position: relative;
z-index: 5;
padding-bottom: 50px;
}
@media (max-width: 1100px){
.main-content-container {
padding-right: 200px;
}
}
@media (max-width: 890px){
.main-content-container {
padding-left: 30px;
padding-right: 30px;
}
}
.navigation {
position: fixed;
top: 50px;
right: 50px;
z-index: 1;
text-align: right;
}
@media (max-width: 890px){
.navigation {
position: static;
padding: 30px;
}
}
.navigation-inner ol {
list-style-type: decimal;
padding: 0;
margin: 0;
}
.navigation-inner li {
display:list-item;
list-style-position: outside;
list-style-position: inside;
list-style-type: decimal;
list-style-type: none;
color: rgba(255,255,255,.5);
padding: 0;
margin: 0;
line-height: 1;
margin-bottom: 5px;
}
.navigation-inner a {
text-decoration: none;
font-size: 13px;
font-weight: 400;
color: rgba(255,255,255,.5);
line-height: 1;
}
.navigation-inner a span {
opacity: .3;
}
.navigation-inner a:hover {
color: rgba(255,255,255,.7);
}
.el1 {
height: 200px;
background-color: #f0f6ff;
color: #3079f4;
margin: 0 auto;
}
.el1.vb > .vb-dragger {
z-index: 2;
width: 12px;
right: 0;
}
.el1.vb > .vb-dragger > .vb-dragger-styler {
backface-visibility: hidden;
transform: rotate3d(0,0,0,0);
transition:
background-color 100ms ease-out,
margin 100ms ease-out,
height 100ms ease-out;
background-color: rgba(48, 121, 244,.1);
margin: 5px 5px 5px 0;
border-radius: 20px;
height: calc(100% - 10px);
display: block;
}
.el1.vb.vb-scrolling-phantom > .vb-dragger > .vb-dragger-styler {
background-color: rgba(48, 121, 244,.3);
}
.el1.vb > .vb-dragger:hover > .vb-dragger-styler {
background-color: rgba(48, 121, 244,.5);
margin: 0px;
height: 100%;
}
.el1.vb.vb-dragging > .vb-dragger > .vb-dragger-styler {
background-color: rgba(48, 121, 244,.5);
margin: 0px;
height: 100%;
}
.el1.vb.vb-dragging-phantom > .vb-dragger > .vb-dragger-styler {
background-color: rgba(48, 121, 244,.5);
}
.el2 {
}
.content-btn {
background-color: #32ab76;
outline-color: #41b883;
border-radius: 2px 2px 0 0;
padding: 15px 30px;
border: none;
box-shadow: none;
color: white;
font-size: 17px;
font-weight: 500;
z-index: 100;
}
.content-padding {
padding: 20px;
}
.comment {
opacity: .3;
}
.madeby {
position: absolute;
top: -25px;
/*
background-color: rgba(240, 246, 255, 0.6);*/
right: 0;
}
.madeby .pkg-link {
margin: 0;
padding: 0;
font-weight: 400;
color: white;
opacity: .3;
}
</style>
</head>
<body>
<!-- All The Magic Happens Here -->
<div id="app" >
<div class="el1full" v-bar>
<div class="el2full" >
<nav class="navigation">
<div class="navigation-inner">
<ol>
<li><a href="#start">Vuebar</a></li>
<li>
<a target="_blank" href="https://github.com/DominikSerafin/vuebar" title="Pull requests, stars and forks welcome!">GitHub</a>
/ <a target="_blank" href="https://www.npmjs.com/package/vuebar">NPM</a>
</li>
<li><a href="#about">About <span>01</span> </a></li>
<li><a href="#installation">Installation <span>02</span> </a></li>
<li><a href="#usage">Usage <span>03</span> </a></li>
<li><a href="#styling">Styling <span>04</span> </a></li>
<li><a href="#options">Customization Options <span>05</span> </a></li>
<li><a href="#options-classes">Customization Options <span>06</span><br> (custom classes) </a></li>
<li><a href="#examples">Examples <span>07</span> </a></li>
<li><a href="#credits">Contributing & Credits <span>08</span> </a></li>
</ol>
</div>
</nav>
<div class="main-content-container" id="start">
<header class="main-header">
<!--
<div class="madeby">
<a class="pkg-link" href="https://serafin.io/">
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" id="usercap" x="0px" y="0px" viewbox="0 0 64 64" style="enable-background:new 0 0 64 64;" xml:space="preserve" width="16" height="16">
<linearGradient id="SVGID_1__43964" gradientUnits="userSpaceOnUse" x1="37" y1="30.5" x2="37" y2="35.6992" spreadMethod="reflect">
<stop offset="0" style="stop-color:#6DC7FF"/>
<stop offset="1" style="stop-color:#E6ABFF"/>
</linearGradient>
<circle style="fill:url(#SVGID_1__43964);" cx="37" cy="33" r="2.5"/>
<linearGradient id="SVGID_2__43964" gradientUnits="userSpaceOnUse" x1="27" y1="30.5" x2="27" y2="35.6992" spreadMethod="reflect">
<stop offset="0" style="stop-color:#6DC7FF"/>
<stop offset="1" style="stop-color:#E6ABFF"/>
</linearGradient>
<circle style="fill:url(#SVGID_2__43964);" cx="27" cy="33" r="2.5"/>
<linearGradient id="SVGID_3__43964" gradientUnits="userSpaceOnUse" x1="32" y1="38" x2="32" y2="42.2573" spreadMethod="reflect">
<stop offset="0" style="stop-color:#6DC7FF"/>
<stop offset="1" style="stop-color:#E6ABFF"/>
</linearGradient>
<path style="fill:url(#SVGID_3__43964);" d="M28,38c0,2.209,1.791,4,4,4s4-1.791,4-4H28z"/>
<linearGradient id="SVGID_4__43964" gradientUnits="userSpaceOnUse" x1="32" y1="5.5" x2="32" y2="58.6801" spreadMethod="reflect">
<stop offset="0" style="stop-color:#1A6DFF"/>
<stop offset="1" style="stop-color:#C822FF"/>
</linearGradient>
<circle style="fill:url(#SVGID_4__43964);" cx="32" cy="52" r="2"/>
<linearGradient id="SVGID_5__43964" gradientUnits="userSpaceOnUse" x1="32" y1="5.5" x2="32" y2="58.6801" spreadMethod="reflect">
<stop offset="0" style="stop-color:#1A6DFF"/>
<stop offset="1" style="stop-color:#C822FF"/>
</linearGradient>
<path style="fill:url(#SVGID_5__43964);" d="M44.802,39.644c0.373-0.842,0.665-1.725,0.866-2.644H47c2.757,0,5-2.243,5-5 c0-2.415-1.721-4.434-4-4.899V24c0-7.796-5.608-14.299-13-15.708V7.999C35,6.896,34.104,6,33.001,6h-2.002 C29.896,6,29,6.896,29,7.999v0.295C24.09,9.23,19.849,12.426,17.621,17H16c-2.206,0-4,1.794-4,4s1.794,4,4,4v2.101 c-2.279,0.465-4,2.484-4,4.899c0,2.757,2.243,5,5,5h1.332c0.202,0.918,0.494,1.802,0.866,2.644C14.618,43.459,12,49.015,12,55v3h40 v-3C52,49.015,49.382,43.459,44.802,39.644z M20,34v-5h1c1.654,0,3-1.346,3-3v-1h7c1.902,0,3.626-0.765,4.889-2H39 c0.552,0,1,0.448,1,1v2c0,1.654,1.346,3,3,3h1v5c0,6.617-5.383,12-12,12S20,40.617,20,34z M50,32c0,1.654-1.346,3-3,3h-1v-1v-1h1 c0.553,0,1-0.447,1-1s-0.447-1-1-1h-1v-2h1C48.654,29,50,30.346,50,32z M32,10c7.72,0,14,6.28,14,14v3h-1h-1h-1 c-0.552,0-1-0.448-1-1v-2c0-1.654-1.346-3-3-3h-1.685C37.75,20.089,38,19.074,38,18v-1H19.882C22.365,12.705,26.961,10,32,10z M14,21c0-1.103,0.897-2,2-2h19.899c-0.465,2.279-2.484,4-4.899,4H16C14.897,23,14,22.103,14,21z M22,25v1c0,0.552-0.448,1-1,1h-1 h-1h-1v-2H22z M18,35h-1c-1.654,0-3-1.346-3-3s1.346-3,3-3h1v2h-1c-0.553,0-1,0.447-1,1s0.447,1,1,1h1v1V35z M50,56h-6v-2h-2v2H22 v-2h-2v2h-6v-1c0-5.25,2.233-10.136,6.162-13.56C22.643,45.374,27.016,48,32,48s9.357-2.626,11.838-6.56 C47.767,44.864,50,49.75,50,55V56z"/>
</svg>
made by Dominik
</a>
</div>
-->
<h1 class="main-title">Vuebar</h1>
<div>
<a class="pkg-link" href="https://github.com/DominikSerafin/vuebar" title="Pull requests, stars and forks welcome!">
<svg version="1.1" id="GitHub_Logo" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" width="438.549px" height="438.549px" viewbox="0 0 438.549 438.549" style="enable-background:new 0 0 438.549 438.549;" xml:space="preserve"> <g> <path d="M409.132,114.573c-19.608-33.596-46.205-60.194-79.798-79.8C295.736,15.166,259.057,5.365,219.271,5.365
c-39.781,0-76.472,9.804-110.063,29.408c-33.596,19.605-60.192,46.204-79.8,79.8C9.803,148.168,0,184.854,0,224.63
c0,47.78,13.94,90.745,41.827,128.906c27.884,38.164,63.906,64.572,108.063,79.227c5.14,0.954,8.945,0.283,11.419-1.996
c2.475-2.282,3.711-5.14,3.711-8.562c0-0.571-0.049-5.708-0.144-15.417c-0.098-9.709-0.144-18.179-0.144-25.406l-6.567,1.136
c-4.187,0.767-9.469,1.092-15.846,1c-6.374-0.089-12.991-0.757-19.842-1.999c-6.854-1.231-13.229-4.086-19.13-8.559
c-5.898-4.473-10.085-10.328-12.56-17.556l-2.855-6.57c-1.903-4.374-4.899-9.233-8.992-14.559
c-4.093-5.331-8.232-8.945-12.419-10.848l-1.999-1.431c-1.332-0.951-2.568-2.098-3.711-3.429c-1.142-1.331-1.997-2.663-2.568-3.997
c-0.572-1.335-0.098-2.43,1.427-3.289c1.525-0.859,4.281-1.276,8.28-1.276l5.708,0.853c3.807,0.763,8.516,3.042,14.133,6.851
c5.614,3.806,10.229,8.754,13.846,14.842c4.38,7.806,9.657,13.754,15.846,17.847c6.184,4.093,12.419,6.136,18.699,6.136
c6.28,0,11.704-0.476,16.274-1.423c4.565-0.952,8.848-2.383,12.847-4.285c1.713-12.758,6.377-22.559,13.988-29.41
c-10.848-1.14-20.601-2.857-29.264-5.14c-8.658-2.286-17.605-5.996-26.835-11.14c-9.235-5.137-16.896-11.516-22.985-19.126
c-6.09-7.614-11.088-17.61-14.987-29.979c-3.901-12.374-5.852-26.648-5.852-42.826c0-23.035,7.52-42.637,22.557-58.817
c-7.044-17.318-6.379-36.732,1.997-58.24c5.52-1.715,13.706-0.428,24.554,3.853c10.85,4.283,18.794,7.952,23.84,10.994
c5.046,3.041,9.089,5.618,12.135,7.708c17.705-4.947,35.976-7.421,54.818-7.421s37.117,2.474,54.823,7.421l10.849-6.849
c7.419-4.57,16.18-8.758,26.262-12.565c10.088-3.805,17.802-4.853,23.134-3.138c8.562,21.509,9.325,40.922,2.279,58.24
c15.036,16.18,22.559,35.787,22.559,58.817c0,16.178-1.958,30.497-5.853,42.966c-3.9,12.471-8.941,22.457-15.125,29.979
c-6.191,7.521-13.901,13.85-23.131,18.986c-9.232,5.14-18.182,8.85-26.84,11.136c-8.662,2.286-18.415,4.004-29.263,5.146
c9.894,8.562,14.842,22.077,14.842,40.539v60.237c0,3.422,1.19,6.279,3.572,8.562c2.379,2.279,6.136,2.95,11.276,1.995
c44.163-14.653,80.185-41.062,108.068-79.226c27.88-38.161,41.825-81.126,41.825-128.906
C438.536,184.851,428.728,148.168,409.132,114.573z"/>
</g></svg>
vuebar
</a>
<!-- <img src="https://img.shields.io/github/stars/DominikSerafin/vuebar.svg?style=flat-square"> -->
<a class="pkg-link" href="https://www.npmjs.com/package/vuebar">
<svg version="1.1" id="npm_logo" xmlns="http://www.w3.org/2000/svg" x="0px" y="0px" width="540px" height="210px" viewbox="0 0 18 7">
<path fill="#CB3837" d="M0,0h18v6H9v1H5V6H0V0z M1,5h2V2h1v3h1V1H1V5z M6,1v5h2V5h2V1H6z M8,2h1v2H8V2z M11,1v4h2V2h1v3h1V2h1v3h1V1H11z"/>
<polygon fill="#FFFFFF" points="1,5 3,5 3,2 4,2 4,5 5,5 5,1 1,1 "/>
<path fill="#FFFFFF" d="M6,1v5h2V5h2V1H6z M9,4H8V2h1V4z"/>
<polygon fill="#FFFFFF" points="11,1 11,5 13,5 13,2 14,2 14,5 15,5 15,2 16,2 16,5 17,5 17,1 "/>
</svg>
vuebar
</a>
</div>
<p class="main-desc">Vue 2 directive for custom scrollbar that uses native scroll behavior. <br>Lightweight, performant, customizable and without dependencies.</p>
<!-- <img src="https://unsplash.it/4900/4900"> -->
<div>
<a class="main-header-btn mod-ggather" href="https://ggather.com/" >
Used successfully in production on
<svg id="GGather_Logo_Small" data-name="GGather Logo Small" xmlns="http://www.w3.org/2000/svg" viewbox="0 0 438 668"><title>GGather Logo Small</title><path fill="#ffffff" class="cls-1" d="M376.29,0h-33a60.31,60.31,0,0,0-54.49,34.46l-35,73.69a14.65,14.65,0,0,0,13.23,20.92h71.62c19.15,0,29.42,22.53,16.85,37-69.92,80.39-190.26,216-251.8,287-5.68,6.56-16.18-.2-12.36-8C120.5,385.68,180.81,268,209.8,208.45a7.42,7.42,0,0,0-6.68-10.67H115c-17.16,0-26.44-20.1-15.32-33.16l99-116.32C214.94,29.28,201.42,0,176.42,0H61.71A61.31,61.31,0,0,0,.4,61.31V636.42c0,29.36,36.28,43.16,55.79,21.23L173.86,525.41a60.42,60.42,0,0,1,90.28,0L381.81,657.65c19.52,21.93,55.79,8.13,55.79-21.23V61.31A61.31,61.31,0,0,0,376.29,0Z"/></svg>
<strong> GGather</strong>
</a>
</div>
<div>
<a class="main-header-btn mod-browserstack" href="https://www.browserstack.com/" target="_blank" >
<span class="bs-tested">Tested with the help of</span>
<img src="./site/img/browserstack-header-logo.svg" alt="BrowserStack Logo">
</a>
</div>
</header>
<h2 class="container-title" id="about">About</h2>
<div class="container">
<!-- <h3 class="first">About</h3> -->
<p>The first Vue 2 custom scrollbar library that only enhances scrolling instead of reimplementing it with custom scroll behavior. Created by <a href="https://serafin.io/">Dominik Serafin.</a></p>
<p>It uses native scroll events to detect and synchronize scrollbar position. This makes possible to hack into the native events of scrolling element without hassle.</p>
<p> It was built for <a href="https://ggather.com/">GGather.com</a> where it plays nicely with a lot of dynamic content changes and most importantly infinite scrolling and drag and drop features. And now after testing, fixes, improvements and added customization options - it's ready to be shared with the world.</p>
<ul>
<li>
<svg xmlns="http://www.w3.org/2000/svg" viewbox="0 0 24 24" width="16" height="16"><path color="#000" d="M 19.28125 5.28125 L 9 15.5625 L 4.71875 11.28125 L 3.28125 12.71875 L 8.28125 17.71875 L 9 18.40625 L 9.71875 17.71875 L 20.71875 6.71875 L 19.28125 5.28125 z"/></svg>
Directive instead of a custom component, which saves a lot of headaches.
</li>
<li>
<svg xmlns="http://www.w3.org/2000/svg" viewbox="0 0 24 24" width="16" height="16"><path color="#000" d="M 19.28125 5.28125 L 9 15.5625 L 4.71875 11.28125 L 3.28125 12.71875 L 8.28125 17.71875 L 9 18.40625 L 9.71875 17.71875 L 20.71875 6.71875 L 19.28125 5.28125 z"/></svg>
Native scroll events, no jankiness, no hijacking.
</li>
<li>
<svg xmlns="http://www.w3.org/2000/svg" viewbox="0 0 24 24" width="16" height="16"><path color="#000" d="M 19.28125 5.28125 L 9 15.5625 L 4.71875 11.28125 L 3.28125 12.71875 L 8.28125 17.71875 L 9 18.40625 L 9.71875 17.71875 L 20.71875 6.71875 L 19.28125 5.28125 z"/></svg>
Simple to use, lightweight & performant.
</li>
<li>
<svg xmlns="http://www.w3.org/2000/svg" viewbox="0 0 24 24" width="16" height="16"><path color="#000" d="M 19.28125 5.28125 L 9 15.5625 L 4.71875 11.28125 L 3.28125 12.71875 L 8.28125 17.71875 L 9 18.40625 L 9.71875 17.71875 L 20.71875 6.71875 L 19.28125 5.28125 z"/></svg>
Works in browser and also build (webpack, etc.) environments.
</li>
<li>
<svg xmlns="http://www.w3.org/2000/svg" viewbox="0 0 24 24" width="16" height="16"><path color="#000" d="M 19.28125 5.28125 L 9 15.5625 L 4.71875 11.28125 L 3.28125 12.71875 L 8.28125 17.71875 L 9 18.40625 L 9.71875 17.71875 L 20.71875 6.71875 L 19.28125 5.28125 z"/></svg>
Compatible with all major browsers including IE9 and above.
</li>
<li>
<svg xmlns="http://www.w3.org/2000/svg" viewbox="0 0 24 24" width="16" height="16"><path color="#000" d="M 19.28125 5.28125 L 9 15.5625 L 4.71875 11.28125 L 3.28125 12.71875 L 8.28125 17.71875 L 9 18.40625 L 9.71875 17.71875 L 20.71875 6.71875 L 19.28125 5.28125 z"/></svg>
Useful customization options.
</li>
<li>
<svg xmlns="http://www.w3.org/2000/svg" viewbox="0 0 24 24" width="16" height="16"><path color="#000" d="M 19.28125 5.28125 L 9 15.5625 L 4.71875 11.28125 L 3.28125 12.71875 L 8.28125 17.71875 L 9 18.40625 L 9.71875 17.71875 L 20.71875 6.71875 L 19.28125 5.28125 z"/></svg>
No 3rd party dependencies.
</li>
<li>
<svg xmlns="http://www.w3.org/2000/svg" viewbox="0 0 24 24" width="16" height="16"><path color="#000" d="M 19.28125 5.28125 L 9 15.5625 L 4.71875 11.28125 L 3.28125 12.71875 L 8.28125 17.71875 L 9 18.40625 L 9.71875 17.71875 L 20.71875 6.71875 L 19.28125 5.28125 z"/></svg>
Tested in production.
</li>
</ul>
</div>
<h2 class="container-title" id="installation">Installation</h2>
<div class="container">
<h3 class="first">NPM</h3>
<code class="full"><pre>npm install vuebar --save</pre></code>
<h3>CDN</h3>
<code class="full"><pre>https://unpkg.com/vuebar</pre></code>
<h3>Manual</h3>
<p>Download the .js file directly from latest commit and include manually in your project</p>
<a class="pure-button" target="_blank" href="https://raw.githubusercontent.com/DominikSerafin/vuebar/master/vuebar.js" download>vuebar.js</a>
<h3>Alternative #1: Include in browser</h3>
<code class="full"><pre><script src="vuebar.js"></script></pre></code>
<h3>Alternative #2: Include in your build</h3>
<code class="full"><pre>import Vuebar from 'vuebar';
Vue.use(Vuebar);</pre></code>
</div>
<h2 class="container-title" id="usage">Usage</h2>
<div class="container">
<h3 class="first">Basic Markup</h3>
<code class="full"><pre>
<strong><div v-bar></strong> <span class="comment"><!-- el1 --></span>
<strong><div></strong> <span class="comment"><!-- el2 --></span>
<span class="comment"><!-- your scrollable content --></span>
<strong></div></strong>
<span class="comment"><!-- dragger will be automatically added here --></span>
<strong></div></strong>
</pre></code>
<h3>Markup with example options</h3>
<code class="full"><pre>
<strong><div v-bar="{
preventParentScroll: true,
scrollThrottle: 30,
}"></strong> <span class="comment"><!-- el1 --></span>
<strong><div></strong> <span class="comment"><!-- el2 --></span>
<span class="comment"><!-- your scrollable content --></span>
<strong></div></strong>
<span class="comment"><!-- dragger will be automatically added here --></span>
<strong></div></strong>
</pre></code>
<h3>How it works</h3>
<p>Every Vuebar scrollable content needs to be wrapped in parent element <code>el1</code> that hides the native browser scrollbar of the second parent element <code>el2</code> and it also contains the custom scrollbar element (referenced further as <code>dragger</code>) which gets appended automatically on the Vuebar initialization. </p>
<p><strong>New in 0.0.6:</strong> Instead of hiding the scrollbar using <code>el1</code> Vuebar now has a <code>useScrollbarPseudo</code> feature that hides the scrollbar using pseudo element selector <code>::-webkit-scrollbar</code>. Due to browsers limitations for now it works only on desktop Chrome & desktop Safari at the moment.</p>
<p>The Vuebar internals listen to <code>el2</code> scroll event and synchronize <code>dragger</code> position when you scroll. And vice versa - when you directly use <code>dragger</code> it listens to mouse events to detect the position of dragger and sets scroll position of <code>el2</code>.</p>
<p>Other than setting the scroll position when you use <code>dragger</code> the Vuebar doesn't interfere at all with native browser scrolling and you can listen to scroll/wheel/etc. events as you would normally do.</p>
<p>This also means the scroll behavior will remain unchanged. You'll still be able to use mouse wheel click scrolling or touch scrolling with momentum. It doesn't try to reimplement the scrolling from scratch like most of similar libraries try (with bad results).</p>
<h3>Public methods (experimental & work in progress)</h3>