Display & Typography
Display, Typography and Spacing
Integrate Vuetify-Display and Layout behaviour by using schema property 'class'. But you can pass any other CSS class into your control here.
for available Options look here at some extracts from original vuetify doc.
Specify the elements display
property. These classes can be applied to all breakpoints from xs
to xl
. When using a base class,.d-{value}
, it is inferred to be .d-${value}-xs
.
.d-{value}
forxs
.d-{breakpoint}-{value}
forsm
,md
,lg
andxl
The value property is one of:
none
inline
inline-block
block
table
table-cell
table-row
flex
inline-flex
These classes can be applied to all breakpoints from xs
to xl
. When using a base class, .text-{value}
, it is inferred to be .text-xs-${value}
.
.text-{value}
forxs
.text-{breakpoint}-{value}
forsm
,md
,lg
andxl
The value property is one of:
h1
h2
h3
h4
h5
h6
subtitle-1
subtitle-2
body-1
body-2
button
caption
overline
The helper classes apply margin or padding to an element ranging from 0 to 16. 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:
m
- appliesmargin
p
- appliespadding
The direction designates the side the property applies to:
t
- applies the spacing formargin-top
andpadding-top
b
- applies the spacing formargin-bottom
andpadding-bottom
l
- applies the spacing formargin-left
andpadding-left
r
- applies the spacing formargin-right
andpadding-right
s
- applies the spacing formargin-left
/padding-left
(in LTR mode) andmargin-right
/padding-right
(in RTL mode)e
- applies the spacing formargin-right
/padding-right
(in LTR mode) andmargin-left
/padding-left
(in RTL mode)x
- applies the spacing for both*-left
and*-right
y
- applies the spacing for both*-top
and*-bottom
a
- applies the spacing for the property in all directions
The size controls the increment of the property in 4px intervals:
0
- eliminates allmargin
orpadding
by setting it to0
1
- setsmargin
orpadding
to 4px2
- setsmargin
orpadding
to 8px3
- setsmargin
orpadding
to 12px4
- setsmargin
orpadding
to 16px...
16
- setsmargin
orpadding
to 64pxn1
- setsmargin
to -4pxn2
- setsmargin
to -8pxn3
- setsmargin
to -12pxn4
- setsmargin
to -16px...
n16
- setsmargin
to -64pxauto
- sets the spacing to auto
Floats can also be applied on a per breakpoint (viewport) basis.
Float left on viewports sized SM (small) or wider Float left on viewports sized MD (medium) or wider Float left on viewports sized LG (large) or wider Float left on viewports sized XL (extra-large) or wider
Here is a list of all the available support classes:
.float-left
.float-right
.float-none
.float-sm-left
.float-sm-right
.float-sm-none
.float-md-left
.float-md-right
.float-md-none
.float-lg-left
.float-lg-right
.float-lg-none
.float-xl-left
.float-xl-right
.float-xl-none
Last updated