• Resolved tr-Archangel

    (@trarchangel)


    I was looking to give my roster a bit more color to the theme of my site but ran into a snag.

    In your wowpi/includes/scripts.php file you make a reference call to the css for the table formatting here: cdn.datatables.net/1.10.12/css/jquery.dataTables.min.css

    Is there a reason its not local loaded?

    What I am trying to do is change the row background colors in the roster table. They are called by the css “odd” and “even” tags.

    http://cdn.datatables.net/1.10.12/css/jquery.dataTables.min.css?ver=0f0139fcfe12691047855c7d851436b7
    table.dataTable tbody tr
    tr.rank_8:nth-child(2)

    If I change the background-color there I get the proper look I want but I cannot seem to get it to take any custom class calls and change odd/even rows. The changes I am making are just preview only (using firefox dev tools to test)

    Any insight on this?

    Would there be a better way to load a local jquery css instead if I wanted to use different jquery styles? Id rather not manually change the code to fit suit. If I am making an error here please let me know.

    Thanks

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author avenirer

    (@avenirer)

    Hello, considering the fact that a lot of sites may use the same table sorter, I thought it would be better to take it from a common place: the cdn service.

    If you want to change the css you can be more specific by using the id of the table. This would overwrite the existing css.

    We can do it together if you want. My Google Hangout is avenir.ro@gmail.com

    Thread Starter tr-Archangel

    (@trarchangel)

    Looks like I got it actually!

    Just needed to drop in

    .wowpi_guild_roster tr.even {
    background-color: #0006;
    }
    .wowpi_guild_roster tr.odd {
    background-color: #000;
    }

    Into my style.css for the theme. I was worried that your table CSS would come last and overwrite changes I made.

    Seriously,

    Awesome work on your plugin!

    Plugin Author avenirer

    (@avenirer)

    Thank you. Please do rate it if you hadn’t already.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Roster CSS Question’ is closed to new replies.