-
Notifications
You must be signed in to change notification settings - Fork 7
Container
Giorgio Garofalo edited this page Nov 28, 2024
·
7 revisions
Image you want to make a row with two columns, each one with a heading and some text below. The following is what a novice might attempt:
<!-- WRONG! -->
.row alignment:{center} gap:{1cm}
## Left
Text on left column.
## Right
Text on right column.
As mentioned in the Stacks page:
In order to understand which elements they [stack functions] must handle, they rely on the strict Markdown concept of block, an isolated chunk of the document [...]
Rendering the previous snippet brings us to this (incorrect) result:
Some may then use columns:
<!-- Could be improved -->
.row alignment:{center} gap:{1cm}
.column cross:{start}
## Left
Text on left column.
.column cross:{start}
## Right
Text on right column.
This works, but the concept isn't really correct: we don't want some layout rule, we just want to reset the document flow back to normal. This is what the .container
layout does: grouping elements together according to the natural flow of the document.
<!-- Correct! -->
.row alignment:{center} gap:{1cm}
.container
## Left
Text on left column.
.container
## Right
Text on right column.
Result:
Optional parameters:
Parameter | Description | Accepts | Default |
---|---|---|---|
width |
Box width constraint. | Size |
No constraint. |
height |
Box height constraint. | Size |
No constraint. |
fullwidth |
Whether to take up the parent's full width. Overridden by width . |
Boolean |
False |
foreground |
Text color. | Color |
Document's default. |
background |
Background color. | Color |
(none) |
border |
Border color. | Color |
Browser's default if borderwidth is set, none otherwise. |
borderwidth |
Border size. | Sizes |
Browser's default if border is set, none otherwise. |
borderstyle |
Border type. |
normal , dashed , dotted , double
|
normal if border or borderwidth is set, none otherwise. |
radius |
Corner/border radius. | Sizes |
(none) |
alignment |
Content alignment. |
start , center , end
|
Browser's default. |
- Syntax of a function call
- Declaring functions
- Dynamic typing
- Localization
- Including other Quarkdown files
- Importing external libraries
- Document metadata
- Theme
- Page format
- Page margin content
- Page counter
- Automatic page break
- Numbering
- Table of contents
- Stacks (row, column, grid)
- Align
- Container
- Box
- Collapsible
- Whitespace
- String
- Number
- Markdown content
- Boolean
- Enumeration entry
- Iterable
- Dictionary
- Range
- Lambda
- Size(s)
- Color
- Dynamic