This page explains the options available for setting styles for borders, backgrounds, fonts etc.
Overview
A style is a container for a set of CSS properties. A style can be assigned to parts of an application, such as component. You can also use a style to provide default formatting, for example on selected grid rows. The style properties tab makes it easy to configure the CSS for your application, using tick boxes, lists and colour pickers. For complete flexibility, you can use the CSS Properties section to enter CSS strings. PhixFlow combines the selected options and CSS properties when it applies the formatting to your application. See www.w3schools css for details of CSS.
For more on how positions and styles can affect screen design, see /wiki/spaces/HELP12/pages/9615611081.
You can add styles to an individual component using its properties → Style Settings section; see Component Properties. However, if you want your application to have consistent styling, we recommend you create a style and then share it with multiple components.
To create and share formatting:
Tip |
---|
If you want your application to have components that all look the same, you can design them once, then add them to a How to Create a Palette. |
Specify width and height values with their units, for example %, px or em.
Basic Settings
Tip |
---|
The data in hidden components does not refresh. If you need the data on a hidden grid to refresh, set the Position Settings: Height and Width to 0. |
Select a border style:
- None
- Hidden
- Dotted
- Dashed
- Solid
- Double
- Groove
- Ridge
- Inset
- Outset
- Initial
- Inherit
Specify the colour for the border and background. Click on the sample square to open a colour picker and select a color. Click back into the properties tab to close the colour picker.
Background Image
PhixFlow assumes you want to use an image to fill the background. For smaller images it will repeat the image to fill the available space. To change this property select one of the options:
- repeat - repeat the image to fill the space available
- repeat-x - repeat the image to fill the space horizontally
- repeat-y - repeat the image to fill the space vertically
- no-repeat - show a single instance of the image.
Background Attachment
Select how the image is to be fixed:
- scroll
- fixed
- local
For an example of how these work, see css-tricks.com background-attachment.
Select how bold the text appears:
- normal (default)
- bold
- bolder
- lighter
- initial
- inherit
Select how angled the text appears:
- normal
- italic
- oblique
- initial
- inherit
Select how the text aligns within the component's space:
- left
- right
- centre
- justify
- initial
- inherit
Tip |
---|
Grid and card container components that have scrollbars can also scroll automatically. This means users can drag cards or grid items to targets that are currently off-screen.
Automatic scrolling can be:
|
Responsive Sizing
When a user resizes the screen that is displaying the dashboard, PhixFlow can vary the size and position of some components in the screen. To configure this, use the following style settings, which are available for the components:
- areas
- forms
- card containers
- URL fields
- string fields.
If ticked this component will resize to fill the available space in the direction set on the parent. If the user resizes the dashboard the components will resize. If multiple components have auto size selected, the available space will be shared between auto sized components.
Tip |
---|
Cards cannot be auto sized. |
The number representing how much a component can resize.
When you have several components, PhixFlow uses the difference in their numbers to allocate space. For example, if you have 3 components (A, B and C) with their grow factor set to:
- the same value, 1, for all components, PhixFlow allocates the available space equally to components A, B and C
- different values, A=1, B=2 and C=3, PhixFlow divides the space into 6 equal portions and allocates:
- 1 portion to A
- 2 portions to B
- 3 portions to C.
If a direction is selected, components inside this container will be distributed in the selected direction.
- Row - Components will be distributed as a single row, in order. The components will shrink to fit if the window is made smaller than the width of the components.
- Row Reverse- Components will be distributed in rows, in reverse order.
- Column - Components will be distributed as a single column, in order. If the window height is made smaller only components with Auto Size ticked will be resized.
- Column Reverse - Components will be distributed as column in reverse order.
This field is only visible if a direction is selected. Wrap affects how the components wrap when there is less space available.
- Wrap - wrap the components starting with either the right column, or the bottom row.
- Wrap Reverse - wrap the components starting with the left column or the top row.
- No Wrap - never wrap.
This field is only visible if a direction is selected. Justify affects the position of the components in the direction set (horizontal for row, vertical for column). see also CSS justify-content property (w3schools.com).
- Flex Start - Components will be positioned from the start edge of the container, with no spacing between them.
- Flex End - Components will be positioned so the last component aligns with the end edge of the container, with no spacing between them.
- Center - Components will be centred in the direction set, with no spacing between them, and equal spacing between the edge of the container and the first and last component.
- Space Around - Distribute components with even spacing, between each component and half spacing between the components and their container.
- Space Between - Distribute components with equal spacing in between each component, but no spacing between the component and the container.
- Space Evenly - Distribute components with equal spacing in between each component. and between components and the container.
This field is only visible if a direction is selected. Align affects the position of the components perpendicular to the direction set (vertical for row, horizontal for column).
- Flex Start - Components will be positioned from the start edge of the container, with no spacing between them.
- Flex End - Components will be positioned so the last component aligns with the end edge of the container, with no spacing between them.
- Center - Components will be centred, with no spacing between them, and equal spacing between the edge of the container and the first and last component.
- Baseline - Position components so their baselines align.
- Stretch - Components with no size set in this direction will have their size increased to fill the container in this direction.
- Space Around - Distribute components with even spacing around each component.
CSS Properties
A list of CSS properties. ClickThe Order in Which Styles Are Applied
PhixFlow applies styles in the following order:
- Shared styles
- CSS properties
- Style Settings
- Conditional Formatting
- Position Settings
Insert excerpt | ||||||||
---|---|---|---|---|---|---|---|---|
|