2014-06-12 17:01:33 +00:00
|
|
|
title: $:/core/macros/CSS
|
|
|
|
tags: $:/tags/Macro
|
|
|
|
|
|
|
|
\define colour(name)
|
2020-02-28 14:31:02 +00:00
|
|
|
<$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
|
|
|
|
|
|
|
|
\define color(name)
|
|
|
|
<<colour $name$>>
|
|
|
|
\end
|
2014-08-18 09:14:19 +00:00
|
|
|
|
|
|
|
\define box-shadow(shadow)
|
2014-11-10 15:30:35 +00:00
|
|
|
``
|
2014-08-18 09:14:19 +00:00
|
|
|
-webkit-box-shadow: $shadow$;
|
|
|
|
-moz-box-shadow: $shadow$;
|
|
|
|
box-shadow: $shadow$;
|
2014-11-10 15:30:35 +00:00
|
|
|
``
|
2014-08-18 09:14:19 +00:00
|
|
|
\end
|
|
|
|
|
|
|
|
\define filter(filter)
|
2014-11-10 15:30:35 +00:00
|
|
|
``
|
2014-08-18 09:14:19 +00:00
|
|
|
-webkit-filter: $filter$;
|
|
|
|
-moz-filter: $filter$;
|
|
|
|
filter: $filter$;
|
2014-11-10 15:30:35 +00:00
|
|
|
``
|
2014-08-18 09:14:19 +00:00
|
|
|
\end
|
|
|
|
|
|
|
|
\define transition(transition)
|
2014-11-10 15:30:35 +00:00
|
|
|
``
|
2014-08-18 09:14:19 +00:00
|
|
|
-webkit-transition: $transition$;
|
|
|
|
-moz-transition: $transition$;
|
|
|
|
transition: $transition$;
|
2014-11-10 15:30:35 +00:00
|
|
|
``
|
2014-08-18 09:14:19 +00:00
|
|
|
\end
|
|
|
|
|
|
|
|
\define transform-origin(origin)
|
2014-11-10 15:30:35 +00:00
|
|
|
``
|
2014-08-18 09:14:19 +00:00
|
|
|
-webkit-transform-origin: $origin$;
|
|
|
|
-moz-transform-origin: $origin$;
|
|
|
|
transform-origin: $origin$;
|
2014-11-10 15:30:35 +00:00
|
|
|
``
|
2014-08-18 09:14:19 +00:00
|
|
|
\end
|
|
|
|
|
|
|
|
\define background-linear-gradient(gradient)
|
2014-11-10 15:30:35 +00:00
|
|
|
``
|
2014-08-18 09:14:19 +00:00
|
|
|
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$);
|
2014-11-10 15:30:35 +00:00
|
|
|
``
|
2014-08-18 09:14:19 +00:00
|
|
|
\end
|
|
|
|
|
2016-08-27 13:24:03 +00:00
|
|
|
\define column-count(columns)
|
|
|
|
``
|
|
|
|
-moz-column-count: $columns$;
|
|
|
|
-webkit-column-count: $columns$;
|
|
|
|
column-count: $columns$;
|
|
|
|
``
|
|
|
|
\end
|
|
|
|
|
2014-08-18 09:14:19 +00:00
|
|
|
\define datauri(title)
|
|
|
|
<$macrocall $name="makedatauri" type={{$title$!!type}} text={{$title$}}/>
|
|
|
|
\end
|
|
|
|
|
|
|
|
\define if-sidebar(text)
|
|
|
|
<$reveal state="$:/state/sidebar" type="match" text="yes" default="yes">$text$</$reveal>
|
|
|
|
\end
|
|
|
|
|
|
|
|
\define if-no-sidebar(text)
|
|
|
|
<$reveal state="$:/state/sidebar" type="nomatch" text="yes" default="yes">$text$</$reveal>
|
|
|
|
\end
|
2018-01-23 16:49:24 +00:00
|
|
|
|
|
|
|
\define if-background-attachment(text)
|
|
|
|
<$reveal state="$:/themes/tiddlywiki/vanilla/settings/backgroundimage" type="nomatch" text="">$text$</$reveal>
|
|
|
|
\end
|