1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-09-20 03:09:42 +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:
Mario Pietsch 2024-07-01 23:12:04 +02:00 committed by GitHub
parent c25b8e3056
commit 84d1c81bb2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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)$;