Main container - va-layout

  1. <div class="va-layout gutter--md">
  2. <div class="va-row">
  3. <div class="flex">
  4. Grid sizes
  5. </div>
  6. </div>
  7. <div class="va-row row wrap">
  8. <div class="flex xs12">
  9. <div class="_blue-rectangle">
  10. 12
  11. </div>
  12. </div>
  13. </div
  14. </div>

List of displays:

PrefixDescription
xsPhones (<600px)
smSmall devices Tablets (≥600px)
mdMedium devices Desktops (≥960)
lgLarge devices Desktops (≥1280px)
xlExtra large devices Desktops (≥1920px)

va-layout can be used for a center focused page, or considering that fluid prop expands its full width. va-row is used for partitioning and contains v-flex.

BreakPoints:

You can use our breakpoints to set the length of you container:

Example:

  1. <div class="va-row">
  2. <div class="flex xs2 md4">
  3. <div class="_green-rectangle">xs2 md4</div>
  4. </div>
  5. <div class="flex xs8 md4">
  6. <div class="_green-rectangle">xs8 md4</div>
  7. </div>
  8. <div class="flex xs2 md4">
  9. <div class="_green-rectangle">xs2 md4</div>
  10. </div>
  11. </div>

Offsets

You can use our offset to set the space between left and current elements of you container:

Example

  1. <div class="va-row">
  2. <div class="flex xs1 offset--md3 offset--lg2">
  3. <div class="_blue-rectangle">
  4. First
  5. </div>
  6. </div>
  7. <div class="flex xs1 offset--md1 offset--lg3">
  8. <div class="_blue-rectangle">
  9. Second
  10. </div>
  11. </div>
  12. <div class="flex xs1 offset--md2 offset--lg1">
  13. <div class="_blue-rectangle">
  14. Last
  15. </div>
  16. </div>
  17. </div>

Gutters:

va-layout controls by gutter, which can be:

Class NameDescription
gutter—xsExtra small gutter between cells
gutter—smSmall gutter between cells
gutter—mdDefault gutter between cells
gutter—lgLarge gutter between cells
gutter—xlExtra large gutter between cells

Exmaple:

  1. <div class="va-layout gutter--md">
  2. <div class="va-row">
  3. <div class="flex">
  4. Grid sizes
  5. </div>
  6. </div>
  7. </div>

API:

align:

  • align—start - cross-start margin edge of the items is placed on the cross-start line
  • align—end - cross-end margin edge of the items is placed on the cross-end line
  • align—center - items are centered in the cross-axis`
  • align—baseline - items are aligned such as their baselines align
    align-self property accepts the same 5 values as the align-items:

  • align-self—start

  • align-self—end
  • align-self—center
  • align-self—baseline
    align-content:

  • align-content—start - lines packed to the start of the container

  • align-content—end - lines packed to the end of the container
  • align-content—center - lines packed to the center of the container
  • align-content—space-between - lines evenly distributed; the first line is at the start of the container while the last one is at the end
  • align-content—space-around - lines evenly distributed with equal space between them
    justify:

  • justify—start - items are packed toward the start line

  • justify—end - items are packed toward to end line
  • justify—center - items are centered along the line
  • justify—space-around - items are evenly distributed in the line with equal space around them
  • justify—space-between - items are evenly distributed in the line; first item is on the start line, last item on the end line
    justify-self:

  • justify-self—start - The item is packed flush to each other toward the start edge of the alignment container in the appropriate axis.

  • justify-self—end - The item is packed flush to each other toward the end edge of the alignment container in the appropriate axis.
  • justify-self—center - For items that are not children of a flex container, this value is treated like start.
  • justify-self—baseline