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.
This commit is contained in:
Jeremy Ruston 2013-07-01 18:47:31 +01:00
parent 69704db205
commit df997e024c
3 changed files with 25 additions and 0 deletions

View File

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

View File

@ -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"]
}

View File

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