mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-11-30 13:29:56 +00:00
2b6c87fb4b
* add a new-line before the log text to increase readability of the test output * make eslint, jslint happy * it shouldn't be there * fremove this file from my PRs * fix 4532. Links should not add unwanted whitespace, since this causes problems with CSS styling * remove whitespace from tiddler title and add a little bit of margin-right to the tiddler icon. * use default parameters for link handling, which results in less code * introduce tc-viewswitcher class to be able to style icon distance to text
44 lines
1.6 KiB
Plaintext
44 lines
1.6 KiB
Plaintext
title: $:/core/ui/ViewTemplate/title
|
|
tags: $:/tags/ViewTemplate
|
|
|
|
\whitespace trim
|
|
\define title-styles()
|
|
fill:$(foregroundColor)$;
|
|
\end
|
|
\define config-title()
|
|
$:/config/ViewToolbarButtons/Visibility/$(listItem)$
|
|
\end
|
|
<div class="tc-tiddler-title">
|
|
<div class="tc-titlebar">
|
|
<span class="tc-tiddler-controls">
|
|
<$list filter="[all[shadows+tiddlers]tag[$:/tags/ViewToolbar]!has[draft.of]]" variable="listItem"><$reveal type="nomatch" state=<<config-title>> text="hide"><$set name="tv-config-toolbar-class" filter="[<tv-config-toolbar-class>] [<listItem>encodeuricomponent[]addprefix[tc-btn-]]"><$transclude tiddler=<<listItem>>/></$set></$reveal></$list>
|
|
</span>
|
|
<$set name="tv-wikilinks" value={{$:/config/Tiddlers/TitleLinks}}>
|
|
<$link>
|
|
<$set name="foregroundColor" value={{!!color}}>
|
|
<span class="tc-tiddler-title-icon" style=<<title-styles>>>
|
|
<$transclude tiddler={{!!icon}}>
|
|
<$transclude tiddler={{$:/config/DefaultTiddlerIcon}}/>
|
|
</$transclude>
|
|
</span>
|
|
</$set>
|
|
<$list filter="[all[current]removeprefix[$:/]]">
|
|
<h2 class="tc-title" title={{$:/language/SystemTiddler/Tooltip}}>
|
|
<span class="tc-system-title-prefix">$:/</span><$text text=<<currentTiddler>>/>
|
|
</h2>
|
|
</$list>
|
|
<$list filter="[all[current]!prefix[$:/]]">
|
|
<h2 class="tc-title">
|
|
<$view field="title"/>
|
|
</h2>
|
|
</$list>
|
|
</$link>
|
|
</$set>
|
|
</div>
|
|
|
|
<$reveal type="nomatch" text="" default="" state=<<tiddlerInfoState>> class="tc-tiddler-info tc-popup-handle" animate="yes" retain="yes">
|
|
|
|
<$list filter="[all[shadows+tiddlers]tag[$:/tags/TiddlerInfoSegment]!has[draft.of]] [[$:/core/ui/TiddlerInfo]]" variable="listItem"><$transclude tiddler=<<listItem>> mode="block"/></$list>
|
|
|
|
</$reveal>
|
|
</div> |