2018-01-12 21:44:38 +00:00
|
|
|
title: $:/snippets/peek-stylesheets
|
|
|
|
|
|
|
|
\define expandable-stylesheets-list()
|
2021-11-18 08:43:15 +00:00
|
|
|
\whitespace trim
|
2018-01-12 21:44:38 +00:00
|
|
|
<ol>
|
|
|
|
<$list filter="[all[shadows+tiddlers]tag[$:/tags/Stylesheet]!has[draft.of]]">
|
2019-06-03 12:28:59 +00:00
|
|
|
<$vars state=<<qualify "$:/state/peek-stylesheets/open/">>>
|
2018-01-12 21:44:38 +00:00
|
|
|
<$set name="state" value={{{ [<state>addsuffix<currentTiddler>] }}}>
|
|
|
|
<li>
|
|
|
|
<$reveal type="match" state=<<state>> text="yes" tag="span">
|
|
|
|
<$button set=<<state>> setTo="no" class="tc-btn-invisible">
|
|
|
|
{{$:/core/images/down-arrow}}
|
|
|
|
</$button>
|
|
|
|
</$reveal>
|
|
|
|
<$reveal type="nomatch" state=<<state>> text="yes" tag="span">
|
|
|
|
<$button set=<<state>> setTo="yes" class="tc-btn-invisible">
|
|
|
|
{{$:/core/images/right-arrow}}
|
|
|
|
</$button>
|
|
|
|
</$reveal>
|
|
|
|
<$link>
|
|
|
|
<$view field="title"/>
|
|
|
|
</$link>
|
|
|
|
<$reveal type="match" state=<<state>> text="yes" tag="div">
|
|
|
|
<$set name="source" tiddler=<<currentTiddler>>>
|
|
|
|
<$wikify name="styles" text=<<source>>>
|
2022-07-14 08:00:56 +00:00
|
|
|
<$codeblock code=<<styles>> language="css"/>
|
2018-01-12 21:44:38 +00:00
|
|
|
</$wikify>
|
|
|
|
</$set>
|
|
|
|
</$reveal>
|
|
|
|
</li>
|
|
|
|
</$set>
|
|
|
|
</$vars>
|
|
|
|
</$list>
|
|
|
|
</ol>
|
|
|
|
\end
|
|
|
|
|
|
|
|
\define stylesheets-list()
|
2021-11-18 08:43:15 +00:00
|
|
|
\whitespace trim
|
2018-01-12 21:44:38 +00:00
|
|
|
<ol>
|
|
|
|
<$list filter="[all[shadows+tiddlers]tag[$:/tags/Stylesheet]!has[draft.of]]">
|
|
|
|
<li>
|
|
|
|
<$link>
|
|
|
|
<$view field="title"/>
|
|
|
|
</$link>
|
|
|
|
<$set name="source" tiddler=<<currentTiddler>>>
|
|
|
|
<$wikify name="styles" text=<<source>>>
|
|
|
|
<pre>
|
|
|
|
<code>
|
|
|
|
<$text text=<<styles>>/>
|
|
|
|
</code>
|
|
|
|
</pre>
|
|
|
|
</$wikify>
|
|
|
|
</$set>
|
|
|
|
</li>
|
|
|
|
</$list>
|
|
|
|
</ol>
|
|
|
|
\end
|
2021-11-18 08:43:15 +00:00
|
|
|
\whitespace trim
|
2018-01-12 21:44:38 +00:00
|
|
|
|
2019-06-03 12:28:59 +00:00
|
|
|
<$vars modeState=<<qualify "$:/state/peek-stylesheets/mode/">>>
|
2018-01-12 21:44:38 +00:00
|
|
|
|
|
|
|
<$reveal type="nomatch" state=<<modeState>> text="expanded" tag="div">
|
|
|
|
<$button set=<<modeState>> setTo="expanded" class="tc-btn-invisible">{{$:/core/images/chevron-right}} {{$:/language/ControlPanel/Stylesheets/Expand/Caption}}</$button>
|
|
|
|
</$reveal>
|
|
|
|
<$reveal type="match" state=<<modeState>> text="expanded" tag="div">
|
|
|
|
<$button set=<<modeState>> setTo="restored" class="tc-btn-invisible">{{$:/core/images/chevron-down}} {{$:/language/ControlPanel/Stylesheets/Restore/Caption}}</$button>
|
|
|
|
</$reveal>
|
|
|
|
|
|
|
|
<$reveal type="nomatch" state=<<modeState>> text="expanded" tag="div">
|
|
|
|
<<expandable-stylesheets-list>>
|
|
|
|
</$reveal>
|
|
|
|
<$reveal type="match" state=<<modeState>> text="expanded" tag="div">
|
|
|
|
<<stylesheets-list>>
|
|
|
|
</$reveal>
|
|
|
|
|
|
|
|
</$vars>
|