-
Notifications
You must be signed in to change notification settings - Fork 14
/
index.html
1368 lines (1283 loc) · 58.9 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>
<html>
<head>
<title>Meshki: The most stylish CSS library on planet Earth!</title>
<meta charset="UTF-8">
<meta name="description" content="Meshki: The most stylish CSS library on planet Earth!">
<meta name="keywords" content="HTML,CSS,Meshki,UI,Framework,JavaScript">
<meta name="author" content="Mohammadreza Hajianpour">
<meta property="og:title" content="Meshki UI"/>
<meta property="og:type" content="website"/>
<meta property="og:image" content="https://borderliner.github.io/Meshki/meta-image.png"/>
<meta property="og:url" content="https://borderliner.github.io/Meshki/"/>
<meta property="og:description" content="Meshki: The most stylish CSS library on planet Earth!"/>
<meta name="twitter:card" content="summary">
<meta name="twitter:site" content="@Meshki_UI">
<meta name="twitter:title" content="Meshki UI">
<meta name="twitter:description" content="Meshki: The most stylish CSS library on planet Earth!">
<meta name="twitter:image" content="https://borderliner.github.io/Meshki/meta-image.png">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Roboto+Condensed:ital,wght@0,100..900;1,100..900&display=swap" rel="stylesheet">
<!-- DEVELOPMENT FILES
<link rel="stylesheet" type="text/css" href="../dist/css/meshki.min.css">
<link rel="stylesheet" type="text/css" href="../dist/plugins/meshki-extra-button-colors.min.css">
<link rel="stylesheet" type="text/css" href="../dist/plugins/meshki-light-mode.min.css">
<script type="text/javascript" src="../dist/js/meshki.min.js"></script>
<!-- DEVELOPMENT FILES -->
<!-- PRODUCTION FILES -->
<link rel="stylesheet" type="text/css" href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/meshki.min.css">
<link rel="stylesheet" type="text/css" href="https://cdn.jsdelivr.net/npm/[email protected]/dist/plugins/meshki-extra-button-colors.min.css">
<link rel="stylesheet" type="text/css" href="https://cdn.jsdelivr.net/npm/[email protected]/dist/plugins/meshki-light-mode.min.css">
<script type="text/javascript" src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/meshki.min.js"></script>
<!-- PRODUCTION FILES -->
<link rel="stylesheet" type="text/css" href="custom.css">
<link rel="stylesheet" type="text/css" href="https://cdn.jsdelivr.net/npm/@fortawesome/[email protected]/css/all.min.css">
<!--[if lt IE 9]>
<script src="https://cdnjs.cloudflare.com/ajax/libs/respond.js/1.4.2/respond.min.js"></script>
<![endif]-->
<link rel="shortcut icon" href="favicon.ico" type="image/x-icon" />
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/themes/prism.min.css">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/plugins/line-numbers/prism-line-numbers.min.css">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/themes/prism-okaidia.min.css">
</head>
<body>
<div class="sidenav push">
<a href="javascript:void(0);" class="sidenav-close-button" onclick="meshki.closeSidenav()">×</a>
<a href="">Home</a>
<a href="https://github.com/Borderliner/Meshki/issues">Issues</a>
<a href="https://github.com/Borderliner/Meshki/pulls">Pull Requests</a>
<a href="https://github.com/Borderliner/Meshki/releases">Releases</a>
<a href="rtl/">RTL Mode (Eastern)</a>
<a href="https://github.com/Borderliner/Meshki/blob/master/CHANGELOG.md">Changelog</a>
<a href="https://github.com/Borderliner/Meshki/blob/master/LICENSE">License</a>
<a href="https://plisio.net/donate/VXKr4hHx" target="_blank">Donate</a>
<a href="https://github.com/Borderliner/Meshki/blob/master/README.md">About Meshki</a>
<hr class="hide-on-non-mobile">
<div class="hide-on-non-mobile">
<a href="#buttons-doc" onclick="meshki.closeSidenav()">Buttons</a>
<a href="#sidenav-doc" onclick="meshki.closeSidenav()">Sidenav</a>
<a href="#navbar-doc" onclick="meshki.closeSidenav()">Navbar</a>
<a href="#layout-doc" onclick="meshki.closeSidenav()">Layout System</a>
<a href="#form-doc" onclick="meshki.closeSidenav()">Forms</a>
<a href="#typography-doc" onclick="meshki.closeSidenav()">Typography</a>
<a href="#tables-doc" onclick="meshki.closeSidenav()">Tables</a>
<a href="#footer-doc" onclick="meshki.closeSidenav()">Footer</a>
</div>
<hr>
<button class="button blue medium extern-twitter" onclick="location.href='https://twitter.com/Meshki_UI'"><i class="fa-brands fa-x-twitter" aria-hidden="true"></i></button>
<button class="button red medium extern-npm" onclick="location.href='https://www.npmjs.com/package/meshki'"><i class="fab fa-npm" aria-hidden="true"></i></button>
<button class="button medium extern-github" onclick="location.href='https://github.com/Borderliner/Meshki'"><i class="fab fa-github" aria-hidden="true"></i></button>
<a href="javascript:void(0)" disabled style="font-size: 1.5rem">Share on:</a>
<div class="share-links">
<a class="fb-share" href="https://www.facebook.com/sharer/sharer.php?u=https://borderliner.github.io/Meshki/" target="_blank"><i class="fab fa-facebook-square" aria-hidden="true"></i></a>
<a class="tw-share" href="https://twitter.com/home?status=https://borderliner.github.io/Meshki/" target="_blank"><i class="fa-brands fa-square-x-twitter" aria-hidden="true"></i></a>
<a class="gp-share" href="https://plus.google.com/share?url=https://borderliner.github.io/Meshki/" target="_blank"><i class="fab fa-google-plus-square" aria-hidden="true"></i></a>
</div>
</div>
<div class="container">
<div class="nav fixed">
<ul>
<li><a class="logo" href="javascript:void(0);" onclick="meshki.openSidenav()"><i class="fas fa-bars" aria-hidden="true"></i>Menu</a></li>
<li class="nav-dropdown hide-on-mobile">
<a href="javascript:void(0)" class="nav-dropdown-button">Plugins</a>
<div class="nav-dropdown-content">
<a href="rtl/">RTL Mode (Persian)</a>
<a href="#extra-button-colors">Extra Button Colors</a>
<a href="#light-mode">Light Mode</a>
</div>
</li>
<li><a href="https://github.com/Borderliner/Meshki">GitHub</a></li>
<li class="nav-dropdown hide-on-mobile">
<a href="javascript:void(0)" class="nav-dropdown-button">Components</a>
<div class="nav-dropdown-content">
<a href="#buttons-doc">Buttons</a>
<a href="#sidenav-doc">Sidenav</a>
<a href="#navbar-doc">Navbar</a>
<a href="#layout-doc">Layout System</a>
<a href="#form-doc">Forms</a>
<a href="#typography-doc">Typography</a>
<a href="#tables-doc">Tables</a>
<a href="#footer-doc">Footer</a>
</div>
</li>
<li><a href="javascript:void(0)" onclick="onModalButtonClick()">Donate</a></li>
<li class="nav-right hide-on-tablet" style="margin-right: 10px;">
<script type="text/javascript" src="finder.js"></script>
<input type="text" name="searchbox" id="searchbox" style="position: relative; top: 2px;" placeholder="Search...">
</li>
<li class="nav-right hide-on-tablet">
<button id="search-button" class="green" style="position: relative; top: 1px; padding: 9px 11px;"><i class="fas fa-search" aria-hidden="true"></i></button>
<script>
function doSearch(event) {
var searchbox = document.getElementById('searchbox')
meshkiUtil.search(event, searchbox.value)
}
document.getElementById('searchbox').addEventListener('keydown', doSearch)
document.getElementById('search-button').addEventListener('click', doSearch)
</script>
</li>
<li class="nav-right">
<button id="toggle-dark" class="btn btn-simple" style="padding: 10px 20px; position: relative; top: 1px;"><i class="fa-solid fa-moon" style="padding-right: 6px;"></i>Dark</button>
<script>
function toggleDark() {
var toggleButton = document.getElementById('toggle-dark')
var htmlElement = document.documentElement
var colorModeTitle = document.getElementById('color-mode-title')
var isLight = htmlElement.classList.contains('light-mode')
if (isLight) {
htmlElement.classList.remove('light-mode')
toggleButton.innerHTML = '<i class="fa-solid fa-moon" style="padding-right: 6px;"></i>Dark'
colorModeTitle.innerText = 'Dark'
} else {
htmlElement.classList.add('light-mode')
toggleButton.innerHTML = '<i class="fa-solid fa-sun" style="padding-right: 6px;"></i>Light'
colorModeTitle.innerText = 'Light'
}
}
document.getElementById('toggle-dark').addEventListener('click', toggleDark)
</script>
</li>
</ul>
</div>
<div class="content line-numbers">
<div class="row">
<h1 class="text-center title">Meshki</h1>
<h2 class="text-center">Stylish. <span id="color-mode-title">Dark</span>. Responsive.</h2>
</div>
<div class="row text-center download-buttons">
<div class="col twelve">
<div class="button-couple">
<a class="button red large custom-down-cdn" href="https://github.com/Borderliner/Meshki/archive/v3.0.0.zip">Download (v3.0.0)</a>
<a class="button large disabled" disabled>or</a>
<a class="button cyan large custom-down-cdn" href="javascript:void(0)" onclick="var cdn=document.getElementById('cdn');cdn.style.display=='none'?cdn.style.display='block':cdn.style.display='none';">Use CDN</a>
</div>
<br>
<pre id="cdn" style="display: none;">
<button
class="blue small clipboard-btn"
title="Copy to clipboard"
data-clipboard-target="#code-cdn"><i class="fas fa-clipboard" aria-hidden="true"></i></button>
<code class="language-html" id="code-cdn">
<link rel="stylesheet" type="text/css" href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/meshki.min.css">
<script type="text/javascript" src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/meshki.min.js"></script>
</code>
</pre>
</div>
</div>
<div class="row meshki-features" style="margin-bottom: 50px;">
<div class="four col text-center">
<i class="fas fa-clock" aria-hidden="true"></i><br>
<h4>Minimalist & Simple</h4>
<span>Design your whole UI in absolutely no time. We have done our best to keep Meshki stupidly simple and clean, and provide you with starter templates.</span>
</div>
<div class="four col text-center">
<i class="fas fa-eye" aria-hidden="true"></i><br>
<h4>Eye-Friendly</h4>
<span>Give your eyes some rest. Making use of a pleasant dark color, reading pages has never been this wonderful. It is especially important in web pages with plenty of textual content.</span>
</div>
<div class="col four text-center">
<i class="fas fa-crop-alt" aria-hidden="true"></i><br>
<h4>Professional</h4>
<span>Simplicity doesn't mean lack of features. Meshki was designed with creativity in mind, so your design can be totally different from this page.</span>
</div>
</div>
<div class="row meshki-features">
<div class="four col text-center">
<i class="fas fa-rocket" aria-hidden="true"></i><br>
<h4>Rocket-Fast</h4>
<span>By using less code and less complex logics, Meshki is light-weight and is not resource-hungry. Your browser doesn't have to render much.</span>
</div>
<div class="col four text-center">
<i class="fas fa-toolbox" aria-hidden="true"></i><br>
<h4>Zero Dependency</h4>
<span>Meshki depends on absolutely nothing! It's all vanilla JavaScript and CSS. No JQuery and Tailwind means quick setup with no hassle.</span>
</div>
<div class="col four text-center">
<i class="fas fa-chess-rook" aria-hidden="true"></i><br>
<h4>Stable</h4>
<span>Meshki has been with you for more than <span class="years-old">5</span> years now. Imagine the original stable project of Skeleton being maintained for another <span class="years-old">8</span> years!</span>
</div>
</div>
<div class="row">
<h3>What is Meshki?</h3>
<hr>
<p>
Meshki is a simple, dark-colored, responsive css library to kickstart any web UI project. It is only ~20 KiB (minified) and ~30 KiB (normal), including both CSS and JS files, which makes it superb for small to medium projects. It's easy to use, clean and is just beautiful.
It was started as a fork of <a href="http://getskeleton.com" target="_blank">Skeleton</a> project, and it still uses the same logic. Though Meshki is considered to be a totally different project than Skeleton, and it barely resembles it when you take a look at it.
Don't be afraid to check out Meshki's source code! If you've spotted any bugs, or you want to ask for some improvements, head to <a href="https://github.com/Borderliner/Meshki" target="_blank">our GitHub repository</a> and open an issue or a pull request!
</p>
</div>
<div class="row">
<h3>Why Meshki?</h3>
<hr>
<p>
There are tons of UI libraries out there in the wild, but what makes Meshki different?
</p>
<p>
Meshki tends to be light-weight, but useful. Contrary to most "light-weight" libraries, Meshki doesn't sacrifice usability for just being light-weight. This means that you don't need to reinvent the wheel, and many common components are ready for you to use out-of-the-box. I mean, everybody can create libraries less than 20 KiB, but does that actually make them useful?
</p>
<p>
Also, Meshki strives to bring you a clean eye-candy interface, the dark color doesn't hurt your eyes, and brings simplicity and elegance together. One of the main goals of Meshki is to be stable and reliable, so we try to provide you with regular updates and fixes as much as we can. Meshki is pretty stable right now.
</p>
<p>
Meshki and Skeleton have vast differences. Although Meshki is derived from Skeleton, it's far more complete than her parent. Just have a look at Skeleton's website. Most of the code there doesn't belong to original Skeleton and there are many custom CSS alongside the site. <b>But this website is pure Meshki</b>, and uses <a href="custom.css" id="components" target="_blank">custom.css</a> to customize website-related stuff.
</p>
</div>
<div class="row">
<h3>Getting Started</h3>
<hr>
<p>
Meshki uses a fixed structure to lessen the burden of setting extra ids and classes. So you always need to create the same structure for all your apps. Don't worry, this structure is very basic and it does not limit you in any ways. You can check out the <a href="./boilerplate.html" target="_blank">Boilerplate</a>'s source code to get started quickly.<br>
First of all, you need to have a <code><div></code> with the <code>sidenav</code> class, just after the beginning of the body. Your <a href="#sidenav-doc">sidenav</a>'s links will reside in here. Then, you need to create a <code><div></code> after the sidenav's div, with the <code>container</code> class. The rest of your body should be created inside the "container" div. Inspect the elements on this page to understand the structure. Ah! Here's a sample code:<br>
</p>
<pre>
<button
class="blue small clipboard-btn"
title="Copy to clipboard"
data-clipboard-target="#code-get-started"><i class="fas fa-clipboard" aria-hidden="true"></i></button>
<code class="language-html" id="code-get-started">
<!DOCTYPE html>
<html>
<head>
<title>Meshki</title>
<meta charset="UTF-8">
<!-- Make the page Mobile-Friendly -->
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- Add OpenSans font -->
<link href="https://fonts.googleapis.com/css?family=Open+Sans" rel="stylesheet">
<!-- Add Meshki's files -->
<link rel="stylesheet" type="text/css" href="dist/css/meshki.min.css">
<script type="text/javascript" src="dist/js/meshki.min.js"></script>
</head>
<body>
<div class="sidenav">
<!-- Sidenav links here -->
</div>
<div class="container">
<!-- This is your navbar -->
<nav>
<ul>
<li><a class="logo" href="javascript:void(0)">My Website</a></li>
</ul>
</nav>
<!-- The main content goes here -->
<div class="content">
<h3>Welcome to my cool website</h3>
<p>This is a sample paragraph.</p>
</div>
<!-- And finally, your cool footer -->
<footer>
<div class="row">
<div class="six col">
<p>A text on the footer</p>
</div>
</div>
</footer>
</div>
</body>
</html>
</code>
</pre>
<div class="row">
<figure class="twelve centerize text-center">
<img class="responsive" src="meshki_structure.png" />
<figcaption>
The above picture demonstrates the recommended structure for your application.
<br>
Of course, using Sidenav is optional, so are Navbar and Footer.
</figcaption>
</figure>
</div>
</div>
<div class="row">
<h3>Components</h3>
<hr>
<p>
Meshki has various ready-to-use components which you can create anywhere you like. Keep in mind that <u>being small and "enough" are our main goals</u>, and <u> Meshki is not a full-fledged UI framework</u>, therefore you may need to add extra libraries for other fancy stuff. However, most of the common components are ready to use and well-tested. But don't worry! We'll make sure that you always get the most stable UI and a beautiful experience, and we may add extra components from time to time.<br />
Here are a list of components and how you can put them into use:
</p>
</div>
<div class="row">
<div id="buttons-doc"></div>
<h4>Buttons</h4>
<hr>
<p>
You can create buttons easily with <code><a></code>, <code><button></code>, <code><input type="submit"></code>, <code><input type="reset"></code> and <code><input type="button"></code>. There are also five different types of buttons:
</p>
<div class="row">
<div class="six col text-center">
<p>Default buttons</p>
<a class="button small">Simple</a>
<button class="blue medium">Blue</button>
<input type="submit" class="green large" value="Green" />
<input type="reset" class="red medium" value="Red" />
<input type="button" class="orange small" value="Orange" />
<div class="button-couple">
<button class="blue medium">Agree</button>
<button class="medium disabled" disabled>or</button>
<button class="red medium">Disagree</button>
</div>
</div>
<div class="six col text-center">
<p>Expanded buttons</p>
<button class="blue expand small">Small Expanded Button</button>
<button class="red expand medium">Medium Expanded Button</button>
<button class="expand medium" disabled>Disabled Medium Expanded Button</button>
<button class="expand large">Large Expanded Button</button>
</div>
<div class="row text-center">
<div class="col six offset-by-three">
<p>These require "extra-button-colors" plugin.</p>
<button class="cyan medium expand">Cyan</button>
<button class="rose medium expand">Rose</button>
<button class="yellow medium expand">Yellow</button>
<span>and <a href="#extra-button-colors">more...</a></span>
</div>
</div>
</div>
<div class="row">
<div class="col twelve">
<span>Here's the code for them:</span><br><br>
<pre>
<button
class="blue small clipboard-btn"
title="Copy to clipboard"
data-clipboard-target="#code-buttons"><i class="fas fa-clipboard" aria-hidden="true"></i></button>
<code class="language-html" id="code-buttons">
<a class="button small">Simple</a>
<button class="blue medium">Blue</button>
<input type="submit" class="green large" value="Green" />
<input type="reset" class="red medium" value="Red" />
<input type="button" class="orange small" value="Orange" />
<div class="button-couple">
<button class="blue medium">Agree</button>
<button class="medium disabled">or</button>
<button class="red medium">Disagree</button>
</div>
<button class="expand large">Large Expanded Button</button>
</code>
</pre>
</div>
</div>
</div>
<div class="row">
<div id="sidenav-doc"></div>
<h4>Sidenav</h4>
<hr>
<p>
Creating a sidenav is easy: Just create a <code><div></code> with the <code>sidenav</code> class after the opening body tag. Then add <code><a></code> tags to make sidenav links. It's pretty easy and straight-forward. Use the JavaScript functions of <code>meshki.openSidenav()</code> and <code>meshki.closeSidenav()</code> on events to open and close sidenav respectively. You can also add <code>push</code> class to make if even more fun! Here's an example for your convenience:
</p>
<pre>
<button
class="blue small clipboard-btn"
title="Copy to clipboard"
data-clipboard-target="#code-sidenav"><i class="fas fa-clipboard" aria-hidden="true"></i></button>
<code class="language-html" id="code-sidenav">
<body>
<div class="sidenav push">
<!-- Note that javascript:void(0) stops your page from jumping to the top -->
<a href="javascript:void(0)" class="sidenav-close-button" onclick="meshki.closeSidenav()">&times;</a>
<a href="">Home</a>
<a href="https://github.com/Borderliner/Meshki">GitHub</a>
<a href="https://github.com/Borderliner/Meshki/blob/master/CHANGELOG.md">News</a>
<a href="https://github.com/Borderliner/Meshki/blob/master/README.md">About Meshki</a>
<hr>
<a href="javascript:void(0)" disabled>Share on:</a>
</div>
</code>
</pre>
</div>
<div class="row">
<div id="navbar-doc"></div>
<h4>Navbar</h4>
<hr>
<p>
Meshki comes with a beautiful navbar built-in. At the beginning of the <code>div.content</code>, create a <code><div class="nav"></code> or a <code><nav></code>, and then create a <code><ul></code> inside that. Now any <code><li><a href="#">Link</a></li></code> inside the <code><ul></code> will appear as a button in the navbar. You can also add the <code>fixed</code> class to your nav to make the navbar fixed.
</p>
<pre>
<button
class="blue small clipboard-btn"
title="Copy to clipboard"
data-clipboard-target="#code-navbar"><i class="fas fa-clipboard" aria-hidden="true"></i></button>
<code class="language-html" id="code-navbar">
<nav class="fixed">
<ul>
<!-- Note that javascript:void(0) stops your page from jumping to the top -->
<li><a class="logo" href="javascript:void(0)" onclick="meshki.openSidenav()">Meshki</a></li>
<li><a href="https://github.com/Borderliner/Meshki/releases">News</a></li>
<li><a href="https://github.com/Borderliner/Meshki">GitHub</a></li>
<!-- Dropdown in Nav -->
<li class="nav-dropdown">
<a href="javascript:void(0)" class="nav-dropdown-button">Title</a>
<div class="nav-dropdown-content">
<a href="#">Sub 1</a>
<a href="#">Sub 2</a>
<a href="#">Sub 3</a>
</div>
</li>
</ul>
</nav>
</code>
</pre>
</div>
<div class="row">
<div id="layout-doc"></div>
<h4>The Layout System</h4>
<hr>
<h5>Grid Layout</h5>
<p>
The grid is a <u>12-col fluid grid with a max width of 960px</u>, that shrinks with the browser/device at smaller sizes. The max width can be changed with one line of CSS and all col will resize accordingly. The syntax is simple and it makes coding responsive much easier. Go ahead, resize the browser.<br>
<b>Note</b>: The col must be the first elements at the beginning of a <code>row</code>. <u>This is very important.</u>
</p>
</div>
<div class="row grid-table">
<div>
<div class="one col">ONE</div>
<div class="eleven col">ELEVEN</div>
</div>
<div>
<div class="two col">TWO</div>
<div class="ten col">TEN</div>
</div>
<div>
<div class="three col">THREE</div>
<div class="nine col">NINE</div>
</div>
<div>
<div class="four col">FOUR</div>
<div class="eight col">EIGHT</div>
</div>
<div>
<div class="five col">FIVE</div>
<div class="seven col">SEVEN</div>
</div>
<div>
<div class="six col">SIX</div>
<div class="six col">SIX</div>
</div>
<div>
<div class="seven col">SEVEN</div>
<div class="five col">FIVE</div>
</div>
<div>
<div class="eight col">EIGHT</div>
<div class="four col">FOUR</div>
</div>
<div>
<div class="nine col">NINE</div>
<div class="three col">THREE</div>
</div>
<div>
<div class="ten col">TEN</div>
<div class="two col">TWO</div>
</div>
<div>
<div class="eleven col">ELEVEN</div>
<div class="one col" style="margin-bottom: 50px">ONE</div>
</div>
<div>
<div class="six col">NO OFFSET</div>
<div class="six col">SIX</div>
</div>
<div>
<div class="six offset-by-two col">OFFSET BY 1/6</div>
<div class="four col">FOUR</div>
</div>
<div>
<div class="six offset-by-one-third col">OFFSET BY 1/3</div>
<div class="two col">TWO</div>
</div>
<div>
<div class="six offset-by-one-half col">OFFSET BY 1/2</div>
</div>
</div>
<div class="row">
<p>
Here's the code for how to use the grid system:
</p>
<pre>
<button
class="blue small clipboard-btn"
title="Copy to clipboard"
data-clipboard-target="#code-grid"><i class="fas fa-clipboard" aria-hidden="true"></i></button>
<code class="language-html" id="code-grid">
<div class="row">
<div class="one col">
A div with one col length
</div>
<div class="eleven col">
A div with eleven col length
</div>
</div>
<div class="row">
<div class="one-third col">
A div with one-third of the screen's length
</div>
<div class="two-thirds col">
A div with two-thirds of the screen's length
</div>
</div>
<div class="row">
<div class="one-half col">
A div with half of the screen's length
</div>
<div class="one-half col">
A div with the other half of the screen's length
</div>
</div>
<div class="row">
<div class="six offset-by-two col">
<!-- Pushes a six-width-element by two units >
</div>
<div class="two col">
<!-- The rest of the screen >
</div>
</div>
</code>
</pre>
</div>
<div class="row">
<h5>Flexbox Layout (New)</h5>
<p>
Flexbox is a <u>one-dimensional layout method</u> for arranging items in rows or columns. Items flex (expand) to fill additional space or shrink to fit into smaller spaces.
</p>
<p>You can see all the helpers of a <a href="https://github.com/Borderliner/Meshki/blob/master/src/scss/layout/flex.scss" target="_blank">Flexbox</a>.</p>
</div>
<div class="row grid-table">
<span>Horizontal Flex</span>
<div class="flexbox row">
<div class="flex one">Flex One</div>
<div class="flex three">Flex Three</div>
<div class="flex five">Flex Five</div>
</div>
<span>Vertical Flex</span>
<div class="flexbox col">
<div>One</div>
<div>Two</div>
<div>Three</div>
</div>
</div>
<div class="row">
<pre>
<button
class="blue small clipboard-btn"
title="Copy to clipboard"
data-clipboard-target="#code-flex"><i class="fas fa-clipboard" aria-hidden="true"></i></button>
<code class="language-html" id="code-flex">
<!-- Horizontal Flexbox -->
<div class="flexbox row">
<div class="flex one">
A div with one unit of flex expansion
</div>
<div class="flex three">
A div with three unit of flex expansion
</div>
</div>
<!-- Vertical Flexbox -->
<div class="flexbox col">
<div>
A vertical flex div
</div>
<div>
The second vertical flex div
</div>
</div>
</code>
</pre>
</div>
<div class="row">
<h5>General Helpers (New)</h5>
<p>
We've added basic general helpers for your convenience. Check them out <a href="https://github.com/Borderliner/Meshki/blob/master/src/scss/layout/general.scss" target="_blank">here</a>.
</p>
</div>
<div class="row">
<pre>
<button
class="blue small clipboard-btn"
title="Copy to clipboard"
data-clipboard-target="#code-general"><i class="fas fa-clipboard" aria-hidden="true"></i></button>
<code class="language-css" id="code-general">
.block {
display: block;
}
.invisible {
visibility: hidden !important;
}
.relative {
position: relative;
}
.fit {
position: absolute;
top: 0;
right: 0;
bottom: 0;
left: 0;
}
.scroll {
-webkit-overflow-scrolling: touch;
overflow: auto;
}
</code>
</pre>
</div>
<div class="row">
<div id="form-doc"></div>
<h4>Form Elements</h4>
<hr>
<p>
Meshki also has customized form elements, which are just as beautiful as the others. Here are some examples of form elements you can use:
</p>
</div>
<div class="row">
<div class="six col">
<label for="user1">Username:</label>
<input id="user1" class="expand" type="text" name="user1" placeholder="Enter your username">
</div>
<div class="six col">
<label for="pass1">Password:</label>
<input id="pass1" class="expand" type="password" name="pass1" placeholder="Enter your password">
</div>
</div>
<div class="row">
<div class="twelve col">
<label for="dis-email1">Email:</label>
<input id="dis-email1" class="expand" type="email" name="dis-email1" value="[email protected]" disabled>
</div>
</div>
<div class="row">
<div class="twelve col">
<textarea class="expand custom-textarea">This is a sample <textarea> element. The corners are round, and there's a glowing effect when you select an element. You can also expand it!</textarea>
</div>
</div>
<div class="row">
<div class="six col">
<select class="expand">
<option selected disabled hidden>Choose your country</option>
<option value="us">United Stated</option>
<option value="ca">Canada</option>
<option value="de">Germany</option>
<option value="jp">Japan</option>
</select>
</div>
<div class="six col">
<select class="expand" disabled style="width: 100%">
<option selected disabled hidden>This dropdown is disabled</option>
<option value="us">United Stated</option>
<option value="ca">Canada</option>
<option value="de">Germany</option>
<option value="jp">Japan</option>
</select>
</div>
</div>
<div class="row">
<div class="six col">
<input id="rad-male" type="radio" name="gender" value="male">
<label for="rad-male" class="radio">Male</label>
<input id="rad-female" type="radio" name="gender" value="female">
<label for="rad-female" class="radio">Female</label>
<input id="rad-other" type="radio" name="gender" value="other">
<label for="rad-other" class="radio">Other</label>
</div>
<div class="six col">
<input id="chk-eula" type="checkbox" name="chk-eula">
<label for="chk-eula" class="checkbox">I've read and agree with Terms of Service.</label>
<input id="chk-news" type="checkbox" name="chk-news">
<label for="chk-news" class="checkbox">I wish to receive newsletters from this site.</label>
</div>
</div>
<div class="row">
<div class="row">
<div class="col four flexbox flow-row">
<span class="flex-2">Simple switch</span>
<label class="switch flex-1">
<input type="checkbox">
<span class="slider"></span>
</label>
</div>
<div class="col four flexbox flow-row">
<span class="flex-2">Primary switch</span>
<label class="switch blue flex-1">
<input type="checkbox">
<span class="slider"></span>
</label>
</div>
<div class="col four flexbox flow-row">
<span class="flex-2">Success switch</span>
<label class="switch green flex-1">
<input type="checkbox">
<span class="slider"></span>
</label>
</div>
</div>
<div class="row">
<div class="col four flexbox flow-row">
<span class="flex-2">Warning switch</span>
<label class="switch orange flex-1">
<input type="checkbox">
<span class="slider"></span>
</label>
</div>
<div class="col four flexbox flow-row">
<span class="flex-2">Error switch</span>
<label class="switch red flex-1">
<input type="checkbox">
<span class="slider"></span>
</label>
</div>
</div>
</div>
<div class="row">
<div class="two col">
Budget: <span id="percent_value">0</span> $
</div>
<div class="nine col">
<input class="expand" type="range" id="percent" name="percent" min="0" max="100" step="1" value="0">
</div>
<div class="one col">
<span>100 $</span>
</div>
</div>
<div class="row">
<div class="twelve col">
<fieldset>
<legend>Overview</legend>
<span><b>First Name</b>: Walter</span><br>
<span><b>Last Name</b>: White</span><br>
<span><b>Age</b>: 50</span><br>
<span><b>Location</b>: Albuquerque, New Mexico</span>
</fieldset>
</div>
</div>
<div class="row text-center">
<button class="blue expand">Submit</button>
</div>
<br />
<div class="row">
<p>
This is the code snippet on how you can use form elements:
</p>
<pre>
<button
class="blue small clipboard-btn"
title="Copy to clipboard"
data-clipboard-target="#code-forms"><i class="fas fa-clipboard" aria-hidden="true"></i></button>
<code class="language-html" id="code-forms">
<form>
<!--Text Inputs -->
<div class="row">
<div class="six col">
<label for="user1">Username:</label>
<input id="user1" class="expand" type="text" name="user1" placeholder="Enter text here">
</div>
<div class="six col">
<label for="pass1">Password:</label>
<input id="pass1" class="expand" type="password" name="pass1">
</div>
</div>
<!--Disabled Text Inputs -->
<div class="row">
<div class="twelve col">
<label for="dis-email1">Email:</label>
<input id="dis-email1" class="expand" type="email" name="dis-email1" value="[email protected]" disabled>
</div>
</div>
<!--Text Area -->
<div class="row">
<div class="twelve col">
<textarea class="expand">This is a sample <textarea> element.</textarea>
</div>
</div>
<!--Dropdown -->
<div class="row">
<div class="six col">
<select class="expand">
<option selected disabled hidden>Choose your country</option>
<option value="us">United Stated</option>
<option value="ca">Canada</option>
<option value="de">Germany</option>
<option value="jp">Japan</option>
</select>
</div>
</div>
<!--Checkboxes and Radio Buttons -->
<div class="row">
<div class="six col">
<input id="rad-male" type="radio" name="gender" value="male">
<label for="rad-male" class="radio">Male</label>
<input id="rad-female" type="radio" name="gender" value="female">
<label for="rad-female" class="radio">Female</label>
<input id="rad-other" type="radio" name="gender" value="other">
<label for="rad-other" class="radio">Other</label>
</div>
<div class="six col">
<input id="chk-eula" type="checkbox" name="chk-eula">
<label for="chk-eula" class="checkbox">I've read and agree with Terms of Service.</label>
<input id="chk-news" type="checkbox" name="chk-news">
<label for="chk-news" class="checkbox">I wish to receive newsletters from this site.</label>
</div>
</div>
<!-- Slider -->
<div class="row">
<input class="expand" type="range" name="percent" min="0" max="100" step="1" value="0">
</div>
<!-- Field Set -->
<fieldset>
<legend>Overview</legend>
<span>First Name: Walter</span>
<span>Last Name: White</span>
<span>Age: 50</span>
<span>Location: Albuquerque, New Mexico</span>
</fieldset>
</form>
</code>
</pre>
</div>
<div class="row">
<div id="typography-doc"></div>
<h4>Typography</h4>
<hr>
<p>
Type is all set with the <code>rem</code>, so font-sizes and special relationships can be responsively sized based on a single <code><html></code> font-size property. Out of the box, Meshki never changes the <code><html></code> font-size, but it's there in case you need it for your project. All measurements are still base on 10 though, so a <code><h1></code> with <code>5.0rem</code> font-size just means <code>50px</code>.
</p>
</div>
<div class="row">
<div class="six col">
The typography base is <a href="https://fonts.google.com/specimen/Open+Sans">Open Sans</a> font, which is served by Google, set at 1.5rem (15px) over a 1.6 line height (24px). Other type basics like <a href="javascript:void(0);">anchors</a>, <b>strong</b>, <i>emphasis</i>, and <u>underline</u> are all obviously included.
</div>
<div class="six col">
<h1>Heading <span class="heading-font-size"><code><h1></code> 50rem</span></h1>
<h2>Heading <span class="heading-font-size"><code><h2></code> 42rem</span></h2>
<h3>Heading <span class="heading-font-size"><code><h3></code> 36rem</span></h3>
<h4>Heading <span class="heading-font-size"><code><h4></code> 30rem</span></h4>
<h5>Heading <span class="heading-font-size"><code><h5></code> 24rem</span></h5>
<h6>Heading <span class="heading-font-size"><code><h6></code> 15rem</span></h6>
</div>
</div>
<div class="row">
<h4>Code</h4>
<hr>
<p>
Code styling is kept basic: just wrap anything in a <code><code></code> and it will appear like <code>this</code>. It also has a <code class="filled">filled</code> style. For blocks of code, wrap a <code> with a <pre>.
<br> Note that for blocks of code, <code class="filled">filled</code> class needs to be added to the <code><pre></code>, not <code><code></code>.
</p>
<p>Pay attention that Meshki doesn't contain syntax highlighting as you can see on this webpage. We use <a href="http://prismjs.com/">Prism</a> for this website. Check it out!</p>
</div>
<div class="row">
<div class="twelve col">
<pre>
<code>
<code>npm install meshki</code>
<pre>
<code>
.some-class {
background-color: red;
}
</code>
</pre>
</code>
</pre>
<pre class="filled">
<code>
<code class="filled">npm install meshki</code>
<pre class="filled">
<code>
(function(
console.log('Hello world!');
))();
</code>
</pre>
</code>
</pre>
</div>
</div>
<div class="row">
<div id="tables-doc"></div>
<h4>Tables</h4>
<hr>
<p>
Be sure to use properly formed table markup with <code><thead></code> and <code><tbody></code> when building a <code>table</code>.
</p>
<p>
You can customize your table with the below classes:
<ul>
<li><code>hoverable</code> : Makes your table's rows highlighted when hovering over them with mouse.</li>
<li><code>striped</code> : It stripes your table (even rows, except the header).</li>
</ul>
</p>
</div>
<div class="row">
<div class="twelve col">
Toggle: <button class="medium" onclick="var tbl=document.getElementById('table-example');tbl.classList.contains('striped')?(tbl.className='expand hoverable', this.innerHTML='Not Striped', this.className='medium'):(tbl.className='expand hoverable striped', this.innerHTML='Striped', this.className='medium blue')">Not Striped</button>
<table class="expand hoverable" id="table-example">
<thead>
<tr>
<th>Name</th>
<th>Age</th>
<th>Sex</th>
<th>Location</th>
</tr>
</thead>
<tbody>
<tr>
<td>Mohammadreza Hajianpour</td>
<td>23</td>
<td>Male</td>
<td>Iran</td>
</tr>
<tr>
<td>Carl Johnson</td>
<td>48</td>
<td>Male</td>
<td>Los Santos</td>
</tr>
<tr>
<td>Malena Morgan</td>
<td>25</td>
<td>Female</td>
<td>Florida</td>
</tr>
<tr>
<td>Harry Truman</td>
<td>88</td>
<td>Male</td>
<td>Missouri</td>
</tr>
</tbody>