diff --git a/core/language/en-GB/ControlPanel.multids b/core/language/en-GB/ControlPanel.multids index 863691428..71ac8fa86 100644 --- a/core/language/en-GB/ControlPanel.multids +++ b/core/language/en-GB/ControlPanel.multids @@ -155,6 +155,10 @@ Settings/MissingLinks/Hint: Choose whether to link to tiddlers that do not exist Settings/MissingLinks/Description: Enable links to missing tiddlers StoryView/Caption: Story View StoryView/Prompt: Current view: +Stylesheets/Caption: Stylesheets +Stylesheets/Expand/Caption: Expand All +Stylesheets/Hint: This is the rendered CSS of the current stylesheet tiddlers tagged with <> +Stylesheets/Restore/Caption: Restore Theme/Caption: Theme Theme/Prompt: Current theme: TiddlerFields/Caption: Tiddler Fields diff --git a/core/ui/ControlPanel/Stylesheets.tid b/core/ui/ControlPanel/Stylesheets.tid new file mode 100644 index 000000000..20163753f --- /dev/null +++ b/core/ui/ControlPanel/Stylesheets.tid @@ -0,0 +1,9 @@ +title: $:/core/ui/ControlPanel/Stylesheets +tags: $:/tags/ControlPanel/Advanced +caption: {{$:/language/ControlPanel/Stylesheets/Caption}} + +\define lingo-base() $:/language/ControlPanel/ + +<> + +{{$:/snippets/peek-stylesheets}} diff --git a/core/wiki/peek-stylesheets.tid b/core/wiki/peek-stylesheets.tid new file mode 100644 index 000000000..06ef57cf4 --- /dev/null +++ b/core/wiki/peek-stylesheets.tid @@ -0,0 +1,77 @@ +title: $:/snippets/peek-stylesheets + +\define expandable-stylesheets-list() +
    +<$list filter="[all[shadows+tiddlers]tag[$:/tags/Stylesheet]!has[draft.of]]"> +<$vars state=<>> +<$set name="state" value={{{ [addsuffix] }}}> +
  1. +<$reveal type="match" state=<> text="yes" tag="span"> +<$button set=<> setTo="no" class="tc-btn-invisible"> +{{$:/core/images/down-arrow}} + + +<$reveal type="nomatch" state=<> text="yes" tag="span"> +<$button set=<> setTo="yes" class="tc-btn-invisible"> +{{$:/core/images/right-arrow}} + + +<$link> +<$view field="title"/> + +<$reveal type="match" state=<> text="yes" tag="div"> +<$set name="source" tiddler=<>> +<$wikify name="styles" text=<>> +
    +
    +<$text text=<>/>
    +
    +
    + + + +
  2. + + + +
+\end + +\define stylesheets-list() +
    +<$list filter="[all[shadows+tiddlers]tag[$:/tags/Stylesheet]!has[draft.of]]"> +
  1. +<$link> +<$view field="title"/> + +<$set name="source" tiddler=<>> +<$wikify name="styles" text=<>> +
    +
    +<$text text=<>/>
    +
    +
    + + +
  2. + +
+\end + +<$vars modeState=<>> + +<$reveal type="nomatch" state=<> text="expanded" tag="div"> +<$button set=<> setTo="expanded" class="tc-btn-invisible">{{$:/core/images/chevron-right}} {{$:/language/ControlPanel/Stylesheets/Expand/Caption}} + +<$reveal type="match" state=<> text="expanded" tag="div"> +<$button set=<> setTo="restored" class="tc-btn-invisible">{{$:/core/images/chevron-down}} {{$:/language/ControlPanel/Stylesheets/Restore/Caption}} + + +<$reveal type="nomatch" state=<> text="expanded" tag="div"> +<> + +<$reveal type="match" state=<> text="expanded" tag="div"> +<> + + +