1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-11-23 10:07:19 +00:00

Experimental "persistent draft indicators"

Fixes #3409
This commit is contained in:
Jermolene 2018-08-23 18:02:39 +01:00
parent 63ad284784
commit 3bfa9c6f10
2 changed files with 48 additions and 0 deletions

View File

@ -0,0 +1,11 @@
title: $:/core/ui/PageTemplate/drafts
tags: $:/tags/PageTemplate
\whitespace trim
<$reveal state="$:/status/IsReadOnly" type="nomatch" text="yes" tag="div" class="tc-drafts-list">
<$list filter="[has[draft.of]!sort[modified]] -[list[$:/StoryList]]">
<$link>
{{$:/core/images/edit-button}} <$text text=<<currentTiddler>>/>
</$link>
</$list>
</$reveal>

View File

@ -1981,6 +1981,43 @@ html body.tc-body.tc-single-tiddler-window {
color: <<colour static-alert-foreground>>;
}
/*
** Floating drafts list
*/
.tc-drafts-list {
z-index: 2000;
position: fixed;
font-size: 0.8em;
left: 0;
bottom: 0;
}
.tc-drafts-list a {
margin: 0 0.5em;
padding: 4px 4px;
border-top-left-radius: 4px;
border-top-right-radius: 4px;
border: 1px solid <<colour background>>;
border-bottom-none;
background: <<colour dirty-indicator>>;
color: <<colour background>>;
fill: <<colour background>>;
}
.tc-drafts-list a:hover {
text-decoration: none;
background: <<colour foreground>>;
color: <<colour background>>;
fill: <<colour background>>;
}
.tc-drafts-list a svg {
width: 1em;
height: 1em;
vertical-align: text-bottom;
}
/*
** Control panel
*/