diff --git a/core/ui/PageTemplate/drafts.tid b/core/ui/PageTemplate/drafts.tid new file mode 100644 index 000000000..8b3246511 --- /dev/null +++ b/core/ui/PageTemplate/drafts.tid @@ -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=<>/> + + + diff --git a/themes/tiddlywiki/vanilla/base.tid b/themes/tiddlywiki/vanilla/base.tid index 5737b48c7..deefbe15d 100644 --- a/themes/tiddlywiki/vanilla/base.tid +++ b/themes/tiddlywiki/vanilla/base.tid @@ -1981,6 +1981,43 @@ html body.tc-body.tc-single-tiddler-window { color: <>; } +/* +** 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 <>; + border-bottom-none; + background: <>; + color: <>; + fill: <>; +} + +.tc-drafts-list a:hover { + text-decoration: none; + background: <>; + color: <>; + fill: <>; +} + +.tc-drafts-list a svg { + width: 1em; + height: 1em; + vertical-align: text-bottom; +} + /* ** Control panel */