5.5 KiB
System design
First solve the problem then write the code
Table of content
- Diplay
- Flex
- Float
d-inline-flex- sets the element display property toinline-flexd-flex- sets the element display property toflexd-inline-block- sets the element display property toinline-blockd-block- sets the element display property toblockd-inline- sets the element display property toinlined-none- sets the element display property tonone- .d-flex
- .d-inline-flex
- .d-md-flex
- .d-lg-flex
- .flex-row
- .flex-row-reverse
- .flex-column
- .flex-column-reverse
- .flex-md-row
- .flex-lg-row
- .justify-start
- .justify-end
- .justify-center
- .justify-space-between
- .justify-space-around
- .justify-md-start
- .justify-lg-start
- .align-start
- .align-end
- .align-center
- .align-baseline
- .align-stretch
- .align-md-start
- .justialignfy-lg-start
- .align-start
- .align-end
- .align-center
- .align-baseline
- .align-stretch
- .align-md-start
- .align-lg-start
- .flex-nowrap
- .flex-wrap
- .flex-wrap-reverse
- .flex-md-nowrap
- .flex-lg-nowrap
- .float-left
- .float-right
- .float-md-left
- .float-lg-left
m- appliesmarginp- appliespaddingt- applies the spacing for*-topb- applies the spacing for*-bottoml- applies the spacing for*-leftr- applies the spacing for*-rightx- applies the spacing for both*-leftand*-righty- applies the spacing for both*-topand*-bottoma- applies the spacing for the property in all directions
Diplay
Specify the elements display property. These classes can be applied using the following format d-{display}.
Flex
Control the layout of flex containers with alignment, justification and more with responsive flexbox utilities.
You can also customize flex utilities to apply based upon various breakpoints.
Enabling flexbox
Flex direction
Flex-justify
Flex align
Flex align self
Flex wrap
Float
Float utility classes.
You can also customize flex utilities to apply based upon
Float direction
Spacing
The helper classes apply margin or padding to an element ranging from 0 to 5. Each size increment was designed to align with common Material Design spacings. These classes can be applied using the following format {property}{direction}-{size}.
The property applies the type of spacing:
The direction designates the side the property applies to:
The size controls the increment of the property:
Example:
<template>
<div>
<span class="pl-3">Test</span><br>
<span class="ml-5 "
>Test</span>
<div>
</template>