You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- `[!even_columns]` callout renamed to `[!column]`
- column callout now has new features
- `|flex` metadata to make columns stack responsively on mobile
- `|list-global` and `|list` metadata to display unordered lists in columns
- control over the number of columns. Combined with `|flex` metadata, these will display e.g., 3 or 4 columns on desktop, but stack vertically on mobile.
- updated `MMW Design & Planning/Custom Formatting Features.md`
- renamed css snippet to `MMW_Column_Callout.css`
Copy file name to clipboardExpand all lines: content/MMW Design & Planning/Custom Formatting Features.md
+31-41Lines changed: 31 additions & 41 deletions
Original file line number
Diff line number
Diff line change
@@ -24,7 +24,9 @@ These should be used for any instance where programs' default hotkeys (ones whic
24
24
25
25
> [!tip]- Closing HTML tags
26
26
>
27
-
> `<kbd>` is an HTML tag. It is used to surround an 'element' (in this case, a piece of text). As it is not self-closing, the second tag in a pair of closing tags needs a `forward slash` (<kbd>/</kbd>), for example: \<kbd\>\</kbd\>.
27
+
> `<kbd>` is an HTML tag. It is used to surround an 'element' (in this case, a piece of text). As it is not self-closing, the second tag in a pair of tags needs a `forward slash` (<kbd>/</kbd>) to 'close' it.
28
+
>
29
+
> **Example**: \<kbd\>\</kbd\>.
28
30
29
31
---
30
32
@@ -136,55 +138,43 @@ Sizing can be made to use pixels instead of percentage by adding `|static`.
136
138
137
139
In addition to the default [Obsidian Callouts](https://help.obsidian.md/Editing+and+formatting/Callouts), MMW also adds the following custom Callouts:
138
140
139
-
### Callout Grid
141
+
### Column Callout
140
142
141
-
> [!even_columns]
142
-
>
143
-
> **(Column 1)** <br>
144
-
> The `[!even_columns]` callout is an invisible callout whose contents get displayed as a grid. Each new line of the callout represents a new grid column. You can nest callouts, images or even codeblocks in the grid.
145
-
>
146
-
> **(Column 2)** <br>
147
-
> The number of columns depends on the page-width. The MMW site has a wider page-width than Obsidian's default page-width, so it displays three columns rather than two.
148
-
>
149
-
> > [!caption]
150
-
> >
151
-
> > ![[PuzzleBoxOnly.png|wsmall]]
152
-
> >
153
-
> > A caption callout nested in the grid.
143
+
The `[!column]` callout lets you display content as a grid.
154
144
155
-
#### Syntax
145
+
The callout itself is invisible but its contents get displayed as a grid, with each new line of the callout represents a new grid column. It works best when nesting other callouts within it. However, if you wish to write content in columns without callout styling for the nested callouts, you can add the [[Custom Formatting Features#Callout Adjustments|Callout Adjustments]] metadata `clean no-title` to them.
156
146
157
-
> [!even_columns]
158
-
>
159
-
> ```markdown title="plaintext"
147
+
By adding the `flex` metadata, grid columns will stack vertically on mobile.
148
+
149
+
> [!column|flex 3]
160
150
>
161
-
> > [!even-columns]
162
-
> >
163
-
> > left
164
-
> >
165
-
> > center
166
-
> >
167
-
> > right
151
+
> > [!warning] Use Nested Callouts
168
152
> >
169
-
> ```
170
-
>
171
-
> ```markdown title="nested callouts"
153
+
> > `[column]` is designed to have callouts nested within it.
154
+
> >
155
+
> > To remove styling from nested callouts, add `clean no-title` to the metadata
/* original ITS CSS used (var(--file-line-width), an Obsidian variable for readable line length (the width of the page). Substituted for Quartz SASS variable $pageWidth */
0 commit comments