Experimental "persistent draft indicators"

Fixes #3409
single-tiddler-mode
Jermolene 2018-08-23 18:02:39 +01:00
rodzic 63ad284784
commit 3bfa9c6f10
2 zmienionych plików z 48 dodań i 0 usunięć

Wyświetl plik

@ -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>

Wyświetl plik

@ -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
*/