mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-11-27 03:57:21 +00:00
Add tag and missing dropdowns to the sidebar
This commit is contained in:
parent
b6345a9223
commit
554dffd83f
@ -100,6 +100,20 @@ a.tw-tiddlylink-missing {
|
||||
margin: 0.25em 0 1em 0;
|
||||
}
|
||||
|
||||
.tw-missing-tiddler-label {
|
||||
font-style: italic;
|
||||
font-weight: normal;
|
||||
display: inline-block;
|
||||
padding: 2px 4px;
|
||||
font-size: 11.844px;
|
||||
line-height: 14px;
|
||||
white-space: nowrap;
|
||||
vertical-align: baseline;
|
||||
border: 1px solid rgba(0,0,0,0.2);
|
||||
<<border-radius 3px>>
|
||||
<<box-shadow "inset 1px 1px 0 rgba(255,255,255,0.5)">>
|
||||
}
|
||||
|
||||
.tw-tag-label {
|
||||
display: inline-block;
|
||||
padding: 2px 4px;
|
||||
|
10
core/templates/MissingTemplate.tid
Normal file
10
core/templates/MissingTemplate.tid
Normal file
@ -0,0 +1,10 @@
|
||||
title: $:/templates/MissingTemplate
|
||||
|
||||
<$button popup="$:/state/missingpopup" qualifyTiddlerTitles="yes" class="btn-invisible tw-missing-tiddler-label"><$view field="title" format="text" /></$button>
|
||||
<$reveal state="$:/state/missingpopup" type="popup" position="below" qualifyTiddlerTitles="yes" ><div class="tw-drop-down">
|
||||
<$view field="title" format="link" />
|
||||
----
|
||||
<$list filter="[is[current]backlinks[]sort[title]]">
|
||||
<$view field="title" format="link" />
|
||||
</$list>
|
||||
</div></$reveal>
|
@ -4,10 +4,10 @@ title: $:/templates/MoreSideBar
|
||||
<div class="tw-tab-buttons"><$button type="set" set="$:/state/moreSideBarTabSet" setTo="tagsTab" qualifyTiddlerTitles="yes" selectedClass="tw-tab-selected">Tags</$button><$button type="set" set="$:/state/moreSideBarTabSet" setTo="missingTab" qualifyTiddlerTitles="yes" selectedClass="tw-tab-selected">Missing</$button><$button type="set" set="$:/state/moreSideBarTabSet" setTo="orphanTab" qualifyTiddlerTitles="yes" selectedClass="tw-tab-selected">Orphans</$button><$button type="set" set="$:/state/moreSideBarTabSet" setTo="systemTab" qualifyTiddlerTitles="yes" selectedClass="tw-tab-selected">System</$button></div>
|
||||
<div class="tw-tab-contents">
|
||||
<$reveal type="match" state="$:/state/moreSideBarTabSet" text="tagsTab" qualifyTiddlerTitles="yes">
|
||||
<$list filter="[tags[]sort[title]]" itemClass="tw-menu-list-item"/>
|
||||
<$list filter="[tags[]sort[title]]" itemClass="tw-menu-list-item" template="$:/templates/TagTemplate"/>
|
||||
</$reveal>
|
||||
<$reveal type="match" state="$:/state/moreSideBarTabSet" text="missingTab" qualifyTiddlerTitles="yes">
|
||||
<$list filter="[is[missing]sort[title]]" itemClass="tw-menu-list-item"/>
|
||||
<$list filter="[is[missing]sort[title]]" itemClass="tw-menu-list-item" template="$:/templates/MissingTemplate"/>
|
||||
</$reveal>
|
||||
<$reveal type="match" state="$:/state/moreSideBarTabSet" text="orphanTab" qualifyTiddlerTitles="yes">
|
||||
<$list filter="[is[orphan]sort[title]]" itemClass="tw-menu-list-item"/>
|
||||
|
Loading…
Reference in New Issue
Block a user