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.
mySchema: {
name: {
type: 'text',
class:'title d-flex d-sm-none ml-4 pa-1 float-left'
}
}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,lgandxl
The value property is one of:
noneinlineinline-blockblocktabletable-celltable-rowflexinline-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,lgandxl
The value property is one of:
h1h2h3h4h5h6subtitle-1subtitle-2body-1body-2buttoncaptionoverline
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- appliesmarginp- appliespadding
The direction designates the side the property applies to:
t- applies the spacing formargin-topandpadding-topb- applies the spacing formargin-bottomandpadding-bottoml- applies the spacing formargin-leftandpadding-leftr- applies the spacing formargin-rightandpadding-rights- 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*-leftand*-righty- applies the spacing for both*-topand*-bottoma- applies the spacing for the property in all directions
The size controls the increment of the property in 4px intervals:
0- eliminates allmarginorpaddingby setting it to01- setsmarginorpaddingto 4px2- setsmarginorpaddingto 8px3- setsmarginorpaddingto 12px4- setsmarginorpaddingto 16px...16- setsmarginorpaddingto 64pxn1- setsmarginto -4pxn2- setsmarginto -8pxn3- setsmarginto -12pxn4- setsmarginto -16px...n16- setsmarginto -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
Was this helpful?