Ah, as it happens, I figure out my issue right after posting the
message.

In my .css, I was defining .tape-foo_special, within my JSON was
calling 'classname':'tape-foo_special'

If I instead call 'classname':'foo_special', my .css definition will
only affect the tape color.

Same thing with bolding the label: .label-foo_special within the css.
However, I don't see this defined in the css that the example
references...

Steve

On Mar 6, 12:48 am, SteveP <steve...@gmail.com> wrote:
> Note: I am referencing 'Test 7A' in timeline_2.3.0/src/webapp/examples/
> test_example/test.html
>
> The 'Test 7A' example shows an event with the corresponding JSON
> structure:
>
>         {'start': '1920', 'end': '1922',
>         'title': 'Test 7a: special_event css (bolded)',
>         'description': 'Test 7a: special_event css (bolded label and
> colored tape)',
>         'classname': 'special_event'
>         }
>
> If I understand this correctly, the following class in style.css is
> referenced by 'classname':
>
>         .tape-special_event, .small-special_event {background-color:
> orange;}
>
> My question are:
>
> 1. What allows the label for the event to show up as bold?
>
> 2. When I try to do something similar by defining 'classname' in my
> JSON file, with a matching name in my .css file (containing a
> gradient), the background color for the label is changed as well as
> that of the event-tape. How can I retain the default background for
> the label?
>
> Thanks!
> Steve

-- 
You received this message because you are subscribed to the Google Groups 
"SIMILE Widgets" group.
To post to this group, send email to simile-widgets@googlegroups.com.
To unsubscribe from this group, send email to 
simile-widgets+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/simile-widgets?hl=en.

Reply via email to