forked from aramvisser/bulma-steps
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
994 lines (906 loc) · 28 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
---
layout: default
variables:
- name: $steps-default-color
value: $grey-lighter
- name: $steps-completed-color
value: $primary
- name: $steps-active-color
value: $primary
- name: $steps-horizontal-min-width
value: 10em
- name: $steps-vertical-min-height
value: 4em
- name: $steps-marker-size
value: 2
- name: $steps-divider-size
value: .4em
- name: $steps-gap-size
value: .3rem
- name: $steps-hollow-border-size
value: .3em
- name: $steps-thin-divider-size
value: 1px
- name: $steps-thin-marker-size
value: .8em
---
<section class="section">
<div class="container">
<h1 class="title">Installation</h1>
<p>
This is an extensions for the <a href="http://bulma.io">Bulma CSS framework</a>. See the <a href="https://github.com/atlas-bi/bulma-steps">Readme on Github</a> for installation instructions.
</p>
<hr>
{%
include meta.html
colors=true
sizes=true
variables=true
%}
{% include anchor.html name="Documentation" %}
<div class="content">
<p>
The <code>steps</code> list is useful for tracking progress in multi steps forms or wizards.
</p>
<p>
You can use the <code>is-active</code> modifier to set the current active step. Any step before or after the active step will be styled differently.
</p>
</div>
{% capture steps_example %}
<ul class="steps">
<li class="steps-segment">
<a href="#" class="steps-marker"></a>
</li>
<li class="steps-segment">
<a href="#" class="steps-marker"></a>
</li>
<li class="steps-segment is-active">
<span class="steps-marker"></span>
</li>
<li class="steps-segment">
<span class="steps-marker"></span>
</li>
<li class="steps-segment">
<span class="steps-marker"></span>
</li>
</ul>
{% endcapture %}
<div class="example">
{{steps_example}}
</div>
{% highlight html %}
{{steps_example}}
{% endhighlight %}
{% include anchor.html name="Marker Content" %}
<div class="content">
<p>
You can display information inside markers. About 2 or 3 characters or an <code>icon</code> will fit.
</p>
</div>
{% capture steps_marker_content_example %}
<ul class="steps">
<li class="steps-segment">
<span class="steps-marker">1</span>
</li>
<li class="steps-segment">
<span class="steps-marker">xyz</span>
</li>
<li class="steps-segment is-active">
<span class="steps-marker">-3-</span>
</li>
<li class="steps-segment">
<span class="steps-marker">★</span>
</li>
<li class="steps-segment">
<span class="steps-marker">
<span class="icon">
<i class="fa fa-check"></i>
</span>
</span>
</li>
</ul>
{% endcapture %}
<div class="example">
{{steps_marker_content_example}}
</div>
{% highlight html %}
{{steps_marker_content_example}}
{% endhighlight %}
{% include anchor.html name="Step Content" %}
<div class="content">
<p>
Use the <code>steps-content</code> class to add content to a <code>steps-segment</code>.
</p>
<p>
If the last step also has content, use the <code>is-balanced</code> modifier on the root <code>steps</code> element, to make sure that the last step has the same width as the other steps.
</p>
</div>
{% capture steps_content_example %}
<ul class="steps is-balanced">
<li class="steps-segment">
<span class="steps-marker"></span>
<div class="steps-content">
<p class="is-size-4">Step 1</p>
<p>This is the first step, which means you start here.</p>
</div>
</li>
<li class="steps-segment">
<span class="steps-marker"></span>
<div class="steps-content">
<p class="is-size-4">Step 2</p>
<p>This is the second step. Once you complete the first step, you will end up here.</p>
</div>
</li>
<li class="steps-segment is-active">
<span class="steps-marker"></span>
<div class="steps-content">
<p class="is-size-4">Step 3</p>
<p>This is the third step. This is halfway between the start and the end.</p>
</div>
</li>
<li class="steps-segment">
<span class="steps-marker"></span>
<div class="steps-content">
<p class="is-size-4">Step 4</p>
<p>The fourth step. Nearly there!</p>
</div>
</li>
<li class="steps-segment">
<span class="steps-marker"></span>
<div class="steps-content">
<p class="is-size-4">Step 5</p>
<p>And finally the last step. You have successfully completed all 5 steps.</p>
</div>
</li>
</ul>
{% endcapture %}
<div class="example">
{{steps_content_example}}
</div>
{% highlight html %}
{{steps_content_example}}
{% endhighlight %}
<div class="content">
<p>
Use the <code>has-content-centered</code> class to align the content directly underneath the marker.
</p>
<p>
You can omit the <code>is-balanced</code> modifier, since <code>has-content-centered</code> will make sure the steps are always balanced.
</p>
</div>
{% capture steps_centered_content_example %}
<ul class="steps has-content-centered">
<li class="steps-segment">
<span class="steps-marker"></span>
<div class="steps-content">
<p class="is-size-4">Step 1</p>
<p>This is the first step, which means you start here.</p>
</div>
</li>
<li class="steps-segment">
<span class="steps-marker"></span>
<div class="steps-content">
<p class="is-size-4">Step 2</p>
<p>This is the second step. Once you complete the first step, you will end up here.</p>
</div>
</li>
<li class="steps-segment is-active">
<span class="steps-marker"></span>
<div class="steps-content">
<p class="is-size-4">Step 3</p>
<p>This is the third step. This is halfway between the start and the end.</p>
</div>
</li>
<li class="steps-segment">
<span class="steps-marker"></span>
<div class="steps-content">
<p class="is-size-4">Step 4</p>
<p>The fourth step. Nearly there!</p>
</div>
</li>
<li class="steps-segment">
<span class="steps-marker"></span>
<div class="steps-content">
<p class="is-size-4">Step 5</p>
<p>And finally the last step. You have successfully completed all 5 steps.</p>
</div>
</li>
</ul>
{% endcapture %}
<div class="example">
{{steps_centered_content_example}}
</div>
{% highlight html %}
{{steps_centered_content_example}}
{% endhighlight %}
<div class="content">
<p>
Use the <code>is-divider-content</code> modifier to align content with the divider.
</p>
<p>
If the last step has no content, omit the <code>is-balanced</code> modifier on the root element to make sure the last step stays flush with the right edge.
</p>
</div>
{% capture steps_divider_content_example %}
<ul class="steps">
<li class="steps-segment">
<span class="steps-marker"></span>
<div class="steps-content is-divider-content">
<p class="is-size-4">Action 1</p>
</div>
</li>
<li class="steps-segment">
<span class="steps-marker"></span>
<div class="steps-content is-divider-content">
<p class="is-size-4">Action 2</p>
</div>
</li>
<li class="steps-segment is-active">
<span class="steps-marker"></span>
<div class="steps-content is-divider-content">
<p class="is-size-4">Action 3</p>
</div>
</li>
<li class="steps-segment">
<span class="steps-marker"></span>
<div class="steps-content is-divider-content">
<p class="is-size-4">Action 4</p>
</div>
</li>
<li class="steps-segment">
<span class="steps-marker"></span>
</li>
</ul>
{% endcapture %}
<div class="example">
{{steps_divider_content_example}}
</div>
{% highlight html %}
{{steps_divider_content_example}}
{% endhighlight %}
{% include anchor.html name="Colors" %}
<div class="content">
<p>
Every marker can have a different color. This can be used to indicate steps with errors, for example.
</p>
</div>
{% capture steps_marker_colors1_example %}
<ul class="steps has-content-centered">
<li class="steps-segment">
<span class="steps-marker is-white">1</span>
<div class="steps-content">
<code>is-white</code>
</div>
</li>
<li class="steps-segment">
<span class="steps-marker is-light">2</span>
<div class="steps-content">
<code>is-light</code>
</div>
</li>
<li class="steps-segment is-active">
<span class="steps-marker is-dark">3</span>
<div class="steps-content">
<code>is-dark</code>
</div>
</li>
<li class="steps-segment">
<span class="steps-marker is-black">4</span>
<div class="steps-content">
<code>is-black</code>
</div>
</li>
</ul>
{% endcapture %}
{% capture steps_marker_colors2_example %}
<ul class="steps has-content-centered">
<li class="steps-segment">
<span class="steps-marker is-primary">1</span>
<div class="steps-content">
<code>is-primary</code>
</div>
</li>
<li class="steps-segment">
<span class="steps-marker is-info">2</span>
<div class="steps-content">
<code>is-info</code>
</div>
</li>
<li class="steps-segment is-active">
<span class="steps-marker is-success">3</span>
<div class="steps-content">
<code>is-success</code>
</div>
</li>
<li class="steps-segment">
<span class="steps-marker is-warning">4</span>
<div class="steps-content">
<code>is-warning</code>
</div>
</li>
<li class="steps-segment">
<span class="steps-marker is-danger">5</span>
<div class="steps-content">
<code>is-danger</code>
</div>
</li>
</ul>
{% endcapture %}
<div class="columns">
<div class="column">
<div class="example">
{{steps_marker_colors1_example}}
</div>
{% highlight html %}
{{steps_marker_colors1_example}}
{% endhighlight %}
</div>
<div class="column">
<div class="example">
{{steps_marker_colors2_example}}
</div>
{% highlight html %}
{{steps_marker_colors2_example}}
{% endhighlight %}
</div>
</div>
{% include anchor.html name="Sizes" %}
<div class="content">
<p>
You can use the <code>is-small</code>, <code>is-medium</code> or <code>is-large</code> modifiers to change the size.
</p>
</div>
{% capture steps_sizes_example %}
<ul class="steps is-small">
<li class="steps-segment">
<span class="steps-marker"></span>
</li>
<li class="steps-segment">
<span class="steps-marker"></span>
</li>
<li class="steps-segment is-active">
<span class="steps-marker"></span>
</li>
<li class="steps-segment">
<span class="steps-marker"></span>
</li>
<li class="steps-segment">
<span class="steps-marker"></span>
</li>
</ul>
<ul class="steps">
<li class="steps-segment">
<span class="steps-marker"></span>
</li>
<li class="steps-segment">
<span class="steps-marker"></span>
</li>
<li class="steps-segment is-active">
<span class="steps-marker"></span>
</li>
<li class="steps-segment">
<span class="steps-marker"></span>
</li>
<li class="steps-segment">
<span class="steps-marker"></span>
</li>
</ul>
<ul class="steps is-medium">
<li class="steps-segment">
<span class="steps-marker"></span>
</li>
<li class="steps-segment">
<span class="steps-marker"></span>
</li>
<li class="steps-segment is-active">
<span class="steps-marker"></span>
</li>
<li class="steps-segment">
<span class="steps-marker"></span>
</li>
<li class="steps-segment">
<span class="steps-marker"></span>
</li>
</ul>
<ul class="steps is-large">
<li class="steps-segment">
<span class="steps-marker"></span>
</li>
<li class="steps-segment">
<span class="steps-marker"></span>
</li>
<li class="steps-segment is-active">
<span class="steps-marker"></span>
</li>
<li class="steps-segment">
<span class="steps-marker"></span>
</li>
<li class="steps-segment">
<span class="steps-marker"></span>
</li>
</ul>
{% endcapture %}
{% capture steps_sizes_short_example %}
<ul class="steps is-small">...</ul>
<ul class="steps">...</ul>
<ul class="steps is-medium">...</ul>
<ul class="steps is-large">...</ul>
{% endcapture %}
<div class="example">
{{steps_sizes_example}}
</div>
{% highlight html %}
{{steps_sizes_short_example}}
{% endhighlight %}
<div class="content">
<p>
Or if you want to go really small, use the <code>is-thin</code> modifier to have 1px wide
dividers. The markers will also be made smaller, so you can't put anything inside them
anymore.
</p>
</div>
{% capture steps_thin_example %}
<ul class="steps is-thin">
<li class="steps-segment">
<span class="steps-marker"></span>
</li>
<li class="steps-segment">
<span class="steps-marker"></span>
</li>
<li class="steps-segment is-active">
<span class="steps-marker"></span>
</li>
<li class="steps-segment">
<span class="steps-marker"></span>
</li>
<li class="steps-segment">
<span class="steps-marker"></span>
</li>
</ul>
{% endcapture %}
<div class="example">
{{steps_thin_example}}
</div>
{% highlight html %}
{{steps_thin_example}}
{% endhighlight %}
{% include anchor.html name="Narrow" %}
<div class="content">
<p>
By default, the <code>steps</code> component will take up the entire width. Add the <code>is-narrow</code> modifier to only take up as much space as needed.
</p>
<p>
You can combine that with the <code>is-centered</code> or <code>is-right</code> modifiers to change the alignment.
</p>
</div>
{% capture steps_narrow_example %}
<ul class="steps is-narrow">
<li class="steps-segment">
<span href="#" class="steps-marker"></span>
</li>
<li class="steps-segment is-active">
<span class="steps-marker"></span>
</li>
<li class="steps-segment">
<span class="steps-marker"></span>
</li>
</ul>
<ul class="steps is-narrow is-centered">
<li class="steps-segment">
<span href="#" class="steps-marker"></span>
</li>
<li class="steps-segment is-active">
<span class="steps-marker"></span>
</li>
<li class="steps-segment">
<span class="steps-marker"></span>
</li>
</ul>
<ul class="steps is-narrow is-right">
<li class="steps-segment">
<span href="#" class="steps-marker"></span>
</li>
<li class="steps-segment is-active">
<span class="steps-marker"></span>
</li>
<li class="steps-segment">
<span class="steps-marker"></span>
</li>
</ul>
{% endcapture %}
<div class="example">
{{steps_narrow_example}}
</div>
{% highlight html %}
{{steps_narrow_example}}
{% endhighlight %}
{% include anchor.html name="Marker Style" %}
<div class="content">
<p>
The marker can be styled using the <code>is-hollow</code> modifier. It can apply to all steps by defining it on the root <code>steps</code> element or each marker separately.
</p>
</div>
{% capture steps_hollow_example %}
<ul class="steps is-hollow">
<li class="steps-segment">
<span class="steps-marker"></span>
</li>
<li class="steps-segment is-active">
<span class="steps-marker"></span>
</li>
<li class="steps-segment">
<span class="steps-marker"></span>
</li>
</ul>
{% endcapture %}
{% capture steps_hollow_mixed_example %}
<ul class="steps">
<li class="steps-segment">
<span class="steps-marker is-hollow"></span>
</li>
<li class="steps-segment is-active">
<span class="steps-marker"></span>
</li>
<li class="steps-segment">
<span class="steps-marker is-hollow"></span>
</li>
</ul>
{% endcapture %}
<div class="columns">
<div class="column">
<h4 class="title">For all steps</h4>
<div class="example">
{{steps_hollow_example}}
</div>
{% highlight html %}
{{steps_hollow_example}}
{% endhighlight %}
</div>
<div class="column">
<h4 class="title">Per step</h4>
<div class="example">
{{steps_hollow_mixed_example}}
</div>
{% highlight html %}
{{steps_hollow_mixed_example}}
{% endhighlight %}
</div>
</div>
{% include anchor.html name="Divider Styles" %}
<div class="content">
<p>
The divider can be styled using the <code>is-dashed</code> modifier, <code>has-gaps</code> modifier or both. They can apply to all steps by defining it on the root <code>steps</code> element or each step separately.
</p>
<h4 class="title"><code>is-dashed</code></h4>
</div>
{% capture steps_dashed_example %}
<ul class="steps is-dashed">
<li class="steps-segment">
<span class="steps-marker"></span>
</li>
<li class="steps-segment is-active">
<span class="steps-marker"></span>
</li>
<li class="steps-segment">
<span class="steps-marker"></span>
</li>
</ul>
{% endcapture %}
{% capture steps_dashed_mixed_example %}
<ul class="steps">
<li class="steps-segment">
<span class="steps-marker"></span>
</li>
<li class="steps-segment is-active is-dashed">
<span class="steps-marker"></span>
<div class="steps-content is-divider-content">
<p class="heading">Next step unreachable until some action has been taken</p>
</div>
</li>
<li class="steps-segment">
<span class="steps-marker"></span>
</li>
</ul>
{% endcapture %}
<div class="columns">
<div class="column">
<h4 class="title">For all steps</h4>
<div class="example">
{{steps_dashed_example}}
</div>
{% highlight html %}
{{steps_dashed_example}}
{% endhighlight %}
</div>
<div class="column">
<h4 class="title">Per step</h4>
<div class="example">
{{steps_dashed_mixed_example}}
</div>
{% highlight html %}
{{steps_dashed_mixed_example}}
{% endhighlight %}
</div>
</div>
<div class="content">
<h4 class="title"><code>has-gaps</code></h4>
</div>
{% capture steps_gaps_example %}
<ul class="steps has-gaps">
<li class="steps-segment">
<span class="steps-marker"></span>
</li>
<li class="steps-segment is-active">
<span class="steps-marker"></span>
</li>
<li class="steps-segment">
<span class="steps-marker"></span>
</li>
</ul>
{% endcapture %}
{% capture steps_gaps_mixed_example %}
<ul class="steps">
<li class="steps-segment">
<span class="steps-marker"></span>
</li>
<li class="steps-segment is-active has-gaps">
<span class="steps-marker"></span>
</li>
<li class="steps-segment">
<span class="steps-marker"></span>
</li>
</ul>
{% endcapture %}
<div class="columns">
<div class="column">
<h4 class="title">For all steps</h4>
<div class="example">
{{steps_gaps_example}}
</div>
{% highlight html %}
{{steps_gaps_example}}
{% endhighlight %}
</div>
<div class="column">
<h4 class="title">Per step</h4>
<div class="example">
{{steps_gaps_mixed_example}}
</div>
{% highlight html %}
{{steps_gaps_mixed_example}}
{% endhighlight %}
</div>
</div>
{% include anchor.html name="Alignment" %}
<div class="content">
<p>
The steps are displayed vertically on mobile and horizontally on bigger sizes by default.
</p>
<p>
You can use the <code>is-horizontal</code> or <code>is-vertical</code> modifiers to always force the steps in a certain alignment no matter the screen size.
</p>
</div>
{% capture steps_horizontal_example %}
<ul class="steps is-horizontal">
<li class="steps-segment">
<span href="#" class="steps-marker"></span>
</li>
<li class="steps-segment">
<span href="#" class="steps-marker"></span>
</li>
<li class="steps-segment is-active">
<span class="steps-marker"></span>
</li>
<li class="steps-segment">
<span class="steps-marker"></span>
</li>
<li class="steps-segment">
<span class="steps-marker"></span>
</li>
</ul>
{% endcapture %}
{% capture steps_vertical_example %}
<ul class="steps is-vertical">
<li class="steps-segment">
<span href="#" class="steps-marker"></span>
<div class="steps-content">
<p class="is-size-4">2000</p>
<p>Lorem Ipsum Dolor Sit Amet</p>
</div>
</li>
<li class="steps-segment">
<span href="#" class="steps-marker"></span>
<div class="steps-content">
<p class="is-size-4">2002</p>
<p>Maecenas Ultrices Aliquet Velit Vitae</p>
</div>
</li>
<li class="steps-segment">
<span class="steps-marker"></span>
<div class="steps-content">
<p class="is-size-4">2007</p>
<p>Aliquam Quis Scelerisque Mauris Nullam</p>
</div>
</li>
<li class="steps-segment">
<span class="steps-marker"></span>
<div class="steps-content">
<p class="is-size-4">2012</p>
<p>Etiam A Nunc Vitae Nunc</p>
</div>
</li>
<li class="steps-segment">
<span class="steps-marker"></span>
<div class="steps-content">
<p class="is-size-4">2017</p>
<p>In Sed Vehicula Est Vivamus</p>
</div>
</li>
</ul>
{% endcapture %}
<h4 class="title">Always horizontal</h4>
<div class="example">
{{steps_horizontal_example}}
</div>
{% highlight html %}
{{steps_horizontal_example}}
{% endhighlight %}
<h4 class="title">Always vertical</h4>
<div class="columns">
<div class="column">
{% highlight html %}
{{steps_vertical_example}}
{% endhighlight %}
</div>
<div class="column">
<div class="example">
{{steps_vertical_example}}
</div>
</div>
</div>
{% include anchor.html name="Example" %}
<div class="content">
<p>
Putting things together, we can make a checkout form for a shopping website.
</p>
</div>
{% capture steps_checkout_example %}
<ul class="steps is-narrow is-medium is-centered has-content-centered">
<li class="steps-segment">
<a href="#" class="has-text-dark">
<span class="steps-marker">
<span class="icon">
<i class="fa fa-shopping-cart"></i>
</span>
</span>
<div class="steps-content">
<p class="heading">Shopping Cart</p>
</div>
</a>
</li>
<li class="steps-segment">
<a hef=#" class="has-text-dark">
<span class="steps-marker">
<span class="icon">
<i class="fa fa-user"></i>
</span>
</span>
<div class="steps-content">
<p class="heading">User Information</p>
</div>
</a>
</li>
<li class="steps-segment is-active has-gaps">
<span class="steps-marker">
<span class="icon">
<i class="fa fa-usd"></i>
</span>
</span>
<div class="steps-content">
<p class="heading">Payment</p>
</div>
</li>
<li class="steps-segment">
<span class="steps-marker is-hollow">
<span class="icon">
<i class="fa fa-check"></i>
</span>
</span>
<div class="steps-content">
<p class="heading">Confirmation</p>
</div>
</li>
</ul>
{% endcapture %}
<div class="example">
{{steps_checkout_example}}
</div>
{% highlight html %}
{{steps_checkout_example}}
{% endhighlight %}
{% include anchor.html name="SASS Mixin Helpers" %}
<div class="content">
<p>
There are a few helpers available to make it easy to directly target step segments if you
want to create custom step styles. They are <code>steps-all-segments</code>,
<code>steps-inactive-segments</code> and <code>steps-active-segment</code>.
</p>
<p>
For example, if you create a <code>my-step-style</code> class in a .sass file like this:
</p>
</div>
{% highlight sass %}
// in a .sass file
.my-step-style
+steps-active-segment
.steps-content
font-weight: bold
+steps-inactive-segments
.steps-content
color: $grey-lighter
{% endhighlight %}
<div class="content">
<p>
Then using the <code>my-step-style</code> class on the root steps element will add the
custom styles.
</p>
</div>
{% capture steps_custom_example %}
<ul class="steps my-step-style has-content-centered">
<li class="steps-segment">
<span class="steps-marker"></span>
<div class="steps-content">
<p class="is-size-5">Step 1</p>
</div>
</li>
<li class="steps-segment">
<span class="steps-marker"></span>
<div class="steps-content">
<p class="is-size-5">Step 2</p>
</div>
</li>
<li class="steps-segment is-active">
<span class="steps-marker"></span>
<div class="steps-content">
<p class="is-size-5">Step 3</p>
</div>
</li>
<li class="steps-segment">
<span class="steps-marker"></span>
<div class="steps-content">
<p class="is-size-5">Step 4</p>
</div>
</li>
<li class="steps-segment">
<span class="steps-marker"></span>
<div class="steps-content">
<p class="is-size-5">Step 5</p>
</div>
</li>
</ul>
{% endcapture %}
<div class="example">
{{steps_custom_example}}
</div>
{% highlight html %}
{{steps_custom_example}}
{% endhighlight %}
<div class="content">
<p>
There is no <code>steps-completed-segments</code> mixin available, due to the way the code
is structured (and css3 limitations). If you want to target those, use the
<code>steps-all-segments</code> mixin to set that style and override it with the
<code>steps-active-segment</code> and <code>steps-inactive-segments</code> mixins.
</p>
</div>
{% include variables.html %}
{% include anchor.html name="Problems?" %}
<div class="content">
<p>
Is some combinations of modifers giving you problems or look wrong? Please <a
href="https://github.com/atlas-bi/bulma-steps/issues/new">create an issue on Github</a>
and I will take a look at it.
</p>
</div>
</div>
</section>