1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2025-08-07 14:23:53 +00:00

Deprecate $:/tags/stylesheet in favour of $:/tags/Stylesheet

A warning message appears at the top of the story river if any
`$:/tags/stylesheet` tags are found.

Fixing the first half of #824
This commit is contained in:
Jermolene 2014-09-10 09:13:21 +01:00
parent d45c417c18
commit f6ff0a7f71
23 changed files with 32 additions and 22 deletions

View File

@ -6,4 +6,8 @@ title: $:/core/ui/PageStylesheet
<$transclude mode="block"/> <$transclude mode="block"/>
</$list> </$list>
<$list filter="[all[shadows+tiddlers]tag[$:/tags/Stylesheet]!has[draft.of]]">
<$transclude mode="block"/>
</$list>
</$importvariables> </$importvariables>

View File

@ -3,6 +3,12 @@ tags: $:/tags/PageTemplate
<section class="tc-story-river"> <section class="tc-story-river">
<$list filter="[all[shadows+tiddlers]tag[$:/tags/stylesheet]!has[draft.of]]">
WARNING: tag "$:/tags/stylesheet" on <$link><$view field="title"/></$link> should be replaced with "$:/tags/Stylesheet"
</$list>
<section class="story-backdrop"> <section class="story-backdrop">
<$list filter="[all[shadows+tiddlers]tag[$:/tags/AboveStory]!has[draft.of]]"> <$list filter="[all[shadows+tiddlers]tag[$:/tags/AboveStory]!has[draft.of]]">

View File

@ -14,6 +14,6 @@ To add this plugin to your own TiddlyWiki5, just drag this link to the browser w
! Adding Themes ! Adding Themes
You can add themes from highlight.js by copying the CSS to a new tiddler and tagging it with [[$:/tags/stylesheet]]. The available themes can be found on GitHub: You can add themes from highlight.js by copying the CSS to a new tiddler and tagging it with [[$:/tags/Stylesheet]]. The available themes can be found on GitHub:
https://github.com/isagalaev/highlight.js/tree/master/src/styles https://github.com/isagalaev/highlight.js/tree/master/src/styles

View File

@ -31,7 +31,7 @@ These are the available system tags
* {{$:/tags/Palette||$:/core/ui/TagTemplate}} for colour palettes * {{$:/tags/Palette||$:/core/ui/TagTemplate}} for colour palettes
* {{$:/tags/RawMarkup||$:/core/ui/TagTemplate}} for raw markup to be included in the generated HTML file * {{$:/tags/RawMarkup||$:/core/ui/TagTemplate}} for raw markup to be included in the generated HTML file
* {{$:/tags/SideBar||$:/core/ui/TagTemplate}} for sidebar tabs * {{$:/tags/SideBar||$:/core/ui/TagTemplate}} for sidebar tabs
* {{$:/tags/stylesheet||$:/core/ui/TagTemplate}} to indicate that a tiddler should be applied as a CSS stylesheet * {{$:/tags/Stylesheet||$:/core/ui/TagTemplate}} to indicate that a tiddler should be applied as a CSS stylesheet
* {{$:/tags/TiddlerInfo||$:/core/ui/TagTemplate}} for tiddler info panel tabs * {{$:/tags/TiddlerInfo||$:/core/ui/TagTemplate}} for tiddler info panel tabs
* {{$:/tags/TiddlerInfo/Advanced||$:/core/ui/TagTemplate}} for tabs under the advanced tiddler tab * {{$:/tags/TiddlerInfo/Advanced||$:/core/ui/TagTemplate}} for tabs under the advanced tiddler tab
* {{$:/tags/TopLeftBar||$:/core/ui/TagTemplate}} for the top left bar * {{$:/tags/TopLeftBar||$:/core/ui/TagTemplate}} for the top left bar

View File

@ -20,7 +20,7 @@ The system tiddlers provided as part of the core are named according to the foll
|`$:/plugins/*` |lowercase |Plugin tiddlers, and plugin content | |`$:/plugins/*` |lowercase |Plugin tiddlers, and plugin content |
|`$:/snippets/*` |//inconsistent// |Reusable snippets (will be replaced by macros) | |`$:/snippets/*` |//inconsistent// |Reusable snippets (will be replaced by macros) |
|`$:/state/*` |lowercase |User interface state tiddlers | |`$:/state/*` |lowercase |User interface state tiddlers |
|`$:/tags/*` |~CamelCase |User interface configuration tags (currently `$:/tags/stylesheet` is inconsistent) | |`$:/tags/*` |~CamelCase |User interface configuration tags |
|`$:/temp/*` |lowercase |Temporary tiddlers that shouldn't be saved | |`$:/temp/*` |lowercase |Temporary tiddlers that shouldn't be saved |
|`$:/themes/*` |lowercase |Theme plugins | |`$:/themes/*` |lowercase |Theme plugins |

View File

@ -6,7 +6,7 @@ type: text/vnd.tiddlywiki
The usual way of modifying the appearance of a TiddlyWiki is to use one of the available themes, or to modify the [[colour palette|ColourPalettes]]. The usual way of modifying the appearance of a TiddlyWiki is to use one of the available themes, or to modify the [[colour palette|ColourPalettes]].
You can also use custom CSS stylesheets by tagging tiddlers with `$:/tags/stylesheet`. For example, create a tiddler with the tag `$:/tags/stylesheet` and the following content in order to change the page background colour to red: You can also use custom CSS stylesheets by tagging tiddlers with `$:/tags/Stylesheet`. For example, create a tiddler with the tag `$:/tags/Stylesheet` and the following content in order to change the page background colour to red:
``` ```
html body.tc-body { html body.tc-body {

View File

@ -1,5 +1,5 @@
title: $:/_tw5.com-styles title: $:/_tw5.com-styles
tags: $:/tags/stylesheet tags: $:/tags/Stylesheet
@media (min-width: 600px) { @media (min-width: 600px) {

View File

@ -12,14 +12,14 @@
"fields": { "fields": {
"type": "text/css", "type": "text/css",
"title": "$:/plugins/tiddlywiki/codemirror/lib/codemirror.css", "title": "$:/plugins/tiddlywiki/codemirror/lib/codemirror.css",
"tags": "[[$:/tags/stylesheet]]" "tags": "[[$:/tags/Stylesheet]]"
} }
},{ },{
"file": "addon/dialog/dialog.css", "file": "addon/dialog/dialog.css",
"fields": { "fields": {
"type": "text/css", "type": "text/css",
"title": "$:/plugins/tiddlywiki/codemirror/addon/dialog/dialog.css", "title": "$:/plugins/tiddlywiki/codemirror/addon/dialog/dialog.css",
"tags": "[[$:/tags/stylesheet]]" "tags": "[[$:/tags/Stylesheet]]"
} }
},{ },{
"file": "addon/dialog/dialog.js", "file": "addon/dialog/dialog.js",

View File

@ -1,5 +1,5 @@
title: $:/plugins/tiddlywiki/codemirror/styles title: $:/plugins/tiddlywiki/codemirror/styles
tags: [[$:/tags/stylesheet]] tags: [[$:/tags/Stylesheet]]
/* Make the editor resize to fit its content */ /* Make the editor resize to fit its content */

View File

@ -1,5 +1,5 @@
title: $:/plugins/tiddlywiki/d3/base.tid title: $:/plugins/tiddlywiki/d3/base.tid
tags: [[$:/tags/stylesheet]] tags: [[$:/tags/Stylesheet]]
\rules only filteredtranscludeinline transcludeinline macrodef macrocallinline \rules only filteredtranscludeinline transcludeinline macrodef macrocallinline

View File

@ -1,5 +1,5 @@
title: $:/plugins/tiddlywiki/github-fork-ribbon/styles title: $:/plugins/tiddlywiki/github-fork-ribbon/styles
tags: [[$:/tags/stylesheet]] tags: [[$:/tags/Stylesheet]]
/* Left will inherit from right (so we don't need to duplicate code */ /* Left will inherit from right (so we don't need to duplicate code */
.github-fork-ribbon { .github-fork-ribbon {

View File

@ -15,7 +15,7 @@
"fields": { "fields": {
"type": "text/css", "type": "text/css",
"title": "$:/plugins/tiddlywiki/highlight/highlight.css", "title": "$:/plugins/tiddlywiki/highlight/highlight.css",
"tags": "[[$:/tags/stylesheet]]" "tags": "[[$:/tags/Stylesheet]]"
} }
} }
] ]

View File

@ -1,5 +1,5 @@
title: $:/plugins/tiddlywiki/highlight/styles title: $:/plugins/tiddlywiki/highlight/styles
tags: [[$:/tags/stylesheet]] tags: [[$:/tags/Stylesheet]]
/* Tomorrow Night Theme */ /* Tomorrow Night Theme */

View File

@ -13,7 +13,7 @@
"fields": { "fields": {
"type": "text/css", "type": "text/css",
"title": "$:/plugins/tiddlywiki/jasmine/jasmine.css", "title": "$:/plugins/tiddlywiki/jasmine/jasmine.css",
"tags": "[[$:/tags/stylesheet]]" "tags": "[[$:/tags/Stylesheet]]"
} }
},{ },{
"file": "jasmine.js", "file": "jasmine.js",

View File

@ -1,4 +1,4 @@
tags: $:/tags/stylesheet tags: $:/tags/Stylesheet
title: $:/plugins/tiddlywiki/tw2parser/image-css title: $:/plugins/tiddlywiki/tw2parser/image-css
type: text/plain type: text/plain

View File

@ -1,5 +1,5 @@
title: $:/plugins/tiddlywiki/upgrade/styles title: $:/plugins/tiddlywiki/upgrade/styles
tags: $:/tags/stylesheet tags: $:/tags/Stylesheet
.tc-upgrade-wizard-wrapper { .tc-upgrade-wizard-wrapper {
width: 100%; width: 100%;

View File

@ -1,5 +1,5 @@
title: $:/themes/tiddlywiki/centralised/styles.tid title: $:/themes/tiddlywiki/centralised/styles.tid
tags: [[$:/tags/stylesheet]] tags: [[$:/tags/Stylesheet]]
\rules only filteredtranscludeinline transcludeinline macrodef macrocallinline \rules only filteredtranscludeinline transcludeinline macrodef macrocallinline

View File

@ -1,5 +1,5 @@
title: $:/themes/tiddlywiki/readonly/styles.tid title: $:/themes/tiddlywiki/readonly/styles.tid
tags: [[$:/tags/stylesheet]] tags: [[$:/tags/Stylesheet]]
\rules only filteredtranscludeinline transcludeinline macrodef macrocallinline \rules only filteredtranscludeinline transcludeinline macrodef macrocallinline

View File

@ -1,5 +1,5 @@
title: $:/themes/tiddlywiki/seamless/base title: $:/themes/tiddlywiki/seamless/base
tags: [[$:/tags/stylesheet]] tags: [[$:/tags/Stylesheet]]
list-after: $:/themes/tiddlywiki/vanilla/base list-after: $:/themes/tiddlywiki/vanilla/base
\rules only filteredtranscludeinline transcludeinline macrodef macrocallinline \rules only filteredtranscludeinline transcludeinline macrodef macrocallinline

View File

@ -1,5 +1,5 @@
title: $:/themes/tiddlywiki/snowwhite/base title: $:/themes/tiddlywiki/snowwhite/base
tags: [[$:/tags/stylesheet]] tags: [[$:/tags/Stylesheet]]
\rules only filteredtranscludeinline transcludeinline macrodef macrocallinline \rules only filteredtranscludeinline transcludeinline macrodef macrocallinline

View File

@ -1,5 +1,5 @@
title: $:/themes/tiddlywiki/starlight/styles.tid title: $:/themes/tiddlywiki/starlight/styles.tid
tags: [[$:/tags/stylesheet]] tags: [[$:/tags/Stylesheet]]
\rules only filteredtranscludeinline transcludeinline macrodef macrocallinline \rules only filteredtranscludeinline transcludeinline macrodef macrocallinline

View File

@ -1,5 +1,5 @@
title: $:/themes/tiddlywiki/stickytitles/styles.tid title: $:/themes/tiddlywiki/stickytitles/styles.tid
tags: [[$:/tags/stylesheet]] tags: [[$:/tags/Stylesheet]]
\rules only filteredtranscludeinline transcludeinline macrodef macrocallinline \rules only filteredtranscludeinline transcludeinline macrodef macrocallinline

View File

@ -1,5 +1,5 @@
title: $:/themes/tiddlywiki/vanilla/base title: $:/themes/tiddlywiki/vanilla/base
tags: [[$:/tags/stylesheet]] tags: [[$:/tags/Stylesheet]]
\rules only filteredtranscludeinline transcludeinline macrodef macrocallinline \rules only filteredtranscludeinline transcludeinline macrodef macrocallinline
/* /*