Add experimental sticky titles theme

Select the new "Sticky Titles" theme to cause tiddler titles to stick
to the top of the window as you scroll. It works very well in Chrome
Canary, reasonably well in iOS 7.

As an aside, it would be nice to be able to package this is as
something a bit smaller than a theme; maybe themes need to have
optional hacks that can be associated with them.
print-window-tiddler
Jeremy Ruston 2013-07-01 18:47:31 +01:00
rodzic 69704db205
commit df997e024c
3 zmienionych plików z 25 dodań i 0 usunięć

Wyświetl plik

@ -5,6 +5,7 @@
"themes": [
"tiddlywiki/snowwhite",
"tiddlywiki/starlight",
"tiddlywiki/stickytitles",
"giffmex/rocker",
"giffmex/blue",
"giffmex/blanca"

Wyświetl plik

@ -0,0 +1,10 @@
{
"title": "$:/themes/tiddlywiki/stickytitles",
"name": "Sticky Titles",
"author": "JeremyRuston",
"version": "0.0.0",
"core-version": ">=5.0.0",
"plugin-type": "theme",
"description": "Experimental theme with titles that stick to the top of the window",
"dependents": ["$:/themes/tiddlywiki/snowwhite"]
}

Wyświetl plik

@ -0,0 +1,14 @@
title: $:/themes/tiddlywiki/stickytitles/styles.tid
tags: [[$:/tags/stylesheet]]
\rules only filteredtranscludeinline transcludeinline macrodef macrocallinline
.tw-tiddler-title {
position: -webkit-sticky;
position: -moz-sticky;
position: -o-sticky;
position: -ms-sticky;
position: sticky;
top: 0px;
background: #fff;
}