mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2025-08-07 14:23:53 +00:00
Allow "<<color>>" as a synonym for the "<<colour>>" macro
Entente cordiale!
This commit is contained in:
parent
5bc408fa75
commit
f4c7a269bd
@ -3,6 +3,9 @@ title: $:/core/ui/PageMacros
|
|||||||
\define colour(name)
|
\define colour(name)
|
||||||
<$transclude tiddler={{$:/palette}} index="$name$"/>
|
<$transclude tiddler={{$:/palette}} index="$name$"/>
|
||||||
\end
|
\end
|
||||||
|
\define color(name)
|
||||||
|
<<color $name$>>
|
||||||
|
\end
|
||||||
\define tabs(tabsList,default,state:"$:/state/tab")
|
\define tabs(tabsList,default,state:"$:/state/tab")
|
||||||
<div class="tw-tab-buttons"><$list filter="$tabsList$" variable="currentTab"><$button set=<<qualify "$state$">> setTo=<<currentTab>> default="$default$" selectedClass="tw-tab-selected"><$transclude tiddler=<<currentTab>> field="caption"><$macrocall $name="currentTab" $type="text/plain" $output="text/plain"/></$transclude> </$button>
|
<div class="tw-tab-buttons"><$list filter="$tabsList$" variable="currentTab"><$button set=<<qualify "$state$">> setTo=<<currentTab>> default="$default$" selectedClass="tw-tab-selected"><$transclude tiddler=<<currentTab>> field="caption"><$macrocall $name="currentTab" $type="text/plain" $output="text/plain"/></$transclude> </$button>
|
||||||
</$list>
|
</$list>
|
||||||
|
@ -3,6 +3,9 @@ title: $:/core/ui/PageStylesheet
|
|||||||
\define colour(name)
|
\define colour(name)
|
||||||
<$transclude tiddler={{$:/palette}} index="$name$"/>
|
<$transclude tiddler={{$:/palette}} index="$name$"/>
|
||||||
\end
|
\end
|
||||||
|
\define color(name)
|
||||||
|
<<colour $name$>>
|
||||||
|
\end
|
||||||
\define border-radius(radius)
|
\define border-radius(radius)
|
||||||
```
|
```
|
||||||
-webkit-border-radius: $radius$;
|
-webkit-border-radius: $radius$;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user