From b9e72fb676d7e2af00ecf37b76077e2ece7fee45 Mon Sep 17 00:00:00 2001 From: Jermolene Date: Thu, 20 Feb 2014 15:59:44 +0000 Subject: [PATCH] Move starlight themes macros into the core --- core/ui/PageStylesheet.tid | 4 ++++ themes/tiddlywiki/starlight/styles.tid | 33 -------------------------- 2 files changed, 4 insertions(+), 33 deletions(-) diff --git a/core/ui/PageStylesheet.tid b/core/ui/PageStylesheet.tid index 7014f7099..cd04c5df8 100644 --- a/core/ui/PageStylesheet.tid +++ b/core/ui/PageStylesheet.tid @@ -47,6 +47,10 @@ 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 + <$list filter="[is[shadow]tag[$:/tags/stylesheet]] [!is[shadow]tag[$:/tags/stylesheet]]"> <$transclude/> diff --git a/themes/tiddlywiki/starlight/styles.tid b/themes/tiddlywiki/starlight/styles.tid index 74e8a2f3d..25b374277 100644 --- a/themes/tiddlywiki/starlight/styles.tid +++ b/themes/tiddlywiki/starlight/styles.tid @@ -2,39 +2,6 @@ title: $:/themes/tiddlywiki/starlight/styles.tid tags: [[$:/tags/stylesheet]] \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