Spacing
vAPP includes a wide range of shorthand responsive margin and padding utility classes to modify an element's appearance. The Bootstrap default spacer also available along with vAPP
Open Bootstrap Default SpacingHow it works
Assign responsive-friendly margin or padding values to an
element or a subset of its sides with shorthand classes. Includes support for
individual properties, all properties, and vertical and horizontal properties. Classes
are built from Scss mixins Sass from .10rem to 100rem.
Spacer Class Reference
Spacer for sections
.space- Apply padding at the top and bottom of the element.
.space--2- Apply a little more padding than
.spaceat the top and bottom of the element.
.space--3- Apply more padding than
.space--2at the top and bottom of the element.
.space--4- Apply more padding than
.space--3at the top and bottom of the element.
.space--5- Apply more padding than
.space--4at the top and bottom of the element.
.space--6- Apply more padding than
.space--5at the top and bottom of the element.
.space--top- Apply padding at the top of the element.
.space--top--2- Apply a little more padding than
.space--topat the top of the element.
.space--top--3- Apply more padding than
.space--top--2at the top of the element.
.space--top--4- Apply more padding than
.space--top--3at the top of the element.
.space--top--5- Apply more padding than
.space--top--4at the top of the element.
.space--top--6- Apply more padding than
.space--top--5at the top of the element.
.space--bottom- Apply padding at the bottom of the element.
.space--bottom---2- Apply a little more padding than
.space--bottomat the bottom of the element.
.space--bottom--3- Apply more padding than
.space--bottom--2at the bottom of the element.
.space--bottom--4- Apply more padding than
.space--bottom--3at the bottom of the element.
.space--bottom--5- Apply more padding than
.space--bottom--4at the bottom of the element.
.space--bottom--6- Apply more padding than
.space--bottom--5at the bottom of the element.
Margin and Padding for elements
The classes are named using the format {property}{sides}-{size}
Where property is one of:
m- for classes that setmarginp- for classes that setpadding
Where sides is one of:
t- for classes that setmargin-toporpadding-topb- for classes that setmargin-bottomorpadding-bottoml- for classes that setmargin-leftorpadding-leftr- for classes that setmargin-rightorpadding-right
Where size is one of:
10- for classes that eliminate themarginorpaddingby setting it to10px20- for classes that eliminate themarginorpaddingby setting it to20px30- for classes that eliminate themarginorpaddingby setting it to30px40- for classes that eliminate themarginorpaddingby setting it to40px50- for classes that eliminate themarginorpaddingby setting it to50px60- for classes that eliminate themarginorpaddingby setting it to60px70- for classes that eliminate themarginorpaddingby setting it to70px80- for classes that eliminate themarginorpaddingby setting it to80px90- for classes that eliminate themarginorpaddingby setting it to90px100- for classes that eliminate themarginorpaddingby setting it to100px
Example
<section class="space bg-dark">
<div class="container">
<div class="row">
<div class="col-12 col-lg-10 mx-auto d-flex flex-column flex-md-row justify-content-between text-center ">
<span class="mb-30 mb-md-0"><img src="img/brand-logo-blue-white.png" alt="client"></span>
<span class="mb-30 mb-md-0"><img src="img/brand-logo-blue-white.png" alt="client"></span>
<span class="mb-30 mb-md-0"><img src="img/brand-logo-blue-white.png" alt="client"></span>
<span class="mb-30 mb-md-0"><img src="img/brand-logo-blue-white.png" alt="client"></span>
<span class="mb-30 mb-md-0"><img src="img/brand-logo-blue-white.png" alt="client"></span>
</div>
<!-- end of col -->
</div>
<!-- end of row -->
</div>
<!-- end of container -->
</section>
<div class="card">
<div class="py-30 pl-20">
<span class="icon--lg bg-color--primary color-white rounded--full mx-10">
<i class="nc-icon nc-apple"></i>
</span>
<span class="icon--lg bg-color--primary color-white rounded--full mx-10">
<i class="nc-icon nc-ic_android_48px"></i>
</span>
<span class="icon--lg bg-color--primary color-white rounded--full mx-10">
<i class="nc-icon nc-p-heart"></i>
</span>
</div>
</div>