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 --- -
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.
+ + +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.
-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.
+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.
Image from CSS Tricks -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:
To add an object to a Flex Layout you can just drag it at the position of your choice. You can also create or paste elements like in any regular board.
To reorder elements you can drag them or use the UP/DOWN keystrokes.
-You have properties for direction, align, justify, gap, padding, margin and sizing. Those are the same properties that you can use with CSS Flexbox. You can read here detailed explanations about Flexbox properties.
Static position is the default option for flex elements, meaning that they will be included in the flex flow, using flex properties.
@@ -57,8 +60,7 @@ Penpot's Flex Layout is built over Flexbox, a CSS module that provides a more efWith the z-index option you can decide the order of overlapping elements while maintaining the layers order.
- -When creating Flex layouts, the spacing is predicted, helping you to maintain your design composition.
@@ -71,12 +73,11 @@ Penpot's Flex Layout is built over Flexbox, a CSS module that provides a more ef -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.
- -A classic example that will help you create flexible buttons that grow depending on its content.
@@ -90,4 +91,63 @@ Penpot's Flex Layout is built over Flexbox, a CSS module that provides a more ef +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.
+ + +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.
+ + +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:
+