mirror of
https://github.com/gitpitch/gitpitch.git
synced 2024-04-18 07:30:55 +08:00
1.4 KiB
1.4 KiB
Grid Alignment
The grid set property is used to activate custom styles and behaviors for a layout block. The Grid Set Guide focuses on styles. This guide focuses on the following behaviors:
- align-left
- align-right
- align-top
- align-bottom
Alignment behavior is used to override the default center
alignment for content within your layout blocks.
Activate Alignment
The following basic syntax is used to activate a custom align-xxx behavior on a layout block:
[drag=width height, drop=x y, set=align-xxx]
Where xxx can take a value of left
, right
, top
, or bottom
.
The left
or right
alignment behavior is used when column flow is activated on a layout block. While top
or bottom
alignment behavior is used when row flow is activated on a layout block.
This sample slide demonstrating alignment behavior was created using the following markdown snippet:
[drag=50 40, drop=5, set=align-left]
Lorem ipsum
Dolor sit amet, consectetur adipiscing
Sed eiusmod tempor incididunt
[drag=50 40, drop=-5, set=align-right]
Lorem ipsum
Dolor sit amet, consectetur adipiscing
Sed eiusmod tempor incididunt