Styling in TW5 5.1.16+

139 views
Skip to first unread message

TonyM

unread,
Jul 17, 2018, 9:32:25 PM7/17/18
to TiddlyWiki
Folks,

I am struggling to make the new css methods work.

I think I follow the instructions correctly but do not seem to get any result.

Has anyone played with this so they can give some practical working examples?

Thanks in advance
Tony


TonyM

unread,
Jul 17, 2018, 9:33:10 PM7/17/18
to TiddlyWiki
Some are now working after a reload.

Mohammad

unread,
Jul 17, 2018, 10:41:17 PM7/17/18
to TiddlyWiki
Tony, which part does mot work!
Give a specific example.

Mohammad

TonyM

unread,
Jul 17, 2018, 11:04:42 PM7/17/18
to TiddlyWiki
Mohammad,

Contrary to my followup reply, I can get nothing to work, I don't understand something about its application. hence my desire for an example.

Thanks in advance
Tony

Mohammad

unread,
Jul 17, 2018, 11:25:12 PM7/17/18
to TiddlyWiki
Tony,
You can find an example below
[data-tags*="slide"] {
  border
: 2px solid blue;
}

Put the above code inside a tiddler tagged with 
$:/tags/Stylesheet

Now create tiddlers with what contents you like and tag them with 
slide

Note to the border color! They should be blue.

This way you can apply custom style sheet based on tags


Best
Mohamad

TonyM

unread,
Jul 18, 2018, 12:26:10 AM7/18/18
to TiddlyWiki
Mohammad,

I followed your instructions precisely in TW 5.1.17

No Result. However the same tiddlers work at TiddlyWiki.com so there must be something in my wiki interfering.
I had forgotten to test it elsewhere or in empty which is allways a good rule in such cases.

Thanks for helping me confirm I was doing it correctly, I stopped doubting myself and doubted my wiki!

Regards
Tony

PMario

unread,
Jul 18, 2018, 6:55:25 AM7/18/18
to TiddlyWiki

PMario

unread,
Jul 18, 2018, 6:58:36 AM7/18/18
to TiddlyWiki
You can cuse this:

<<tag "$:/tags/Stylesheet">>

to sort style sheet order

-m

TonyM

unread,
Jul 18, 2018, 8:26:53 AM7/18/18
to TiddlyWiki
Thanks mario,

I mever thought the order may be importiant

I read the examples and every test failed but I will revisit on an emptywiki or after reviewing the order of style sheets.

Regards
Tony

PMario

unread,
Jul 19, 2018, 6:55:15 AM7/19/18
to TiddlyWiki
On Wednesday, July 18, 2018 at 2:26:53 PM UTC+2, TonyM wrote:
Thanks mario,

I mever thought the order may be importiant


Most of the time it isn't. .. But who knows :)

-m

@TiddlyTweeter

unread,
Jul 19, 2018, 7:02:08 AM7/19/18
to TiddlyWiki
PMario wrote:
Most of the time it isn't. .. But who knows :)

 Excellent to see you too can also be prey to discombobulation :-).

Josiah
Reply all
Reply to author
Forward
0 new messages