mirror of
https://github.com/Jermolene/TiddlyWiki5.git
synced 2025-12-15 15:10:30 -08:00
* Deprecate some CSS property macros
* Update docs
* Remove -ms and -o prefix
* Revert "Update docs"
This reverts commit cdf535054a.
* Update docs
* Update docs
* Update change note
* Update comment
30 lines
1,017 B
Text
30 lines
1,017 B
Text
title: $:/core/macros/CSS
|
|
tags: $:/tags/Macro
|
|
|
|
<!-- Needs to stay that way for backwards compatibility. See GH issue: #8326 -->
|
|
\define colour(name)
|
|
\whitespace trim
|
|
<$transclude tiddler={{$:/palette}} index="$name$">
|
|
<$transclude tiddler="$:/palettes/Vanilla" index="$name$">
|
|
<$transclude tiddler="$:/config/DefaultColourMappings/$name$"/>
|
|
</$transclude>
|
|
</$transclude>
|
|
\end
|
|
|
|
\define color(name) <<colour $name$>>
|
|
|
|
\procedure datauri(title)
|
|
<$macrocall $name="makedatauri" type={{{ [<title>get[type]] }}} text={{{ [<title>get[text]] }}} _canonical_uri={{{ [<title>get[_canonical_uri]] }}}/>
|
|
\end
|
|
|
|
\procedure if-sidebar(text)
|
|
<$reveal state="$:/state/sidebar" type="match" text="yes" default="yes"><<text>></$reveal>
|
|
\end
|
|
|
|
\procedure if-no-sidebar(text)
|
|
<$reveal state="$:/state/sidebar" type="nomatch" text="yes" default="yes"><<text>></$reveal>
|
|
\end
|
|
|
|
\procedure if-background-attachment(text)
|
|
<$reveal state="$:/themes/tiddlywiki/vanilla/settings/backgroundimage" type="nomatch" text=""><<text>></$reveal>
|
|
\end
|