mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2025-04-04 09:46:55 +00:00
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:
parent
69704db205
commit
df997e024c
@ -5,6 +5,7 @@
|
||||
"themes": [
|
||||
"tiddlywiki/snowwhite",
|
||||
"tiddlywiki/starlight",
|
||||
"tiddlywiki/stickytitles",
|
||||
"giffmex/rocker",
|
||||
"giffmex/blue",
|
||||
"giffmex/blanca"
|
||||
|
10
themes/tiddlywiki/stickytitles/plugin.info
Normal file
10
themes/tiddlywiki/stickytitles/plugin.info
Normal 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"]
|
||||
}
|
14
themes/tiddlywiki/stickytitles/styles.tid
Normal file
14
themes/tiddlywiki/stickytitles/styles.tid
Normal 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;
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user