1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2025-10-24 04:07:39 +00:00

Adjust the slider macro to the new Bootstrap styles

And fixed some indentation issues
This commit is contained in:
Jeremy Ruston
2012-03-05 15:14:24 +00:00
parent bfc1f1aaa5
commit 0f2883b75a

View File

@@ -19,7 +19,7 @@ The current state of the slider can be stored as the string "open" or "closed" i
The markup generated by the slider macro is: The markup generated by the slider macro is:
{{{ {{{
<span class="tw-slider {user defined class}"> <span class="tw-slider {user defined class}">
<a class="tw-slider-label">{slider label}</a> <a class="btn-info">{slider label}</a>
<div class="tw-slider-body" style="display:{state}">{slider content}</div> <div class="tw-slider-body" style="display:{state}">{slider content}</div>
</span> </span>
}}} }}}
@@ -127,7 +127,7 @@ exports.macro = {
[ [
Renderer.ElementNode("a", Renderer.ElementNode("a",
{ {
"class": ["tw-slider-label"] "class": ["btn","btn-info"]
},[ },[
Renderer.TextNode(this.params.label ? this.params.label : this.params.target) Renderer.TextNode(this.params.label ? this.params.label : this.params.target)
] ]