2017-04-03 06:30:33 +03:00
< section id = "utilities" >
< h4 > Utilities< / h4 >
2019-09-14 23:33:54 +03:00
< p >
You can apply these helper classes to almost any element, in order to alter
its style.
< / p >
2017-04-03 06:30:33 +03:00
< ul >
2019-09-14 23:33:54 +03:00
< li >
< code > text-primary< / code > - < span class = "text-primary" > Primary text< / span >
< / li >
< li >
< code > text-light< / code > - < span class = "text-light" > Light text< / span >
< / li >
< li >
< code > text-white< / code > -
< span class = "bg-primary text-white" > White text< / span >
< / li >
2018-07-30 00:57:15 +03:00
< li > < code > text-dark< / code > - < span class = "text-dark" > Dark text< / span > < / li >
< li > < code > text-grey< / code > - < span class = "text-grey" > Grey text< / span > < / li >
2019-09-14 23:33:54 +03:00
< li >
< code > text-error< / code > - < span class = "text-error" > Error text< / span >
< / li >
< li >
< code > text-success< / code > - < span class = "text-success" > Success text< / span >
< / li >
< li >
< code > bg-primary< / code > -
< span class = "bg-primary" > primary background< / span >
< / li >
< li >
< code > bg-light< / code > - < span class = "bg-light" > Light background< / span >
< / li >
2018-07-30 00:57:15 +03:00
< li > < code > bg-dark< / code > - < span class = "bg-dark" > Dark background< / span > < / li >
< li > < code > bg-grey< / code > - < span class = "bg-grey" > Grey background< / span > < / li >
2019-09-14 23:33:54 +03:00
< li >
< code > bg-error< / code > - < span class = "bg-error" > Error background< / span >
< / li >
< li >
< code > bg-success< / code > -
< span class = "bg-success" > Success background< / span >
< / li >
< li >
< code > bd-primary< / code > - < span class = "bd-primary" > primary border< / span >
< / li >
2019-03-23 20:54:27 +03:00
< li > < code > bd-light< / code > - < span class = "bd-light" > Light border< / span > < / li >
< li > < code > bd-dark< / code > - < span class = "bd-dark" > Dark border< / span > < / li >
< li > < code > bd-grey< / code > - < span class = "bd-grey" > Grey border< / span > < / li >
< li > < code > bd-error< / code > - < span class = "bd-error" > Error border< / span > < / li >
2019-09-14 23:33:54 +03:00
< li >
< code > bd-success< / code > - < span class = "bd-success" > Success border< / span >
< / li >
2017-04-03 06:30:33 +03:00
< li > < code > pull-right< / code > - floats an element to the right< / li >
< li > < code > pull-left< / code > - floats an element to the left< / li >
2019-09-14 23:33:54 +03:00
< li > < code > text-center< / code > - center aligns text< / li >
< li > < code > text-left< / code > - left aligns text< / li >
< li > < code > text-right< / code > - right aligns text< / li >
< li > < code > text-uppercase< / code > - text to uppercase< / li >
< li > < code > text-lowercase< / code > - text to lowercase< / li >
< li > < code > text-capitalize< / code > - capitalizes text< / li >
2017-04-03 06:30:33 +03:00
< li > < code > is-full-screen< / code > - makes the element 100% view height< / li >
< li > < code > is-full-width< / code > - make the element 100% width< / li >
2019-09-14 23:33:54 +03:00
< li >
< code > is-vertical-align< / code > - vertically centers element using flex
< / li >
< li >
< code > is-horizontal-align< / code > - horizontal centers element using flex
< / li >
2017-04-03 06:30:33 +03:00
< li > < code > is-center< / code > - centers element using flex< / li >
< li > < code > is-right< / code > - right aligns element using flex< / li >
< li > < code > is-left< / code > - left aligns element using flex< / li >
< li > < code > is-fixed< / code > - fixed positioned element< / li >
< li > < code > is-paddingless< / code > - removes any padding< / li >
< li > < code > is-marginless< / code > - removes any margin< / li >
2019-09-14 23:33:54 +03:00
< li > < code > is-rounded< / code > - make the element round< / li >
2017-04-03 06:30:33 +03:00
< li > < code > clearfix< / code > - clears the floats< / li >
2017-04-04 23:54:56 +03:00
< li > < code > is-hidden< / code > - hides the element completely< / li >
2019-05-12 19:49:51 +03:00
< li > < code > hide-xs< / code > - hides the element for screens < 600px< / li >
2019-09-14 23:33:54 +03:00
< li >
< code > hide-sm< / code > - hides the element for screens > =600px and
< 900px
< / li >
< li >
< code > hide-md< / code > - hides the element for screens > =900px and
< 1200px
< / li >
2019-03-23 20:54:27 +03:00
< li > < code > hide-lg< / code > - hides the element for screens > =1200px< / li >
2019-09-04 12:57:49 +03:00
< li > < code > hide-pr< / code > - hides the element for printing< / li >
2017-04-03 06:30:33 +03:00
< / ul >
2019-09-14 23:33:54 +03:00
< h4 > Details< / h4 >
2019-09-15 01:13:53 +03:00
< p > You can have a < code > < details> < / code > to defines a toggle-able block of content with a summary and additional details.< / p >
< details >
2019-09-14 23:33:54 +03:00
< summary > Read more< / summary >
< p >
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec viverra nec
nulla vitae mollis.
< / p >
< / details >
2019-09-15 01:13:53 +03:00
< p > This can be coupled to a < code > .dropdown< / code > and a couple of < code > .button< / code > and < code > .card< / code > classes to defines a dropdown button.< / p >
< details class = dropdown >
< summary class = "button outline" > My Profile< / summary >
< div class = card >
< p > < a href = "#" > Edit< / a > < / p >
< p > < a href = "#" > Alerts < span class = tag > 3< / span > < / a > < / p >
< hr / >
< p > < a href = "#" class = text-error > Logout< / a > < / p >
< / div >
< / details >
< details class = dropdown >
< summary class = "button outline" > Login< / summary >
< form class = "card row" >
< input class = col-12 placeholder = username >
< input class = col-12 placeholder = password type = password >
< footer class = is-right >
< a class = "button clear" > Sign up< / a >
< button type = submit > Sign in< / button >
< / footer >
< / form >
< / details >
2017-04-03 06:30:33 +03:00
< / section >
2019-09-15 01:13:53 +03:00