Hi Eric,

Thank you so much for the prompt reply. This works exactly as I wanted it 
to, YOU solved my problem. I probably should have looked at CSS guides 
first :-) ... I am not a web developer but it is impressive how much you 
can achieve with TiddlyWiki5 already without knowing much code.

Thanks!!
Sebas




On Tuesday, January 12, 2016 at 11:37:04 PM UTC, Eric Shulman wrote:
>
> 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/cf323856-1190-4ac8-9d27-29ea93f39a22%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to