On Tuesday, January 12, 2016 at 3:24:31 PM UTC-8, Sebas wrote:
>
> I have a stylesheet:
> ========================
>
> input[type=text] {
> box-shadow: 0 0 5px rgba(255, 204, 204, 1);
> padding: 3px 0px 3px 3px;
> margin: 5px 1px 3px 0px;
> border: 1px solid rgba(255, 204, 204, 1);}
>
> ========================
> By tagging a it's tiddler $:/tags/Stylesheet, I manage to get all input
> fields to glow red. However, I just want to do this for certain input boxes
> where text entries are mandatory.
> <$edit-text tiddler="test" field="test" class='whatIsThisFor'/>
> The <$edit-text> documentation mentions the class field, but I do not
> understand how to define a class that I can then use for specific widgets.
>
>
You are almost there! You just need to define the classname
".whatIsThisFor" in your CSS stylesheet by replacing this line:
input[type=text] {
with
.whatIsThisFor {
Note the leading "." in the CSS classname definition is *not* included when
referencing that classname in the $edit-text widget parameter
enjoy,
-e
--
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 [email protected].
To post to this group, send email to [email protected].
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/543629a3-1fb7-497b-ac7a-0aab9e145338%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.