[tw5] Re: How does tiddlywiki knows where to apply CSS classes defined inside theme?
Yes it does help. Thank you Eric. -- You received this message because you are subscribed to the Google Groups "TiddlyWiki" group. To unsubscribe from this group and stop receiving emails from it, send an email to tiddlywiki+unsubscr...@googlegroups.com. To post to this group, send email to tiddlywiki@googlegroups.com. Visit this group at https://groups.google.com/group/tiddlywiki. To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/25ff0e21-f4a3-41f9-ba0c-9e7b41ded2db%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[tw5] Re: How does tiddlywiki knows where to apply CSS classes defined inside theme?
Oops! Talk about missing the obvious. Thank you FrD. -- You received this message because you are subscribed to the Google Groups "TiddlyWiki" group. To unsubscribe from this group and stop receiving emails from it, send an email to tiddlywiki+unsubscr...@googlegroups.com. To post to this group, send email to tiddlywiki@googlegroups.com. Visit this group at https://groups.google.com/group/tiddlywiki. To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/739e7e8d-6cc3-41d3-bb98-484637f53b8b%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[tw5] Re: How does tiddlywiki knows where to apply CSS classes defined inside theme?
On Tuesday, February 26, 2019 at 6:35:34 AM UTC-8, talha131 wrote: > > I am using material theme by JD > > http://j.d.material.tiddlyspot.com/ > > The stylesheet is here > > > http://j.d.material.tiddlyspot.com/#%24%3A%2Fthemes%2Fjd%2FMaterial%2FStylesheet > > It has a class div.tc-tab-content.jd-lists-body. > > My question is how does TW knows which CSS class or selector is to be > applied to which component? > > In theme source code, I don’t see any where that says apply > div.tc-tab-content.jd-lists-body to this specific div. > Searching in the "system" tab for "jd-lists" finds this matching tiddler: *$:/themes/jd/Material/Template/Header-Sidebar* Edit that tiddler and you will find this: <$macrocall $name="tabs" tabsList="[all[shadows+tiddlers]tag[$:/tags/SideBar]!has[draft.of]]" default={{$:/config/DefaultSidebarTab}} state="$:/state/tab/sidebar" class="jd-lists-body"/> Note the class="jd-lists-body" param. That class is assigned to the 's of the tabset when they are rendered. hope this helps, -e > Usually you declare CSS classes in the html for example > > > > Lorem ispum > > > > Where is the part > > -- You received this message because you are subscribed to the Google Groups "TiddlyWiki" group. To unsubscribe from this group and stop receiving emails from it, send an email to tiddlywiki+unsubscr...@googlegroups.com. To post to this group, send email to tiddlywiki@googlegroups.com. Visit this group at https://groups.google.com/group/tiddlywiki. To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/6f06fe63-1392-46cd-a1e3-de553fcc63c4%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[tw5] Re: How does tiddlywiki knows where to apply CSS classes defined inside theme?
Hi, Have a look at $:/themes/jd/Material/Template/Header-Sidebar, and search for "jd-lists-body". Regards FrD Le mardi 26 février 2019 15:35:34 UTC+1, talha131 a écrit : > > I am using material theme by JD > > http://j.d.material.tiddlyspot.com/ > > The stylesheet is here > > > http://j.d.material.tiddlyspot.com/#%24%3A%2Fthemes%2Fjd%2FMaterial%2FStylesheet > > It has a class div.tc-tab-content.jd-lists-body. > > When you inspect the tiddlywiki in the browser you can see that this class > is applied to the sidebar content > > My question is how does TW knows which CSS class or selector is to be > applied to which component? > > In theme source code, I don’t see any where that says apply > div.tc-tab-content.jd-lists-body to this specific div. > > Usually you declare CSS classes in the html for example > > > > Lorem ispum > > > > Where is the part > > -- You received this message because you are subscribed to the Google Groups "TiddlyWiki" group. To unsubscribe from this group and stop receiving emails from it, send an email to tiddlywiki+unsubscr...@googlegroups.com. To post to this group, send email to tiddlywiki@googlegroups.com. Visit this group at https://groups.google.com/group/tiddlywiki. To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/7778ee4a-26ee-4e7f-b69e-35fc7bb0ee1f%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.