-
Notifications
You must be signed in to change notification settings - Fork 0
/
components.html
executable file
·1016 lines (907 loc) · 35.2 KB
/
components.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 lang="en">
<head>
<meta charset="utf-8">
<title>Components · Flat UI Free</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<!-- Loading Bootstrap -->
<link href="bootstrap/css/bootstrap.css" rel="stylesheet">
<link href="bootstrap/css/prettify.css" rel="stylesheet">
<!-- Loading Flat UI -->
<link href="css/flat-ui.css" rel="stylesheet">
<link href="css/docs.css" rel="stylesheet">
<link rel="shortcut icon" href="images/favicon.ico">
<!-- HTML5 shim, for IE6-8 support of HTML5 elements. All other JS at the end of file. -->
<!--[if lt IE 9]>
<script src="js/html5shiv.js"></script>
<![endif]-->
</head>
<body>
<ul class="demo-sidebar hide-on-tablets">
<li><a href="#fui-button">Button</a></li>
<li><a href="#fui-checkbox">Checkbox</a></li>
<li><a href="#fui-radio">Radio</a></li>
<li><a href="#fui-dropdown">Dropdown</a></li>
<li><a href="#fui-input">Input</a></li>
<li><a href="#fui-navbar">Navbar</a></li>
<li><a href="#fui-pager">Pager</a></li>
<li><a href="#fui-pagination">Pagination</a></li>
<li><a href="#fui-progress">Progress</a></li>
<li><a href="#fui-select">Select</a></li>
<li><a href="#fui-switch">Switch</a></li>
<li><a href="#fui-tagsinput">Tags Input</a></li>
<li><a href="#fui-tooltip">Tooltip</a></li>
<li><a href="#fui-slider">Slider</a></li>
</ul> <!-- /nav -->
<h1 class="demo-headline">Components</h1>
<div class="container">
<div id="fui-button" class="pbl"></div>
<div class="demo-row">
<div class="demo-title">
<h3>Button</h3>
</div>
<div class="demo-content">
<p>
After restyling <a href="http://getbootstrap.com/css/#buttons">Bootstrap buttons</a> we decided to add <code>btn-hg</code> size that will be used for main call to actions on a page:
</p>
<p class="mbl">
<button class="btn btn-hg btn-primary">Huge Button</button>
</p>
<pre class="prettyprint">
<button class="btn btn-hg btn-primary">
Boss Button
</button>
</pre>
<p class="ptl">
In some cases buttons should become wider. Yes, we did that as well:
</p>
<p class="mbl">
<button class="btn btn-wide btn-primary mrm">Save</button>
<button class="btn btn-wide btn-default">Cancel</button>
</p>
<pre class="prettyprint">
<button class="btn btn-default btn-wide">
Cancel
</button>
</pre>
<p class="ptl">
One more new thing: <code>btn-tip</code>. Use it when need to highlight a part of the button text:
</p>
<p class="mbl">
<button class="btn btn-primary">
Save
<span class="btn-tip">$300</span>
</button>
</p>
<pre class="prettyprint">
<button class="btn btn-primary">
Save
<span class="btn-tip">$300</span>
</button>
</pre>
<p class="ptl">
As usual you can set different colors:
</p>
<p>
<button class="btn btn-default mrs">Default</button>
<button class="btn btn-primary mrs">Primary</button>
<button class="btn btn-info mrs">Info</button>
<button class="btn btn-danger mrs">Danger</button>
</p>
<p class="mbl">
<button class="btn btn-success mrs">Success</button>
<button class="btn btn-warning mrs">Warning</button>
<button class="btn btn-inverse mrs">Inverse</button>
</p>
<pre class="prettyprint">
<button class="btn btn-default">Default</button>
<button class="btn btn-primary">Primary</button>
<button class="btn btn-info">Info</button>
<button class="btn btn-danger">Danger</button>
<button class="btn btn-success">Success</button>
<button class="btn btn-warning">Warning</button>
<button class="btn btn-inverse">Inverse</button>
</pre>
<p>
Button groups, toolbar, disabled state also work as expected.
</p>
</div>
</div><!-- /.demo-row -->
<div id="fui-checkbox" class="pbl"></div>
<div class="demo-row">
<div class="demo-title">
<h3>Checkbox</h3>
</div>
<div class="demo-content">
<p>
Using flat style checkbox requires JS plugin that creates all custom markup for us. Let's take a look:
</p>
<label class="checkbox" for="checkbox1">
<input type="checkbox" value="" id="checkbox1" data-toggle="checkbox">
Checkbox
</label>
<label class="checkbox" for="checkbox2">
<input type="checkbox" value="" id="checkbox2" checked="checked" data-toggle="checkbox">
Checkbox
</label>
<label class="checkbox" for="checkbox3">
<input type="checkbox" value="" id="checkbox3" data-toggle="checkbox" disabled="">
Checkbox
</label>
<label class="checkbox" for="checkbox4">
<input type="checkbox" value="" id="checkbox4" checked="checked" data-toggle="checkbox" disabled="">
Checkbox
</label>
<h6 class="ptl">Usage via data attributes:</h6>
<pre class="prettyprint">
<label class="checkbox" for="checkbox1">
<input type="checkbox" value="" id="checkbox1" data-toggle="checkbox">
Checkbox
</label>
</pre>
<h6 class="ptl">Usage via JS:</h6>
<pre class="prettyprint">
$(':checkbox').checkbox();
</pre>
<div class="pvm">
<h6>Methods</h6>
</div>
<p class="mbl">
<strong>.checkbox('toggle')</strong>
<br/>
toggles checkbox state from <span class="text-info">checked</span>
to <span class="text-info">unchecked</span> and back.
</p>
<p class="mbl">
<strong>.checkbox('check')</strong>
<br/>
sets checkbox state to <span class="text-info">checked</span>.
</p>
<p class="mbl">
<strong>.checkbox('uncheck')</strong>
<br/>
sets checkbox state to <span class="text-info">unchecked</span>.
</p>
<pre class="prettyprint">
$(':checkbox').checkbox('check');
</pre>
<div class="pbm ptl">
<h6>Events</h6>
</div>
<p class="mbl">
<strong>.on('toggle')</strong>
<br/>
Fired when checkbox state changed between
<span class="text-info">check</span> ↔
<span class="text-info">uncheck</span>.
</p>
<p class="mbl">
<strong>.on('change')</strong>
<br/>
Same as <span class="text-info">toggle</span>.
</p>
<pre class="prettyprint">
$(':checkbox').on('toggle', function() {
// Do something
});
</pre>
</div> <!-- /.demo-content -->
</div> <!-- /.demo-row -->
<div id="fui-radio" class="pbl"></div>
<div class="demo-row">
<div class="demo-title">
<h3>Radio</h3>
</div>
<div class="demo-content">
<p>
Firm radio also requires using JS plugin. We try making things easy so you won't have to spend huge amount of time playing around with custom components.
</p>
<label class="radio">
<input type="radio" name="group1" value="1" data-toggle="radio">
Radio is off
</label>
<label class="radio">
<input type="radio" name="group1" value="2" data-toggle="radio" checked>
Radio is on
</label>
<label class="radio">
<input type="radio" name="group2" value="1" data-toggle="radio" disabled>
Radio is off
</label>
<label class="radio">
<input type="radio" name="group2" value="2" data-toggle="radio" disabled checked>
Radio is on
</label>
<h6 class="ptl">Usage via data attributes:</h6>
<pre class="prettyprint">
<label class="radio">
<input type="radio" name="group1" value="1" data-toggle="radio">
Radio is off
</label>
<label class="radio">
<input type="radio" name="group1" value="2" data-toggle="radio" checked>
Radio is on
</label>
</pre>
<h6 class="ptl">Usage via JS:</h6>
<pre class="prettyprint">
$(':radio').radio();
</pre>
<div class="pvm">
<h6>Methods</h6>
</div>
<p class="mbl">
<strong>.radio('check')</strong>
<br/>
sets radio state to <span class="text-info">checked</span>.
</p>
<p class="mbl">
<strong>.radio('uncheck')</strong>
<br/>
sets radio state to <span class="text-info">unchecked</span>.
</p>
<pre class="prettyprint">
$(':radio').radio('check');
</pre>
<div class="pbm ptl">
<h6>Events</h6>
</div>
<p class="mbl">
<strong>.on('toggle')</strong>
<br/>
Fired when radio state changed between
<span class="text-info">check</span> ↔
<span class="text-info">uncheck</span>.
</p>
<p class="mbl">
<strong>.on('change')</strong>
<br/>
Same as <span class="text-info">toggle</span> with just one difference — event sends for each radio which state was changed.
</p>
<pre class="prettyprint">
$(':radio').on('toggle', function() {
// Do something
});
</pre>
</div> <!-- /.demo-content -->
</div> <!-- /.demo-row -->
</div><!-- /.container -->
<div class="container ptl">
<div id="fui-dropdown" class="pbl"></div>
<div class="demo-row">
<div class="demo-title">
<h3>Dropdown</h3>
</div>
<div class="demo-content">
<p class="mbl">
Same <a href="http://getbootstrap.com/components/#dropdowns">Bootstrap dropdown</a> used as a part of the <code>select</code>, <code>btn-group</code>, <code>nav-tabs</code> and eventually other components to present information as a menu.
</p>
<p class="mbl">
Notice <code>dropdown-arrow</code> which is needed when you want to add a small triangle that visually connects clickable element with a dropdown menu.
</p>
<select name="info" class="mbn">
<optgroup label="Profile">
<option value="0">My Profile</option>
<option value="1">My Friends</option>
</optgroup>
<optgroup label="System">
<option value="2">Messages</option>
<option value="3">My Settings</option>
<option value="4" class="highlighted">Logout</option>
</optgroup>
</select>
<hr/>
<div class="row">
<div class="col-md-3">
<div class="dropdown">
<button class="btn btn-primary dropdown-toggle" data-toggle="dropdown">Dropdown<span class="caret"></span></button>
<span class="dropdown-arrow dropdown-arrow-inverse"></span>
<ul class="dropdown-menu dropdown-inverse">
<li><a href="#fakelink">Sub Menu Element</a></li>
<li><a href="#fakelink">Sub Menu Element</a></li>
<li><a href="#fakelink">Sub Menu Element</a></li>
</ul>
</div>
</div>
</div>
<div class="pvl">
<pre class="prettyprint">
<!-- Default look -->
<div class="dropdown">
<button class="btn btn-primary dropdown-toggle" data-toggle="dropdown">Dropdown<span class="caret"></span></button>
<span class="dropdown-arrow"></span>
<ul class="dropdown-menu">
<li><a href="#fakelink">Sub Menu Element</a></li>
<li><a href="#fakelink">Sub Menu Element</a></li>
<li><a href="#fakelink">Sub Menu Element</a></li>
</u>
</div>
<!-- Inverse look -->
<div class="dropdown">
<button class="btn btn-primary dropdown-toggle" data-toggle="dropdown">Dropdown<span class="caret"></span></button>
<span class="dropdown-arrow dropdown-arrow-inverse"></span>
<ul class="dropdown-menu dropdown-inverse">
<li><a href="#fakelink">Sub Menu Element</a></li>
<li><a href="#fakelink">Sub Menu Element</a></li>
<li><a href="#fakelink">Sub Menu Element</a></li>
</u>
</div>
</pre>
</div>
<p>
For highlighting information we added 2 additional states for the dropdown-menu items: <code>selected</code> and <code>highlighted</code>:
</p>
<pre class="prettyprint">
<ul class="dropdown-menu">
<li class="selected">
<a href="#">Item</a>
</li>
<li class="highlighted">
<a href="#">Item</a>
</li>
</ul>
</pre>
</div> <!-- /.demo-content -->
</div> <!-- /.demo-row -->
<div id="fui-input" class="pbl"></div>
<div class="demo-row">
<div class="demo-title">
<h3>Input</h3>
</div>
<div class="demo-content">
<p class="mbl">
Restyled <a href="http://getbootstrap.com/css/#forms">Bootstrap input</a>. Added <span class="text-info">flat</span> style(to remove borders completely):
</p>
<div class="row">
<div class="col-lg-5">
<input type="text" value="" placeholder="Enter something" class="form-control" />
</div>
</div>
<hr />
<div class="row">
<div class="col-lg-5">
<input type="text" value="" placeholder="Enter something" class="form-control flat" />
</div>
</div>
<pre class="prettyprint mtl">
<!-- Default input -->
<input type="text" placeholder="Enter something" class="form-control" />
<!-- Without borders -->
<input type="text" placeholder="Enter something" class="form-control flat" />
</pre>
<p class="ptl">And few sizes:</p>
<div class="row">
<div class="col-lg-5">
<input type="text" value="" placeholder="Huge" class="form-control input-hg" />
</div>
</div>
<hr />
<div class="row">
<div class="col-lg-5">
<input type="text" value="" placeholder="Large" class="form-control input-lg" />
</div>
</div>
<hr />
<div class="row">
<div class="col-lg-5">
<input type="text" value="" placeholder="Default" class="form-control" />
</div>
</div>
<hr />
<div class="row">
<div class="col-lg-5">
<input type="text" value="" placeholder="Small" class="form-control input-sm" />
</div>
</div>
<pre class="prettyprint mtl">
<input type="text" class="form-control input-hg" placeholder="Huge" />
<input type="text" class="form-control input-lg" placeholder="Large" />
<input type="text" class="form-control" placeholder="Default" />
<input type="text" class="form-control input-sm" placeholder="Small" />
</pre>
<p class="ptl">With icon inside:</p>
<div class="row">
<div class="col-lg-5">
<div class="form-group">
<input type="text" value="" placeholder="With icon" class="form-control" />
<span class="input-icon fui-check-inverted"></span>
</div>
</div>
</div>
<pre class="prettyprint mtm">
<div class="form-group">
<input type="text" class="form-control" placeholder="With icon" />
<span class="input-icon fui-check-inverted"></span>
</div>
</pre>
<p class="ptl">
Different color styles and disabled state work as expected:
<div class="row">
<div class="col-lg-6">
<div class="form-group has-error">
<input class="form-control" type="text" placeholder="Error" />
</div>
</div>
</div>
<div class="row">
<div class="col-lg-6">
<div class="form-group has-warning">
<input class="form-control" type="text" placeholder="Warning" />
</div>
</div>
</div>
<div class="row">
<div class="col-lg-6">
<div class="form-group has-success">
<input class="form-control" type="text" placeholder="Success" />
</div>
</div>
</div>
<div class="row">
<div class="col-lg-6">
<div class="form-group">
<input class="form-control" type="text" placeholder="Disabled" disabled />
</div>
</div>
</div>
</p>
</div> <!-- /.demo-content -->
</div> <!-- /.demo-row -->
<div id="fui-navbar" class="pbl"></div>
<div class="demo-row">
<div class="demo-title">
<h3>Navbar</h3>
</div>
<div class="demo-content">
<p class="mbl">
Restyled <a href="http://getbootstrap.com/components/#navbar">Bootstrap navbar</a>. Added sub-menus.
</p>
<div class="navbar navbar-default">
<div class="navbar-header">
<button type="button" class="btn btn-navbar" data-toggle="collapse" data-target=".navbar-collapse-01"></button>
</div>
<div class="navbar-collapse collapse navbar-collapse-01">
<ul class="nav navbar-nav navbar-left">
<li>
<a href="#fakelink">
Menu Item
<span class="navbar-unread">1</span>
</a>
</li>
<li class="active">
<a href="#fakelink">
Messages
<span class="navbar-unread">1</span>
</a>
<ul>
<li><a href="#fakelink">Element One</a></li>
<li>
<a href="#fakelink">Sub menu</a>
<ul>
<li><a href="#fakelink">Element One</a></li>
<li><a href="#fakelink">Element Two</a></li>
<li><a href="#fakelink">Element Three</a></li>
</ul> <!-- /Sub menu -->
</li>
<li><a href="#fakelink">Element Three</a></li>
</ul> <!-- /Sub menu -->
</li>
<li>
<a href="#fakelink">
About Us
</a>
</li>
</ul>
</div><!--/.nav -->
</div> <!-- /navbar -->
<pre class="prettyprint mvl">
<div class="navbar navbar-default">
<div class="navbar-header">
<button type="button" class="btn btn-navbar" data-toggle="collapse" data-target=".navbar-collapse-01"></button>
</div>
<div class="navbar-collapse collapse navbar-collapse-01">
<ul class="nav navbar-nav navbar-right">
<!-- Menu items go here -->
<li>
<ul>
<!-- Sub Menu items go here -->
</ul>
</li>
</ul>
</div>
</div>
</pre>
<p class="ptl">Inverse style:</p>
<div class="navbar navbar-inverse">
<div class="navbar-header">
<button type="button" class="btn btn-navbar" data-toggle="collapse" data-target=".navbar-collapse-02"></button>
</div>
<div class="navbar-collapse collapse navbar-collapse-02">
<ul class="nav navbar-nav navbar-left">
<li>
<a href="#fakelink">
Menu Item
<span class="navbar-unread">1</span>
</a>
</li>
<li class="active">
<a href="#fakelink">
Messages
<span class="navbar-unread">1</span>
</a>
<ul>
<li><a href="#fakelink">Element One</a></li>
<li>
<a href="#fakelink">Sub menu</a>
<ul>
<li><a href="#fakelink">Element One</a></li>
<li><a href="#fakelink">Element Two</a></li>
<li><a href="#fakelink">Element Three</a></li>
</ul> <!-- /Sub menu -->
</li>
<li><a href="#fakelink">Element Three</a></li>
</ul> <!-- /Sub menu -->
</li>
<li>
<a href="#fakelink">
About Us
</a>
</li>
</ul>
</div><!--/.nav -->
</div> <!-- /navbar -->
<pre class="prettyprint mvl">
<div class="navbar navbar-inverse">
<!-- navbar content -->
</div>
</pre>
<p class="ptl">Unread and New indicators:</p>
<pre class="prettyprint mvl">
<!-- ... -->
<ul class="nav navbar-nav">
<li>
<a href="#">
Menu item
<!-- Indicator with number -->
<span class="navbar-new">2</span>
</a>
</li>
</ul>
<!-- ... -->
</pre>
<pre class="prettyprint mvl">
<!-- ... -->
<ul class="nav navbar-nav">
<li>
<a href="#">
Menu item
<!-- Indicator without number -->
<span class="navbar-unread"></span>
</a>
</li>
</ul>
<!-- ... -->
</pre>
<div id="fui-pager"></div>
</div> <!-- /.demo-content -->
</div> <!-- /.demo-row -->
<div id="fui-pager" class="pbl"></div>
<div class="demo-row">
<div class="demo-title">
<h3>Pager</h3>
</div>
<div class="demo-content">
<p>
Short pagination where links have a button look. Used for navigating to a next/prev item.
</p>
<ul class="pager">
<li class="previous">
<a href="#fakelink">
<i class="fui-arrow-left"></i>
<span>All messages</span>
</a>
</li>
<li class="next">
<a href="#fakelink">
<i class="fui-arrow-right"></i>
</a>
</li>
</ul>
<pre class="prettyprint mvl">
<ul class="pager">
<li class="previous">
<a href="#">
<span>
<i class="fui-arrow-left"></i>
All messages
</span>
</a>
</li>
<li class="next">
<a href="#">
<i class="fui-arrow-right"></i>
</a>
</li>
</ul>
</pre>
<div id="fui-pagination"></div>
</div> <!-- /.demo-content -->
</div> <!-- /.demo-row -->
<div id="fui-pagination" class="pbl"></div>
<div class="demo-row">
<div class="demo-title">
<h3>Pagination</h3>
</div>
<div class="demo-content">
<p>
<a href="http://getbootstrap.com/components/#pagination">Bootstrap pagination</a> restyling. Added additional dropdown navigation, minimalistic look and text-only look. Also few color schemes with alternative layout.
</p>
<div class="pagination">
<ul>
<li class="previous"><a href="#fakelink" class="fui-arrow-left"></a></li>
<li class="active"><a href="#fakelink">1</a></li>
<li><a href="#fakelink">2</a></li>
<li><a href="#fakelink">3</a></li>
<li><a href="#fakelink">4</a></li>
<li><a href="#fakelink">5</a></li>
<li><a href="#fakelink">6</a></li>
<li><a href="#fakelink">7</a></li>
<li><a href="#fakelink">8</a></li>
<li><a href="#fakelink">9</a></li>
<li><a href="#fakelink">10</a></li>
<li class="next"><a href="#fakelink" class="fui-arrow-right"></a></li>
</ul>
</div>
<pre class="prettyprint mvl">
<div class="pagination">
<ul>
<li class="previous">
<a href="#" class="fui-arrow-left"></a>
</li>
<li class="active"><a href="#fakelink">1</a></li>
...
<li><a href="#fakelink">10</a></li>
<li class="next">
<a href="#" class="fui-arrow-right"></a>
</li>
</ul>
</div>
</pre>
</div> <!-- /.demo-content -->
</div> <!-- /.demo-row -->
<div id="fui-progress" class="pbl"></div>
<div class="demo-row">
<div class="demo-title">
<h3>Progress</h3>
</div>
<div class="demo-content">
<p>
Restyled <a href="http://getbootstrap.com/components/#progress">Bootstrap progress</a>.
</p>
<div class="progress">
<div class="progress-bar" style="width: 45%;"></div>
</div>
<div class="progress">
<div class="progress-bar" style="width: 40%;"></div>
<div class="progress-bar progress-bar-warning" style="width: 10%;"></div>
<div class="progress-bar progress-bar-danger" style="width: 10%;"></div>
<div class="progress-bar progress-bar-success" style="width: 10%;"></div>
<div class="progress-bar progress-bar-info" style="width: 10%;"></div>
</div>
<pre class="prettyprint mvl">
<div class="progress">
<div class="progress-bar" style="width: 40%;"></div>
<div class="progress-bar progress-bar-warning" style="width: 10%;"></div>
<div class="progress-bar progress-bar-danger" style="width: 10%;"></div>
<div class="progress-bar progress-bar-success" style="width: 10%;"></div>
<div class="progress-bar progress-bar-info" style="width: 10%;"></div>
</div>
</pre>
<div id="fui-select"></div>
</div> <!-- /.demo-content -->
</div> <!-- /.demo-row -->
<div id="fui-select" class="pbl"></div>
<div class="demo-row">
<div class="demo-title">
<h3>Select</h3>
</div>
<div class="demo-content">
<p class="mbl">
Custom select due to inability of styling a system one. It is based on <a href="https://github.com/silviomoreto/bootstrap-select">Selectpicker</a> plug-in with a slightly modified source to meet Bootstrap naming convention.
</p>
<p class="mbl">
Component inherits entire styling from button so you can use all its colors and sizes without any problems. Also we supported <span class="text-info">multiple</span> select state as well as <span class="text-info">block</span> mode where it takes all available space.
</p>
<p class="mbl pbl">
Grids are supported as well. For more technical details read <a href="https://github.com/silviomoreto/bootstrap-select#usage">original documentation</a>.
</p>
<select name="huge" class="select-block mbl">
<optgroup label="Profile">
<option value="0">My Profile</option>
<option value="1">My Friends</option>
</optgroup>
<optgroup label="System">
<option value="2">Messages</option>
<option value="3">My Settings</option>
<option value="4" class="highlighted">Logout</option>
</optgroup>
</select>
<select multiple="multiple" name="huge" class="select-block mbl">
<option value="0">1</option>
<option value="1" selected>2</option>
<option value="2" selected>3</option>
<option value="3" selected>4</option>
<option value="4">5</option>
</select>
<p class="mvl">
You can write markup as you usually do without any difference:
</p>
<pre class="prettyprint mvl">
<select>
<option value="0">My Profile</option>
<option value="1">My Friends</option>
</select>
<select multiple="multiple">
<option value="0">My Profile</option>
<option value="1" selected>My Friends</option>
<option value="2" selected>My Books</option>
<option value="3">My CDs</option>
</select>
</pre>
<p class="mvl ptl">
And then transform all system selects into a custom ones with JS:
</p>
<pre class="prettyprint mvl">
$("select").selectpicker({style: 'btn-hg btn-primary', menuStyle: 'dropdown-inverse'});
// style: select toggle class name (which is .btn)
// menuStyle: dropdown class name
// You can always select by any other attribute, not just tag name.
// Also you can leave selectpicker arguments blank to apply defaults.
</pre>
<div id="fui-switch"></div>
</div> <!-- /.demo-content -->
</div> <!-- /.demo-row -->
<div id="fui-switch" class="pbl"></div>
<div class="demo-row">
<div class="demo-title">
<h3>Switch</h3>
</div>
<div class="demo-content">
<p class="mbl">
Custom switch can be used instead of checkbox. It has 2 styles: <span class="text-info">circle</span>(default) and <span class="text-info">square</span>. Drag is supported.
</p>
<p class="mbl pbl">
For more technical details read <a href="http://www.larentis.eu/switch">original documentation</a>.
</p>
<span class="mrl">
<input type="checkbox" checked data-toggle="switch" />
</span>
<input type="checkbox" data-toggle="switch" />
<hr/>
<div class="switch switch-square mrl"
data-on-label="<i class='fui-check'></i>"
data-off-label="<i class='fui-cross'></i>">
<input type="checkbox" />
</div>
<div class="switch switch-square"
data-on-label="<i class='fui-check'></i>"
data-off-label="<i class='fui-cross'></i>">
<input type="checkbox" checked />
</div>
<pre class="prettyprint mvl">
<!-- Default switch -->
<input type="checkbox" checked data-toggle="switch" />
<!-- Square switch -->
<div class="switch switch-square">
<input type="checkbox" checked data-toggle="switch" />
</div>
<!-- Switch with customized icons -->
<div class="switch switch-square"
data-on-label="<i class='fui-check'></i>"
data-off-label="<i class='fui-cross'></i>">
<input type="checkbox" />
</div>
</pre>
</div> <!-- /.demo-content -->
</div> <!-- /.demo-row -->
<div id="fui-tagsinput" class="pbl"></div>
<div class="demo-row">
<div class="demo-title">
<h3>Tags input</h3>
</div>
<div class="demo-content">
<p class="mbl">
Used for entering multiple tags with ability to remove/add new and validating already existing ones. Available 2 color schemes: grey(default) and primary.
</p>
<p class="mbl pbl">
Based on <a href="http://xoxco.com/projects/code/tagsinput">Tags Input Plugin</a>. For more technical details read <a href="https://github.com/xoxco/jQuery-Tags-Input#instructions">official plug-in documentation</a>.
</p>
<input name="tagsinput" class="tagsinput" value="Clean,Fresh,Modern,Unique" />
<p class="ptl">Markup:</p>
<pre class="prettyprint mvl">
<input name="tagsinput" class="tagsinput" value="Clean,Fresh,Modern,Unique" />
</pre>
<p class="ptl">JS:</p>
<pre class="prettyprint mvl">
$(".tagsinput").tagsInput();
</pre>
<div id="fui-tooltip"></div>
</div> <!-- /.demo-content -->
</div> <!-- /.demo-row -->
<div id="fui-tooltip" class="pbl"></div>
<div class="demo-row">
<div class="demo-title">
<h3>Tooltip</h3>
</div>
<div class="demo-content">
<p class="mbl">
Restyled <a href="http://getbootstrap.com/javascript/#tooltips">Bootstrap tooltip</a>.
</p>
<div style="width: 40%; padding-left: 10px; height: 60px;">
<div class="demo-tooltips">
<p data-toggle="tooltip" title="Here is a sample of a long dark tooltip. Hell yeah."></p>
</div>
</div> <!-- /tooltips -->
<pre class="prettyprint mvl">
<p data-toggle="tooltip" title="Tooltip copy"></p>
</pre>
<div id="fui-slider"></div>
</div> <!-- /.demo-content -->
</div> <!-- /.demo-row -->
<div id="fui-slider" class="pbl"></div>
<div class="demo-row">
<div class="demo-title">
<h3>Slider</h3>
</div>
<div class="demo-content">
<p class="mbl">
Restyled <a href="http://jqueryui.com/slider">jQuery UI slider</a>. Added slider segments.
</p>
<div id="slider" class="ui-slider"></div>
<p class="ptl">Markup:</p>
<pre class="prettyprint mvl">
<div id="slider" class="ui-slider"></div>
</pre>
<p class="ptl">JS:</p>
<pre class="prettyprint mvl">
var $slider = $("#slider");
if ($slider.length > 0) {
$slider.slider({
min: 1,
max: 5,
value: 3,
orientation: "horizontal",
range: "min"
}).addSliderSegments($slider.slider("option").max);
}
</pre>
<p class="pvl">How <span class="text-info">addSliderSegments()</span> work?</p>
<p>This is an extended jQuery method placed in the <code>application.js</code>. It calculates how many segments to append by looking at a <span class="text-info">slider("option").max</span> which shows a maximum slider value.</p>
<pre class="prettyprint mvl">
// Add segments to a slider
$.fn.addSliderSegments = function (amount) {
return this.each(function () {
var segmentGap = 100 / (amount - 1) + "%"
, segment = "<div class='ui-slider-segment' style='margin-left: " + segmentGap + ";'></div>";
$(this).prepend(segment.repeat(amount - 2));
});
};
</pre>
</div> <!-- /.demo-content -->
</div> <!-- /.demo-row -->
</div><!-- /.container -->