2014-06-12 17:01:33 +00:00
|
|
|
title: $:/core/macros/CSS
|
2024-02-29 12:39:41 +00:00
|
|
|
tags: $:/tags/Macro $:/tags/Global
|
2014-06-12 17:01:33 +00:00
|
|
|
|
2024-02-14 18:44:22 +00:00
|
|
|
\procedure colour(name)
|
|
|
|
\whitespace trim
|
|
|
|
<$transclude $tiddler={{$:/palette}} $index=`$(name)$`>
|
|
|
|
<$transclude $tiddler="$:/palettes/Vanilla" $index=`$(name)$`>
|
|
|
|
<$transclude $tiddler=`$:/config/DefaultColourMappings/$(name)$`/>
|
|
|
|
</$transclude>
|
|
|
|
</$transclude>
|
2014-06-12 17:01:33 +00:00
|
|
|
\end
|
|
|
|
|
2024-02-14 18:44:22 +00:00
|
|
|
\procedure color(name)
|
|
|
|
<$macrocall $name=colour name=`$(name)$`/>
|
2014-06-12 17:01:33 +00:00
|
|
|
\end
|
2014-08-18 09:14:19 +00:00
|
|
|
|
2024-02-14 18:44:22 +00:00
|
|
|
\function box-shadow(shadow)
|
|
|
|
[[ -webkit-box-shadow: $(shadow)$;
|
|
|
|
-moz-box-shadow: $(shadow)$;
|
|
|
|
box-shadow: $(shadow)$;]substitute[]]
|
2014-08-18 09:14:19 +00:00
|
|
|
\end
|
|
|
|
|
2024-02-14 18:44:22 +00:00
|
|
|
\function filter(filter)
|
|
|
|
[[ -webkit-filter: $(filter)$;
|
|
|
|
-moz-filter: $(filter)$;
|
|
|
|
filter: $(filter)$;]substitute[]]
|
2014-08-18 09:14:19 +00:00
|
|
|
\end
|
|
|
|
|
2024-02-14 18:44:22 +00:00
|
|
|
\function transition(transition)
|
|
|
|
[[ -webkit-transition: $(transition)$;
|
|
|
|
-moz-transition: $(transition)$;
|
|
|
|
transition: $(transition)$;]substitute[]]
|
2014-08-18 09:14:19 +00:00
|
|
|
\end
|
|
|
|
|
2024-02-14 18:44:22 +00:00
|
|
|
\function transform-origin(origin)
|
|
|
|
[[ -webkit-transform-origin: $(origin)$;
|
|
|
|
-moz-transform-origin: $(origin)$;
|
|
|
|
transform-origin: $(origin)$;]substitute[]]
|
2014-08-18 09:14:19 +00:00
|
|
|
\end
|
|
|
|
|
2024-02-14 18:44:22 +00:00
|
|
|
\function background-linear-gradient(gradient)
|
|
|
|
[[ background-image: linear-gradient($(gradient)$);
|
|
|
|
background-image: -o-linear-gradient($(gradient)$);
|
|
|
|
background-image: -moz-linear-gradient($(gradient)$);
|
|
|
|
background-image: -webkit-linear-gradient($(gradient)$);
|
|
|
|
background-image: -ms-linear-gradient($(gradient)$);]substitute[]]
|
2014-08-18 09:14:19 +00:00
|
|
|
\end
|
|
|
|
|
2024-02-14 18:44:22 +00:00
|
|
|
\function column-count(columns)
|
|
|
|
[[-moz-column-count: $(columns)$;
|
|
|
|
-webkit-column-count: $(columns)$;
|
|
|
|
column-count: $(columns)$;]substitute[]]
|
2016-08-27 13:24:03 +00:00
|
|
|
\end
|
|
|
|
|
2024-02-14 18:44:22 +00:00
|
|
|
\procedure datauri(title)
|
|
|
|
<$macrocall $name="makedatauri" type={{{ [<title>get[type]] }}} text={{{ [<title>get[text]] }}} _canonical_uri={{{ [<title>get[_canonical_uri]] }}}/>
|
2014-08-18 09:14:19 +00:00
|
|
|
\end
|
|
|
|
|
2024-02-14 18:44:22 +00:00
|
|
|
\procedure if-sidebar(text)
|
|
|
|
<$reveal state="$:/state/sidebar" type="match" text="yes" default="yes"><<text>></$reveal>
|
2014-08-18 09:14:19 +00:00
|
|
|
\end
|
|
|
|
|
2024-02-14 18:44:22 +00:00
|
|
|
\procedure if-no-sidebar(text)
|
|
|
|
<$reveal state="$:/state/sidebar" type="nomatch" text="yes" default="yes"><<text>></$reveal>
|
2014-08-18 09:14:19 +00:00
|
|
|
\end
|
2018-01-23 16:49:24 +00:00
|
|
|
|
2024-02-14 18:44:22 +00:00
|
|
|
\procedure if-background-attachment(text)
|
|
|
|
<$reveal state="$:/themes/tiddlywiki/vanilla/settings/backgroundimage" type="nomatch" text=""><<text>></$reveal>
|
2018-01-23 16:49:24 +00:00
|
|
|
\end
|