Callouts?
Is it possible to have something like callouts or admonitions in wackowiki?
like this: https://squidfunk.github.io/mk[...]/admonitions/?h=call
or this: https://www.lotar.altervista.o[...]bootswrapper/callout
I have seen that one can make a named box, but would need to at least color the box in red/green/yellow/blue.
thanks!
PS: I am totally new to wackowiki and used mkdocs and dokuwiki before :)
Comments
Log in or create an account to post a comment.
Color Box Formatter
Re: Callouts
shade
andbox
wrapper to avoid unnecessary wrapper nesting.There are undocumented wrappers under formatter/highlight/ like
info
orquestion
having all the same syntax except a different CSS class. There will be soon a dedicated page for this issue in the wiki.For the meantime you can add your own callout wrapper:
%%(callout type="warning" title="Warning") Different info box wrappers and types are planned.%%
formatter/highlight/callout.php
add the CSS classes to wacko.css of your theme
/* Callouts: SYNTAX % %(callout type="warning" title="Warning")text% % */ .callout { box-shadow: 0 2px 2px 0 rgba(0,0,0,.14),0 1px 5px 0 rgba(0,0,0,.12),0 3px 1px -2px rgba(0,0,0,.2); position: relative; margin: 1.5625em 0; padding: 0 .6rem; border-left: .2rem solid #448aff; border-radius: .1rem; /* font-size: .64rem; */ overflow: auto; } .callout-title { margin: 0 -.6rem; padding: .4rem .6rem .4rem 2rem; border-bottom: .05rem solid rgba(68,138,255,.1); background-color: rgba(68,138,255,.1); font-weight: 700; } .callout > .callout-title::before { position: absolute; left: .6rem; color: #448aff; font-size: 1rem; content: "✎"; } .callout.type-warning { border-left-color: #ff9100; } .callout.type-warning > .callout-title { border-bottom-color: rgba(255,145,0,.1); background-color: rgba(255,145,0,.1); } .callout.type-warning > .callout-title::before { color: #ff9100; content: "⚠"; } .callout.type-success { border-left-color: #00c853 } .callout.type-success > .callout-title { border-bottom-color: rgba(0,200,83,.1); background-color: rgba(0,200,83,.1) } .callout.type-success > .callout-title::before { color: #00c853; content: "✓" } .callout.type-question { border-left-color: #64dd17 } .callout.type-question > .callout-title { border-bottom-color: rgba(100,221,23,.1); background-color: rgba(100,221,23,.1) } .callout.type-question > .callout-title::before { color: #64dd17; content: "?" } .callout.type-fail { border-left-color: #ff5252 } .callout.type-fail > .callout-title { border-bottom-color: rgba(255,82,82,.1); background-color: rgba(255,82,82,.1) } .callout.type-fail > .callout-title::before { color: #ff5252; content: "✕" } .callout.type-example { border-left-color: #651fff } .callout.type-example > .callout-title { border-bottom-color: rgba(101,31,255,.1); background-color: rgba(101,31,255,.1) } .callout.type-example > .callout-title::before { color: #651fff; content: "💡" }
The CSS was taken from the example above, modify it for your needs.
If you modify your theme, don't forget to copy and rename the theme folder, this will protect you from accidentally overwriting your theme with the default version during the next upgrade process.
Example:
%%(callout type="note" title="Note")
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nulla et euismod
nulla. Curabitur feugiat, tortor non consequat finibus, justo purus auctor
massa, nec semper lorem quam in massa.
%%
Kommentar 683
Can I follow this feature request on the issue tracker (I couldn't find it there)? Or is Mantis actually only for squashing bugs?
Re: Callouts?
Formatter Example
The new info box formatter made it into the 6.0.3 release. Additional formatters like tabs or spoilers can be added the same way.