From 84d1c81bb25fb68245ad69c2f4b7d4aeafbc2f34 Mon Sep 17 00:00:00 2001 From: Mario Pietsch Date: Mon, 1 Jul 2024 23:12:04 +0200 Subject: [PATCH] Revert to \define colour macro for backwards compatibility (#8327) * revert to \define colour macro for backwards compatibility * add color macro * remove new functions --- core/wiki/macros/CSS.tid | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/core/wiki/macros/CSS.tid b/core/wiki/macros/CSS.tid index 2aca2c363..3d7dfcdb2 100644 --- a/core/wiki/macros/CSS.tid +++ b/core/wiki/macros/CSS.tid @@ -1,18 +1,17 @@ title: $:/core/macros/CSS tags: $:/tags/Macro $:/tags/Global -\procedure colour(name) + +\define colour(name) \whitespace trim -<$transclude $tiddler={{$:/palette}} $index=`$(name)$`> - <$transclude $tiddler="$:/palettes/Vanilla" $index=`$(name)$`> - <$transclude $tiddler=`$:/config/DefaultColourMappings/$(name)$`/> +<$transclude tiddler={{$:/palette}} index="$name$"> + <$transclude tiddler="$:/palettes/Vanilla" index="$name$"> + <$transclude tiddler="$:/config/DefaultColourMappings/$name$"/> \end -\procedure color(name) -<$macrocall $name=colour name=`$(name)$`/> -\end +\define color(name) <> \function box-shadow(shadow) [[ -webkit-box-shadow: $(shadow)$;