The +progress-item
mixin takes the following arguments:
number
: The number of the progress itemlabel
: The text label of the progress itempast
: Boolean flag to mark the item as a past itemcurrent
: Boolean flag to mark the item as a current item
It accepts a block for lg
platforms only.+progress-bar(3) +progress-item(1, 'Foo foo', false, true) p.h3 Lorem ipsum dolor sit amet. p Lorem ipsum dolor sit amet, consectetuer adipiscing elit. +progress-item(2, 'Bar bar') p.h3 Lorem ipsum dolor sit amet. p Lorem ipsum dolor sit amet, consectetuer adipiscing elit. +progress-item(3, 'Ham ham') p.h3 Lorem ipsum dolor sit amet. p Lorem ipsum dolor sit amet, consectetuer adipiscing elit.
This progress bar has the is-short
state on lg
which makes the grey bar not visible and the current step will get highlighted only in the title.
+progress-bar(2).is-short +progress-item(1, 'Foo foo', true) p.h3 Lorem ipsum dolor sit amet. p Lorem ipsum dolor sit amet, consectetuer adipiscing elit. +progress-item(2, 'Bar bar', false, true) p.h3 Lorem ipsum dolor sit amet. p Lorem ipsum dolor sit amet, consectetuer adipiscing elit.
+progress-bar(4) +progress-item(1, 'Foo foo', true) p.h3 Lorem ipsum dolor sit amet. p Lorem ipsum dolor sit amet, consectetuer adipiscing elit. +progress-item(2, 'Bar bar', true) p.h3 Lorem ipsum dolor sit amet. p Lorem ipsum dolor sit amet, consectetuer adipiscing elit. +progress-item(3, 'Ham ham', false, true) p.h3 Lorem ipsum dolor sit amet. p Lorem ipsum dolor sit amet, consectetuer adipiscing elit. +progress-item(4, 'Last one') p.h3 Lorem ipsum dolor sit amet. p Lorem ipsum dolor sit amet, consectetuer adipiscing elit.