Skip to content

Commit 0d4ff6f

Browse files
Fix: Custom Formatting Features.md - change float to grid
Heading `[[Custom Formatting Features.md#Callout Sizing]]` - the callout set to float right beside table renders poorly on mobile. Placed both the table and callout in a `[!even_columns]` grid callout so they display side-by-side on desktop, and stack vertically on mobile.
1 parent 70fdec1 commit 0d4ff6f

File tree

1 file changed

+38
-18
lines changed

1 file changed

+38
-18
lines changed

content/MMW Design & Planning/Custom Formatting Features.md

Lines changed: 38 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@ This page is an outline of custom formatting features implemented for use in the
99

1010
## Formatting
1111

12-
### [SIRvb's Image Adjustments](https://publish.obsidian.md/slrvb-docs/ITS+Theme/Image+Adjustments)
12+
### Image Adjustments
1313

14-
Image adjustments from SIRvb's Image Adjustments CSS snippet are incorporated into MMW. Some examples of how it can be used include:
14+
Image adjustments from [SIRvb's Image Adjustments](https://publish.obsidian.md/slrvb-docs/ITS+Theme/Image+Adjustments) CSS snippet are incorporated into MMW. Some examples of how it can be used include:
1515
- resizing images
1616
- displaying images as a banner across the page or across a callout
1717
- image-warp (using the CSS 'float' property), allowing text and other content to wrap around an image.
@@ -93,22 +93,42 @@ MMW borrows a large number of [Callout Adjustments](https://publish.obsidian.md/
9393

9494
### Callout Sizing
9595

96-
> [!note|right ws-med clear] Add `|static` to use fixed sizing with pixels
97-
>
98-
> Callout sizing uses percentages by default, `|static` switches to pixels to use static sizing.
99-
100-
|Attributes|Callout Width `%`|Callout Width `px`|
101-
|---|:-:|:-:|
102-
|`wmicro`|10%|50px|
103-
|`wtiny`|20%|100px|
104-
|`wsmall`|30%|200px|
105-
|`ws-med`|40%|300px|
106-
|`wm-sm`|50%|400px|
107-
|`wmed`|60%|500px|
108-
|`wm-tl`|80%|600px|
109-
|`wtall`|95%|700px|
110-
|`wfull`|100%||
111-
|`wfit`|Auto|Auto|
96+
Callouts can be resized using the keywords below.
97+
98+
The sizing is a percentage, relative to the callout's parent. Using `|wmed` as an example:
99+
100+
- if placed directly in the page body, it would take up 60% page-width.
101+
- if nested within another callout, it would only take up 60% of the 'parent' callout's width.
102+
103+
Sizing can be made to use pixels instead of percentage by adding `|static`.
104+
105+
> [!even_columns]
106+
>
107+
> > [!note|clean no-t]
108+
> >
109+
> > |Attributes|Callout Width `%`|Callout Width `px`|
110+
> > |---|:-:|:-:|
111+
> > |`wmicro`|10%|50px|
112+
> > |`wtiny`|20%|100px|
113+
> > |`wsmall`|30%|200px|
114+
> > |`ws-med`|40%|300px|
115+
> > |`wm-sm`|50%|400px|
116+
> > |`wmed`|60%|500px|
117+
> > |`wm-tl`|80%|600px|
118+
> > |`wtall`|95%|700px|
119+
> > |`wfull`|100%||
120+
> > |`wfit`|Auto|Auto|
121+
>
122+
> > [!note|clean no-t]
123+
> >
124+
> > > [!note] Add `|static` for sizing with pixels
125+
> > >
126+
> > > Callout sizing uses percentages by default. `|static` switches to pixels to use static sizing.
127+
> >
128+
> > > [!tip]
129+
> > >
130+
> > > Callout sizing is the same as [[Custom Formatting Features#SIRvb's Image Adjustments|SIRvb's Image Adjustments]]
131+
112132

113133
---
114134

0 commit comments

Comments
 (0)