@import "magic/helper/divider";
Divider are a nice hr-like text divider:
There are many usecases for dividers
There are many usecases for dividers
In HTML
<div class="divider">
<span>or</span>
</div>
- or -
<div class="divider">
<h2>Huge Divider</h2>
</div>
( all text ellements: h1 h2 h3 h4 h5 h6 p span ... )
Change colors depending on parent SASS
.your-colored-parent {
hr, .divider > *:before, .divider > *:after {
border-top: solid 1px rgba(0,0,0,.23);
border-bottom: solid 1px rgba(255,255,255,.42);
}
.divider > * { color: red; }
}
Parent box needs background!
.divider.half p.lead
.divider.half p.lead
.divider.half p.lead
.divider.half p.lead
.divider.half p.lead
.divider.half p.lead
.divider.half p.lead