Apply custom CSS by Tag

52 views
Skip to first unread message

Mohammad

unread,
Oct 15, 2018, 4:04:14 AM10/15/18
to TiddlyWiki

In https://tiddlywiki.com/prerelease/#Custom%20styles%20by%20data-tags  TW explains how to apply custom css by tag!


@media print {


.tc-story-river .tc-tiddler-frame {
margin: 0;
border: none;
padding: 0;
}
}





How can I prevent applying this for tiddlers tagged with notebook?


Mohammad

Mohammad

unread,
Oct 15, 2018, 4:55:54 AM10/15/18
to TiddlyWiki
I used the below css

@media print{
 .tc-story-river > [data-tags ~= "notebook"] {
        margin: 15px;
        border: 1px solid #eee;
        padding-left: 42px;
    }
      
}

 and it works! I actually set different values for tiddler with notebook tag!

-Mohammad
Reply all
Reply to author
Forward
0 new messages