• Resolved joho68

    (@joho68)


    First off, great stuff!

    Second, a minor suggestion: it’d be nice to be able to supply a parameter that would suffix all your CSS-classes with the specified text.

    This would allow us to use completely different styles for different feeds.

    e.g.
    suffix="food"

    would append ‘-food’ to all selectors that the plugin outputs.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author room34

    (@room34)

    Are you referring to calendars that have multiple separate feeds in them?

    There are two ways to distinguish multiple feeds:

    1. There’s built-in support for color coding the feeds using the color parameter. Fill in hex color values, space-delimited, and the feeds will use those colors in the same order as the URLs appear in the url parameter. (Note that the full-saturation color you enter is just used for a bar on the left edge; the background of the block for each event is tinted with a lighter shade of the same color.)

    2. There is an HTML parameter called data-feed-key on each listed event. This is how the colors get applied, but you can use it to apply your own styles. The feeds are numbered (starting with 0) in the order of the URLs in the url parameter. So your CSS would look something like this:

    .ics-calendar .event[data-feed-key="0"] { … }
    .ics-calendar .event[data-feed-key="1"] { … }
    .ics-calendar .event[data-feed-key="2"] { … }

    Etc.

    Thread Starter joho68

    (@joho68)

    Thanks for the quick response!

    #1 won’t work for me as I need to override (and hide) more stuff and have complete control, but #2 might actually do the job. I’ll look into that possibility.

    Thanks!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘CSS suffix as a parameter’ is closed to new replies.