# Responsive Flex Layout

<figure><img src="https://125370873-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FzdpN2Lz0hzXpnNScDzVt%2Fuploads%2Fsd0XDq8NcKVbuqcsRQx0%2Fimage.png?alt=media&#x26;token=059d6f04-9bbc-486e-9743-b3c8d0a02577" alt=""><figcaption></figcaption></figure>

## Basic

#### Columns

| Property                                                                                                                                                                                                                                       | Description                                          |
| ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------- |
| <img src="https://125370873-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FzdpN2Lz0hzXpnNScDzVt%2Fuploads%2Fgit-blob-616a5fab73dfe4cdc6ab3af0aaca4dcc74c56353%2Fimage%20(273).png?alt=media" alt="" data-size="original"> | `Add` - To add a new column to the columns list      |
| <img src="https://125370873-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FzdpN2Lz0hzXpnNScDzVt%2Fuploads%2Fgit-blob-197d63ca7257e1aadc2d468cab52581e7a40c8f2%2Fimage%20(274).png?alt=media" alt="" data-size="original"> | `Move` - To rearrange the columns among the set      |
| <img src="https://125370873-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FzdpN2Lz0hzXpnNScDzVt%2Fuploads%2Fgit-blob-b2b9c64f2515897d0473183c956d4c4de66f75f9%2Fimage%20(276).png?alt=media" alt="" data-size="original"> | `Duplicate` - To make a copy of the existing column  |
| <img src="https://125370873-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FzdpN2Lz0hzXpnNScDzVt%2Fuploads%2Fgit-blob-f41e74eda457adbaf8003a93d361dd1565d7246e%2Fimage%20(278).png?alt=media" alt="" data-size="original"> | `Delete` - To remove an existing column from the set |

#### Edit Column

| Property         | Description                                                                                                           |
| ---------------- | --------------------------------------------------------------------------------------------------------------------- |
| Background       | Specify the background colour for the column.                                                                         |
| Background Image | Provide a valid URL for the image that renders as the background for the column.                                      |
| Border Color     | Mention the color for the column border.                                                                              |
| Border Radius    | Sets the radius of the widget's corners, enabling rounded corners on the widget. This value is defined in "px" terms. |
| Margin           | This value is set in terms of "px" number which creates the space between the border and the content of the column.   |

## Interaction

#### Disabled

Disables the user interaction with the element on the page. It visually indicates that the element is inactive and prevents users from interacting with it when applied. Shows a red-crossed warning symbol and can be customized to disable the widget according to certain conditions using low-code.

<figure><img src="https://125370873-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FzdpN2Lz0hzXpnNScDzVt%2Fuploads%2Fgit-blob-695f356d5e8bc58072102f50922157508eb6122b%2Fimage%20(224).png?alt=media" alt=""><figcaption><p>Read-only</p></figcaption></figure>

#### Hide

This sets whether the widget has to be displayed on the screen when the program is loaded. This shows/hides the widget both on desktop and mobile devices.

<figure><img src="https://125370873-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FzdpN2Lz0hzXpnNScDzVt%2Fuploads%2Fgit-blob-4aaa812d0b623487c085a616219a4515138079fb%2Fimage%20(211).png?alt=media" alt="" width="338"><figcaption><p>Set the visibility</p></figcaption></figure>

## Layout

#### Breakpoints

| Property | Description                                                                                                                                                                                                                                |
| -------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| xs       | Extra-small, abbreviated as "xs", refers to a measurement of 0 pixels                                                                                                                                                                      |
| md       | The media query with a medium size designation of 900 pixels is specified as "md, medium: 900px". This means that when the viewport width of a device reaches 900 pixels or less, the styles targeted by this media query will be applied. |
| xxl      | Extra extra large and double extra large sizes are equivalent to 1536 pixels in width. These sizes are typically used in reference to clothing or digital design elements to indicate a larger than average size.                          |

#### Flex Align

| Property   | Description                                                                                                                                                                               |
| ---------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| flex-start | Used in flex layout only, aligns the flex items flush against the flex container's main-start or cross-start side.                                                                        |
| center     | The flex items' margin boxes are centered within the line on the cross-axis. If the cross-size of an item is larger than the flex container, it will overflow equally in both directions. |
| flex-end   | Used in flex layout only, aligns the flex items flush against the flex container's main-end or cross-end side.                                                                            |
| baseline   | The item with the largest distance between its cross-start margin edge and its baseline is flushed with the cross-start edge of the line.                                                 |
| stretch    | If the items are smaller than the alignment container, auto-sized items will be equally enlarged to fill the container, respecting the items' width and height limits.                    |

#### Flex Gap

Used to create gaps or gutters between flex items.

| Property | Description                                              |
| -------- | -------------------------------------------------------- |
| none     | No gap is assigned between the items.                    |
| small    | A minimum gap is assigned between the items.             |
| middle   | A normal and standard space is created between the items |
| large    | More space is assigned between the items.                |

#### Flex Justify

| Property      | Description                                                                                                                                                                                                                                                                                                              |
| ------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| flex-start    | The items are packed flush to each other toward the edge of the alignment container depending on the flex container's main-start side. This only applies to flex layout items.                                                                                                                                           |
| center        | The items are packed flush to each other toward the center of the alignment container along the main axis.                                                                                                                                                                                                               |
| flex-end      | The items are packed flush to each other toward the edge of the alignment container depending on the flex container's main-end side. This only applies to flex layout items.                                                                                                                                             |
| space-between | The items are evenly distributed within the alignment container along the main axis. The spacing between each pair of adjacent items is the same. The first item is flush with the main-start edge, and the last item is flush with the main-end edge.                                                                   |
| space-around  | The items are evenly distributed within the alignment container along the main axis. The spacing between each pair of adjacent items is the same. The empty space before the first and after the last item equals half of the space between each pair of adjacent items. If there is only one item, it will be centered. |
| space-evenly  | The items are evenly distributed within the alignment container along the main axis. The spacing between each pair of adjacent items, the main-start edge and the first item, and the main-end edge and the last item, are all exactly the same.                                                                         |

#### Flex Direction

| Property | Description                                                                                                                                                                       |
| -------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| row      | The flex container's main-axis is defined to be the same as the text direction. The **main-start** and **main-end** points are the same as the content direction.                 |
| column   | The flex container's main-axis is the same as the block-axis. The **main-start** and **main-end** points are the same as the **before** and **after** points of the writing-mode. |

#### Flex Wrap

| Property     | Description                                                                                                                                                                                                                                                                                                                                                                                           |
| ------------ | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| nowrap       | The flex items are laid out in a single line which may cause the flex container to overflow. The cross-start is the equivalent of [inline-start or block-start](https://developer.mozilla.org/en-US/docs/Glossary/Flow_relative_values), depending on the [`flex-direction`](https://developer.mozilla.org/en-US/docs/Web/CSS/flex-direction) value. This is the default value.                       |
| wrap         | The flex items break into multiple lines. The cross-start is the equivalent of [inline-start or block-start](https://developer.mozilla.org/en-US/docs/Glossary/Flow_relative_values), depending on the current [writing mode](https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_writing_modes), and the [`flex-direction`](https://developer.mozilla.org/en-US/docs/Web/CSS/flex-direction) value. |
| wrap-reverse | Behaves the same as `wrap`, but cross-start and cross-end are inverted.                                                                                                                                                                                                                                                                                                                               |

#### Height

|       |                                             |
| ----- | ------------------------------------------- |
| Auto  | The height is auto-adjusted for the content |
| Fixed | The height of the widget is fixed           |

## Row Style

This represents the row lines created within column lines, also the top and bottom lines between the widget's border and content.

<table><thead><tr><th width="218" align="center">Property</th><th>Description</th></tr></thead><tbody><tr><td align="center">Background</td><td>This is the background space of the widget, behind all the columns. Users can change the colour of the background using this property. It has all the RGB colour ranges to pick from. It is recommended to use a corresponding background colour that shows the front element clearly.</td></tr><tr><td align="center">Box Shadow</td><td>The is the colour of the shadow that is generated behind the widget box. The X and Y axis values can be altered such that the shadow can be set to fall anywhere behind the widget area.<br>"x-offset" - a positive number specifies the shadow will be on the right of the box, and a negative number will put the shadow on the left of the box.<br>"y-offset" - a negative one means the shadow will be above the box, and a positive number means the shadow will be below the box.<br>"Blur" - if the number is set to 0 then the shadow will be sharp. It will more blurred as the number goes higher, and the shadow will extend further away.<br>"Color" - sets the colour of the shadow. If the colour is not set, the box shadows are drawn in the foreground colour.</td></tr><tr><td align="center">Border Color</td><td>Set the colour to the border lines. The border lines will be shown only if that is enabled.</td></tr><tr><td align="center">Border Radius</td><td>This sets the radius of the widget's corners, enabling rounded corners on the widget. This value is defined in "px" terms.</td></tr><tr><td align="center">Margin</td><td>This value is set in terms of "px" number, which creates the space between the border and outer elements.</td></tr><tr><td align="center">Padding</td><td>This value is set in terms of "px" number, which creates the space between the border and the content of the widget.</td></tr><tr><td align="center">Border Width</td><td>Set the thickness of the border of the widget using this value. It is defined using "px" terms.</td></tr></tbody></table>

## Column Style

This represents each column box added inside the widget.

<table><thead><tr><th width="218" align="center">Property</th><th>Description</th></tr></thead><tbody><tr><td align="center">Background</td><td>This is the background space of each column. Users can change the colour of the background using this property. It has all the RGB colour ranges to pick from. It is recommended to use a corresponding background colour that shows the front element clearly.</td></tr><tr><td align="center">Box Shadow</td><td>The is the colour of the shadow that is generated behind the column box. The X and Y axis values can be altered such that the shadow can be set to fall anywhere behind the widget area.<br>"x-offset" - a positive number specifies the shadow will be on the right of the box, and a negative number will put the shadow on the left of the box.<br>"y-offset" - a negative one means the shadow will be above the box, and a positive number means the shadow will be below the box.<br>"Blur" - if the number is set to 0 then the shadow will be sharp. It will more blurred as the number goes higher, and the shadow will extend further away.<br>"Color" - sets the colour of the shadow. If the colour is not set, the box shadows are drawn in the foreground colour.</td></tr><tr><td align="center">Border Color</td><td>Set the colour to the borderlines for each column. The borderlines will be shown only if that is enabled.</td></tr><tr><td align="center">Border Radius</td><td>This sets the radius on the corners of each column, enabling rounded corners to the column box. This value is defined in "px" terms.</td></tr><tr><td align="center">Margin</td><td>This value is set in terms of "px" number, which creates the space between the border of the column and the outer space.</td></tr><tr><td align="center">Padding</td><td>This value is set in terms of "px" number, which creates the space between the border and the content inside the column box.</td></tr><tr><td align="center">Border Width</td><td>Set the thickness of the border of the widget using this value. It is defined using "px" term</td></tr></tbody></table>
