1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-07-04 11:13:15 +00:00
TiddlyWiki5/editions/tw5.com/tiddlers/howtos/faq/csFAQ_what_if_tiddler_has_no_tags.tid
Mario Pietsch 19085a1277 Add data attributes to ViewTemplate (#3209)
* change 3 set-widgets to 1 var-widget call. Add data-tags and userClass.

* add new documentation and change the existing one accordingly.
2018-04-24 22:08:20 +01:00

19 lines
755 B
Plaintext

created: 201804111739
modified: 201804111739
title: Q: What if a tiddler has no tags?
tags: [[Custom Styles FAQ]]
''Answer:'' <<.from-version "5.1.16">>
* If a tiddler has no tags, but needs styling use: `data-tiddler-title` as CSS selector
** There is only one tiddler
* If a user wants to style system tiddlers in a custom way: use: `[data-tiddler-title^="$:"/]` as a selector
** using the TW namespace functionality
* If the user wants special behaviour for tagged tiddlers. eg: Learning
** use: `[data-tags*="Learning"]` as CSS selector.
The names I'm using are only used for documentation purpose, without changing the existing wiki. I don't want, that the docs has side effects.
[[Learn more about possible attributes!|Attribute Selectors]]