1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-11-15 22:34:51 +00:00

Move starlight themes macros into the core

This commit is contained in:
Jermolene 2014-02-20 15:59:44 +00:00
parent 1258c16e2b
commit b9e72fb676
2 changed files with 4 additions and 33 deletions

View File

@ -47,6 +47,10 @@ background-image: -webkit-linear-gradient($gradient$);
background-image: -ms-linear-gradient($gradient$); background-image: -ms-linear-gradient($gradient$);
``` ```
\end \end
\define datauri(title)
<$macrocall $name="makedatauri" type={{$title$!!type}} text={{$title$}}/>
\end
<$list filter="[is[shadow]tag[$:/tags/stylesheet]] [!is[shadow]tag[$:/tags/stylesheet]]"> <$list filter="[is[shadow]tag[$:/tags/stylesheet]] [!is[shadow]tag[$:/tags/stylesheet]]">
<$transclude/> <$transclude/>
</$list> </$list>

View File

@ -2,39 +2,6 @@ title: $:/themes/tiddlywiki/starlight/styles.tid
tags: [[$:/tags/stylesheet]] tags: [[$:/tags/stylesheet]]
\rules only filteredtranscludeinline transcludeinline macrodef macrocallinline \rules only filteredtranscludeinline transcludeinline macrodef macrocallinline
\define border-radius(radius)
```
-webkit-border-radius: $radius$;
-moz-border-radius: $radius$;
border-radius: $radius$;
```
\end
\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 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
\define datauri(title)
<$macrocall $name="makedatauri" type={{$title$!!type}} text={{$title$}}/>
\end
/* /*
Placeholder for a more thorough refinement of Snow White Placeholder for a more thorough refinement of Snow White