2013-12-20 15:31:16 +00:00
|
|
|
title: $:/core/ui/PageStylesheet
|
|
|
|
|
2014-02-17 17:30:02 +00:00
|
|
|
\define colour(name)
|
|
|
|
<$transclude tiddler={{$:/palette}} index="$name$"/>
|
|
|
|
\end
|
2014-02-20 17:14:27 +00:00
|
|
|
\define color(name)
|
|
|
|
<<colour $name$>>
|
|
|
|
\end
|
2014-02-17 17:30:02 +00:00
|
|
|
\define box-shadow(shadow)
|
|
|
|
```
|
|
|
|
-webkit-box-shadow: $shadow$;
|
|
|
|
-moz-box-shadow: $shadow$;
|
|
|
|
box-shadow: $shadow$;
|
|
|
|
```
|
|
|
|
\end
|
|
|
|
\define filter(filter)
|
|
|
|
```
|
|
|
|
-webkit-filter: $filter$;
|
|
|
|
-moz-filter: $filter$;
|
|
|
|
filter: $filter$;
|
|
|
|
```
|
|
|
|
\end
|
|
|
|
\define transition(transition)
|
|
|
|
```
|
|
|
|
-webkit-transition: $transition$;
|
|
|
|
-moz-transition: $transition$;
|
|
|
|
transition: $transition$;
|
|
|
|
```
|
|
|
|
\end
|
|
|
|
\define transform-origin(origin)
|
|
|
|
```
|
|
|
|
-webkit-transform-origin: $origin$;
|
|
|
|
-moz-transform-origin: $origin$;
|
|
|
|
transform-origin: $origin$;
|
|
|
|
```
|
|
|
|
\end
|
|
|
|
\define 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$);
|
|
|
|
```
|
|
|
|
\end
|
2014-02-20 15:59:44 +00:00
|
|
|
\define datauri(title)
|
|
|
|
<$macrocall $name="makedatauri" type={{$title$!!type}} text={{$title$}}/>
|
|
|
|
\end
|
2014-04-14 17:37:09 +00:00
|
|
|
\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
|
|
|
|
|
2014-02-20 15:59:44 +00:00
|
|
|
|
2014-04-18 08:28:14 +00:00
|
|
|
<$list filter="[all[shadows+tiddlers]tag[$:/tags/stylesheet]]">
|
2013-12-20 15:31:16 +00:00
|
|
|
<$transclude/>
|
|
|
|
</$list>
|