mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2025-01-11 18:00:26 +00:00
change tag manager layout, and add css rule
This commit is contained in:
parent
a3a50dbf6d
commit
d07fea949d
@ -10,7 +10,7 @@ title: $:/TagManager
|
|||||||
\end
|
\end
|
||||||
\define iconEditor(title)
|
\define iconEditor(title)
|
||||||
<div class="tc-drop-down-wrapper">
|
<div class="tc-drop-down-wrapper">
|
||||||
<$edit-text field="icon" tag="input" size="20"/> <$button popup=<<qualify "$:/state/popup/icon/$title$">> class="tc-btn-invisible tc-btn-dropdown">{{$:/core/images/down-arrow}}</$button>
|
<$button popup=<<qualify "$:/state/popup/icon/$title$">> class="tc-btn-invisible tc-btn-dropdown">{{$:/core/images/down-arrow}}</$button>
|
||||||
<$reveal state=<<qualify "$:/state/popup/icon/$title$">> type="popup" position="belowleft" text="" default="">
|
<$reveal state=<<qualify "$:/state/popup/icon/$title$">> type="popup" position="belowleft" text="" default="">
|
||||||
<div class="tc-drop-down">
|
<div class="tc-drop-down">
|
||||||
<$linkcatcher to="$title$!!icon">
|
<$linkcatcher to="$title$!!icon">
|
||||||
@ -22,19 +22,44 @@ title: $:/TagManager
|
|||||||
</$reveal>
|
</$reveal>
|
||||||
</div>
|
</div>
|
||||||
\end
|
\end
|
||||||
|
\define qualifyUnique(title)
|
||||||
|
$title$$(currentTiddler)$
|
||||||
|
\end
|
||||||
|
\define toggleButton(state)
|
||||||
|
<$reveal state="$state$" type="match" text="0" default="0">
|
||||||
|
<$button set="$state$" setTo="1" class="tc-btn-invisible tc-btn-dropdown">{{$:/core/images/right-arrow}}</$button></$reveal>
|
||||||
|
<$reveal state="$state$" type="match" text="1" default="0">
|
||||||
|
<$button set="$state$" setTo="0" class="tc-btn-invisible tc-btn-dropdown">{{$:/core/images/close-button}}</$button></$reveal>
|
||||||
|
\end
|
||||||
<table>
|
<table>
|
||||||
<tbody>
|
<tbody>
|
||||||
<tr>
|
<tr>
|
||||||
<th><<lingo Tag/Heading>></th>
|
|
||||||
<th><<lingo Colour/Heading>></th>
|
<th><<lingo Colour/Heading>></th>
|
||||||
|
<th class="tc-tag-manager-tag"><<lingo Tag/Heading>></th>
|
||||||
<th><<lingo Icon/Heading>></th>
|
<th><<lingo Icon/Heading>></th>
|
||||||
|
<th>Info</th>
|
||||||
</tr>
|
</tr>
|
||||||
<$list filter="[tags[]!is[system]sort[title]]">
|
<$list filter="[tags[]!is[system]sort[title]]">
|
||||||
<tr>
|
<tr>
|
||||||
|
<td><$edit-text field="color" tag="input" type="color"/></td>
|
||||||
<td><$transclude tiddler="$:/core/ui/TagTemplate"/></td>
|
<td><$transclude tiddler="$:/core/ui/TagTemplate"/></td>
|
||||||
<td><$edit-text field="color" tag="input" type="text" size="9"/> <$edit-text field="color" tag="input" type="color"/></td>
|
<td>
|
||||||
<td><$macrocall $name="iconEditor" title={{!!title}}/></td>
|
<$reveal state=<<qualifyUnique "$:/state/tagman/">> type="match" text="0" default="0">
|
||||||
|
<$macrocall $name="iconEditor" title={{!!title}}/></$reveal></td>
|
||||||
|
<td><$macrocall $name="toggleButton" state=<<qualifyUnique "$:/state/tagman/">> />
|
||||||
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
<tr><td></td>
|
||||||
|
<td>
|
||||||
|
<$reveal state=<<qualifyUnique "$:/state/tagman/">> type="match" text="1" default="">
|
||||||
|
<table>
|
||||||
|
<tbody>
|
||||||
|
<tr><td>Color</td><td><$edit-text field="color" tag="input" type="text" size="9"/></td></tr>
|
||||||
|
<tr><td>Icon</td><td><$edit-text field="icon" tag="input" size="45"/></td><td><$macrocall $name="iconEditor" title={{!!title}}/></td></tr>
|
||||||
|
</tbody>
|
||||||
|
</table>
|
||||||
|
</$reveal>
|
||||||
|
</td></tr>
|
||||||
</$list>
|
</$list>
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
|
@ -354,6 +354,10 @@ button.tc-untagged-label {
|
|||||||
fill: <<colour tag-foreground>>;
|
fill: <<colour tag-foreground>>;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.tc-tag-manager-tag {
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
** Page layout
|
** Page layout
|
||||||
*/
|
*/
|
||||||
|
Loading…
Reference in New Issue
Block a user