From 1c2696614e420c73327696743207e06f5bf014df Mon Sep 17 00:00:00 2001 From: Jeremy Ruston Date: Wed, 9 Oct 2013 22:10:02 +0100 Subject: [PATCH] Add a read only theme that hides editing controls --- editions/tw5.com/tiddlywiki.info | 1 + themes/tiddlywiki/readonly/plugin.info | 9 +++++++++ themes/tiddlywiki/readonly/styles.tid | 8 ++++++++ 3 files changed, 18 insertions(+) create mode 100644 themes/tiddlywiki/readonly/plugin.info create mode 100644 themes/tiddlywiki/readonly/styles.tid diff --git a/editions/tw5.com/tiddlywiki.info b/editions/tw5.com/tiddlywiki.info index 6591f94ce..f4ecfb1c8 100644 --- a/editions/tw5.com/tiddlywiki.info +++ b/editions/tw5.com/tiddlywiki.info @@ -7,6 +7,7 @@ "tiddlywiki/starlight", "tiddlywiki/stickytitles", "tiddlywiki/centralised", + "tiddlywiki/readonly", "giffmex/rocker", "giffmex/blue", "giffmex/blanca" diff --git a/themes/tiddlywiki/readonly/plugin.info b/themes/tiddlywiki/readonly/plugin.info new file mode 100644 index 000000000..42532d4ce --- /dev/null +++ b/themes/tiddlywiki/readonly/plugin.info @@ -0,0 +1,9 @@ +{ + "title": "$:/themes/tiddlywiki/readonly", + "name": "ReadOnly", + "author": "JeremyRuston", + "core-version": ">=5.0.0", + "plugin-type": "theme", + "description": "Theme for removing editing features", + "dependents": ["$:/themes/tiddlywiki/snowwhite"] +} diff --git a/themes/tiddlywiki/readonly/styles.tid b/themes/tiddlywiki/readonly/styles.tid new file mode 100644 index 000000000..da6f08383 --- /dev/null +++ b/themes/tiddlywiki/readonly/styles.tid @@ -0,0 +1,8 @@ +title: $:/themes/tiddlywiki/centralised/styles.tid +tags: [[$:/tags/stylesheet]] + +\rules only filteredtranscludeinline transcludeinline macrodef macrocallinline + +svg.tw-image-new-button, svg.tw-image-options-button, svg.tw-image-save-button, svg.tw-image-edit-button, svg.tw-image-delete-button, svg.tw-image-cancel-button, svg.tw-image-done-button { + display: none; +}