WordPress.org

Ready to get started?Download WordPress

Forums

Customizr
jquery datepicker conflicts with tc_sortable.css (3 posts)

  1. SchwarzwaldFalke
    Member
    Posted 8 months ago #

    Hey guys,

    today I wrote some code for a customer where I added a jQuery datepicker to a meta box in the post edit screen. But I had the problem that something destroyed the style of the datepicker box.

    After some digging I found the problem:
    The customizr theme and jQuery datepicker both uses the

    .ui-state-highlight  (in tc_sortable.css)

    class in stylesheets.

    The

    .ui-state-highlight { height: 150px; line-height: 120px;border: 1px solid #FCEFA1;background: #FBF9EE }

    command in tc_sortable.css crashs the design of the datepicker.

    I made the selector more specific so

    #sortable .ui-state-highlight { height: 150px; line-height: 120px;border: 1px solid #FCEFA1;background: #FBF9EE }

    or

    table:NOT(.ui-datepicker-calendar) .ui-state-highlight { height: 150px; line-height: 120px;border: 1px solid #FCEFA1;background: #FBF9EE }

    the datepicker and (as far as I've seen) also customizr worked fine.

    Because jQuery is kind of standard in wordpress it would be nice if you could add a fix to the next version of customizr.

    Thanks!

    Best Regards,
    Chris

  2. Andrew
    Forum Moderator
    Posted 8 months ago #

    Because jQuery is kind of standard in wordpress it would be nice if you could add a fix to the next version of customizr.

    Is that really feasible? There are so many styles for different components in jQuery UI, wouldn't it just be easier to include the styles yourself whenever you use them?

  3. SchwarzwaldFalke
    Member
    Posted 8 months ago #

    Hey Andrew,
    thanks for the fast response!

    Not sure if I understand you, but I don't include styles for the jQuery datepicker. The tc_sortable.css will effect every jQuery datepicker, no matter what style it uses.

    I thought it would be nice to make the selector more specific by default so the customizr theme has no side effect on plugins which uses jQuery datepicker.

    But it was just a proposal, no problem if you have another opinion. :)

Reply

You must log in to post.

About this Theme

About this Topic