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