mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-11-10 03:49:56 +00:00
Revert to \define colour macro for backwards compatibility (#8327)
* revert to \define colour macro for backwards compatibility * add color macro * remove new functions
This commit is contained in:
parent
c25b8e3056
commit
84d1c81bb2
@ -1,18 +1,17 @@
|
|||||||
title: $:/core/macros/CSS
|
title: $:/core/macros/CSS
|
||||||
tags: $:/tags/Macro $:/tags/Global
|
tags: $:/tags/Macro $:/tags/Global
|
||||||
|
|
||||||
\procedure colour(name)
|
<!-- Needs to stay that way for backwards compatibility. See GH issue: #8326 -->
|
||||||
|
\define colour(name)
|
||||||
\whitespace trim
|
\whitespace trim
|
||||||
<$transclude $tiddler={{$:/palette}} $index=`$(name)$`>
|
<$transclude tiddler={{$:/palette}} index="$name$">
|
||||||
<$transclude $tiddler="$:/palettes/Vanilla" $index=`$(name)$`>
|
<$transclude tiddler="$:/palettes/Vanilla" index="$name$">
|
||||||
<$transclude $tiddler=`$:/config/DefaultColourMappings/$(name)$`/>
|
<$transclude tiddler="$:/config/DefaultColourMappings/$name$"/>
|
||||||
</$transclude>
|
</$transclude>
|
||||||
</$transclude>
|
</$transclude>
|
||||||
\end
|
\end
|
||||||
|
|
||||||
\procedure color(name)
|
\define color(name) <<colour $name$>>
|
||||||
<$macrocall $name=colour name=`$(name)$`/>
|
|
||||||
\end
|
|
||||||
|
|
||||||
\function box-shadow(shadow)
|
\function box-shadow(shadow)
|
||||||
[[ -webkit-box-shadow: $(shadow)$;
|
[[ -webkit-box-shadow: $(shadow)$;
|
||||||
|
Loading…
Reference in New Issue
Block a user