diff --git a/css/index.css b/css/index.css index 821fda9..ec138a0 100644 --- a/css/index.css +++ b/css/index.css @@ -175,6 +175,14 @@ blockquote { padding-left: 2rem; } +figure { + padding: 0; + margin: 0; +} +figcaption { + color: var(--graymedium); +} + pre, code { font-family: Consolas, Menlo, Monaco, "Andale Mono WT", "Andale Mono", "Lucida Console", "Lucida Sans Typewriter", "DejaVu Sans Mono", "Bitstream Vera Sans Mono", "Liberation Mono", "Nimbus Mono L", "Courier New", Courier, monospace; diff --git a/img/layouts-grid-main.mp4 b/img/layouts-grid-main.mp4 new file mode 100644 index 0000000..2510d02 Binary files /dev/null and b/img/layouts-grid-main.mp4 differ diff --git a/img/layouts-grid-main.png b/img/layouts-grid-main.png new file mode 100644 index 0000000..12a3e6d Binary files /dev/null and b/img/layouts-grid-main.png differ diff --git a/user-guide/flexible-layouts/index.njk b/user-guide/flexible-layouts/index.njk index e1d206d..337f203 100644 --- a/user-guide/flexible-layouts/index.njk +++ b/user-guide/flexible-layouts/index.njk @@ -2,21 +2,24 @@ title: 08· Flexible Layouts --- -

Flex Layout

+

Flexible Layouts

+

Penpot's proposal tries to get as close as possible to the final output that we will see on the web. Design and development speak the same language in order to embrace web standards and improve communication between roles. At Penpot you have unique ways to create and manage adaptative layouts that have all the advantages of CSS standards.

+ + +

Flex Layout

Penpot's unique Flex Layout allows you to create flexible designs that can adapt automatically. Resize, fit, and fill content and containers without the need to do it manually.

To help you learn the fundamentals of Flex Layout here’s a dedicated website where you will find a video tutorial and a playground template.

-

Flex Layout is based on CSS standards

-

Penpot's proposal tries to get as close as possible to the final output that we will see on the web. Design and development speak the same language in order to embrace web standards and improve communication between roles. -Penpot's Flex Layout is built over Flexbox, a CSS module that provides a more efficient way to lay out, align and distribute space among items in a container. As there are already many comprehensive explations about Flexbox we are not going to write another one. If you are interested we can recommend you to read the one at CSS Tricks.

+

Flex Layout is based on Flexbox CSS standard

+

Penpot's Flex Layout is built over Flexbox, a CSS module that provides a more efficient way to lay out, align and distribute space among items in a container. As there are already many comprehensive explations about Flexbox we are not going to write another one. If you are interested we can recommend you to read the one at CSS Tricks.

Flex Layout

Image from CSS Tricks -

Add Flex Layout

+

Add Flex Layout

You can add Flex Layout to any layer, group, board or a selection including any of these. Once Flex Layout Flex is added the selected elements will be contained into a board with the Flex Layout properties. You have several ways to do this:

-

Positioning Flex elements

+

Positioning Flex elements

Position static:

Static position is the default option for flex elements, meaning that they will be included in the flex flow, using flex properties.

Flex Layout

@@ -57,8 +60,7 @@ Penpot's Flex Layout is built over Flexbox, a CSS module that provides a more ef

With the z-index option you can decide the order of overlapping elements while maintaining the layers order.

Flex Layout

- -

Managing flex spacing

+

Managing flex spacing

When creating Flex layouts, the spacing is predicted, helping you to maintain your design composition.

Flex Layout

@@ -71,12 +73,11 @@ Penpot's Flex Layout is built over Flexbox, a CSS module that provides a more ef

Flex Layout

-

Get code and specifications

+

Get code and specifications

Designing with Flex Layout generates ready for production code. Select the flex board or its inner elements and then open the Inspect tab to obtain its properties, detailed info and raw code.

Flex Layout

- -

Flex Layout basic examples

+

Flex Layout basic examples

How to create a button

A classic example that will help you create flexible buttons that grow depending on its content.

Flex Layout

@@ -90,4 +91,63 @@ Penpot's Flex Layout is built over Flexbox, a CSS module that provides a more ef

Flex Layout

+

Grid Layout

+

Grid Layout allows you to efficiently organize, align, and distribute items in 2-dimensional layouts. You can create rows and columns of elements, giving you fine-grained control over their expansion, alignment, and responsiveness to various screen sizes.

+
+ +
Rearranging cells in Grid Layout
+
+ +

Grid Layout is based on CSS Grid standard

+

Penpot's Grid Layout is built over CSS Grid, a fairly new CSS module that provides a more efficient way to lay out, align and distribute space among items in a container using two dimensions. If you are interested to know more about this CSS module we can recommend you to read this awesome Guide to CSS Grid at CSS Tricks.

+ + +

Add Grid Layout

+

You can add Grid Layout to any layer, group, board or a selection. Once Grid Layout Flex is added the selected elements will be contained into a board that handles its space through Grid Layout properties. You have several ways to do add Grid Layout:

+ +

Flex Layout

+ + + + +management +- sidebar +- board + +properties +- positioning +- alignment +- direction + +Edition +- Col & rows +- Units (fr, auto, px) +- Cells & Areas - naming + +code +- html & css + +use cases +- magazine +- table +- bento grid + + +Differences grid flex +- direction +- space control +- complexity +- use cases + +keyboard +- crear Shift +- ctrl drag +- drag shapes en grid con ctrl para que la shape la ponga en auto +