🎉 Release 1.18 content

This commit is contained in:
andy 2023-03-20 11:49:46 +01:00
parent cbfa747fe6
commit 64659d7c9f
10 changed files with 36 additions and 1 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 26 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 22 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 75 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 38 KiB

After

Width:  |  Height:  |  Size: 39 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 82 KiB

BIN
img/flexlayout-spacing.gif Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 738 KiB

BIN
img/scale-groups-texts.gif Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 641 KiB

View File

@ -36,12 +36,36 @@ Penpot's Flex Layout is built over Flexbox, a CSS module that provides a more ef
<li><strong>Direction:</strong> Row, reverse row, column, reverse column.</li>
<li><strong>Wrap (Direction):</strong> Align content start / center / end / space-around / space-between.</li>
<li><strong>Align items:</strong> Start, center, end.</li>
<li><strong>Justify content:</strong> start, center, end, space-around, space-between.</li>
<li><strong>Justify content:</strong> start, center, end, space-between, space-around, space-evenly.</li>
<li><strong>Gap:</strong> Row, column.</li>
<li><strong>Padding:</strong> Top, right, bottom, left.</li>
<li><strong>Sizing:</strong> Fix/fit width, Fix/fit height.</li>
</ul>
<h3 id="flexlayout-elements">Positioning Flex elements</h3>
<h4>Position static:</h4>
<p>Static position is the default option for flex elements, meaning that they will be included in the flex flow, using flex properties.</p>
<p><img src="/img/flexlayout-position-static.png" alt="Flex Layout" /></p>
<h4>Position absolute:</h4>
<p>Selecting absolute position will exclude the element from the Flex layout flow allowing you to freely position an element in a specific place regardless of the size of the layout where it belongs.</p>
<p><img src="/img/flexlayout-position-absolute.png" alt="Flex Layout" /></p>
<h4>Z-index:</h4>
<p>With the new z-index option you can decide the order of overlapping elements while maintaining the layers order.</p>
<p><img src="/img/flexlayout-position-z.gif" alt="Flex Layout" /></p>
<h3 id="flexlayout-spacing">Managing flex spacing</h3>
<p>When creating Flex layouts, the spacing is predicted, helping you to maintain your design composition.</p>
<p><img src="/img/flexlayout-spacing-add.gif" alt="Flex Layout" /></p>
<p>Set paddings, margins and gaps using their respective numeric inputs</p>
<p>You can also <strong>click and drag</strong> to resize them while visualizing the value that is being edited:</p>
<ul>
<li>Hold <kbd>Shift/⇧</kbd> while dragging to change the value of opposite sides uniformly.</li>
<li>Hold <kbd>Alt/⌥</kbd> while dragging to change the value of all sides uniformly.</li>
</ul>
<p><img src="/img/flexlayout-spacing.gif" alt="Flex Layout" /></p>
<h3 id="flexlayout-code">Get code and specifications</h3>
<p>Designing with Flex Layout generates ready for production code. Select the flex board or its inner elements and then open the <a href="/user-guide/inspect" target="_blank">Inspect tab</a> to obtain its properties detailed info and raw code.</p>

View File

@ -192,6 +192,11 @@ title: Shortcuts
<td style="text-align: center;"><kbd>Ctrl</kbd><kbd>\</kbd></td>
<td style="text-align: center;"><kbd>⌘</kbd><kbd>\</kbd></td>
</tr>
<tr>
<td>Toggle scale tool</td>
<td style="text-align: center;"><kbd>K</kbd></td>
<td style="text-align: center;"><kbd>K</kbd></td>
</tr>
</tbody>
</table>

View File

@ -103,6 +103,12 @@ title: 04· Layer basics
<p><img src="/img/layers-flipping.gif" alt="layers flipping" /></p>
<h3 id="scaling-groups-texts">Scale tool for texts and groups</h3>
<p>Activate the scale tool by pressing <kbd>K</kbd> or from the main file menu to scale elements (texts, groups or other layers) maintaining their visual aspect. Once is activated you can resize texts, layers and groups preserving their aspect ratio while scaling their properties proportionally, including strokes, shadows, blurs and corners.
+ <kbd>H</kbd>. To flip a layer <strong>vertically</strong> press <kbd>Shift/⇧</kbd> + <kbd>V</kbd>. You can also find these actions at the layers menu.</p>
<p><img src="/img/scale-groups-texts.gif" alt="Scaling groups and texts" /></p>
<h3 id="aling-distribute-layers">Aligning and distributing layers</h3>
<p>Aligning and distributing layers can be found at the top of the Design panel. </p>
<p><strong>Aligning</strong> will move all the selected layers to a position relative to one of them. For instance aligning top will align the elements with the edge of the top-most element.</p>