diff --git a/src/AppMenu.vue b/src/AppMenu.vue index f9eb5ca28..927d08a09 100755 --- a/src/AppMenu.vue +++ b/src/AppMenu.vue @@ -20,6 +20,7 @@
PrimeFlex is available at npm, if you have an existing application run the following command to download it to your project.
-Then add the primeflex.css to your application
-Core member of the FormLayout is the .p-field class that wraps the input field and the associated label.
PrimeFlex is available at npm, if you have an existing application run the following command to download it to your project.
-Then add the primeflex.css to your application
-FlexGrid is a CSS utility based on flexbox. For more information about Flex, visit A Complete Guide to Flexbox. A basic grid is defined by giving a container p-grid class and children the p-col class. Children of the grid will have the same width and scale according to the width of the parent.
diff --git a/src/views/primeflex/PrimeFlexSetup.vue b/src/views/primeflex/PrimeFlexSetup.vue new file mode 100644 index 000000000..d6c53023c --- /dev/null +++ b/src/views/primeflex/PrimeFlexSetup.vue @@ -0,0 +1,120 @@ + +PrimeFlex is a CSS utility library featuring various helpers such as a grid system, flexbox, spacing, elevation and more. Although it is not required, it is highly + recommended to add PrimeFlex as it is likely to need such utilities when developing applications with PrimeVue.
+ +PrimeFlex is available at npm, if you have an existing application run the following commands to install it.
+ +Next step is adding the primeflex.css to your application to include all utilities. If you prefer to pick the utilities, move to next step instead.
+ +PrimeFlex is a lightweight library still if you have an application such as one based on vue-cli + that is able to import scss then you will be able to pick the utilities you need to make the app bundle even smaller.
+PrimeFlex uses sensible defaults for the variables.
+ +Variable | +Description | +Default | +
---|---|---|
$sm | +Breakpoint of screens such as phones. | +576px | +
$md | +Breakpoint of screens such as tablets. | +768px | +
$lg | +Breakpoint of screens such as notebook monitors. | +992px | +
$xl | +Breakpoint of smaller screens such as desktop monitors. | +1200px | +
$gutter | +Padding of a grid column. | +.5rem | +
$fieldMargin | +Spacing of a field. Can be vertical of horizontal depending on form layout. | +.5rem | +
$fieldLabelMargin | +Spacing of a field label. Can be vertical of horizontal depending on form layout. | +.5rem | +
$helperTextMargin | +Top spacing of a helper text. | +.5rem | +
$spacer | +Base value to use in spacing utilities, view spacing documentation for details. | +.5rem | +
There are two ways to use these variables, one option is getting the source code of PrimeFlex from github, compile your own primeflex and importing the css file. Other + alternative is importing your own variables to override the defaults if your application can import scss files. Example below overrides breakpoints; +
+ +_overrides.scss
+