0
Welcome Guest! Login
0 items Join Now

How to apply build-in gantry table styles in a k2 item?

    • shenk's Avatar
    • shenk
    • Hero Rocketeer
    • Posts: 424
    • Thanks: 11

    How to apply build-in gantry table styles in a k2 item?

    Posted 11 years 4 months ago
    • Two things I like about RT is its build-in typography and compatibility with k2, but someday these two get conflicted with each other.
      I'm using Corvus Template, Joomla 3.2.1 + K2 2.6.7 to build my site. In some of my articles( A.K.A k2 item) there are tables, I set the class to be .table .table-striped .table-hover, and the tr's class to be .success and .warning, but the table's background won't change. Upon looking at the CSS files, I found that there is an annoying line in thirdparty-k2.css :
      This image is hidden for guests.
      Please log in or register to see it.
      , with !important, it totally beats gantry build-in table styles like "tr.success" or "table.table-striped".
      Now what do I do? Of course I can modify thirdparty-k2.css file and erase that style, but since it is a compressed file, I don't feel good to directly modify it, (I've never messed with compressed CSS files before, 'cause I was told they are gonna be regenerated someday and overwrite all the changes you have done to it)
      So is there any other better way to do it?
    • shenk's Avatar
    • shenk
    • Hero Rocketeer
    • Posts: 424
    • Thanks: 11

    Re: How to apply build-in gantry table styles in a k2 item?

    Posted 11 years 3 months ago
    • No one care to answer?
    • Henning's Avatar
    • Henning
    • Preeminent Rocketeer
    • Posts: 29362
    • Thanks: 954
    • Volunteer

    Re: How to apply build-in gantry table styles in a k2 item?

    Posted 11 years 3 months ago
    • We have added a ticket for that in our bug tracker because this affects several templates.
      We have no easy fix right now (affects the rt third party less file).
      You would need to build rules of a higher specificity to overrule the !important.
    • shenk's Avatar
    • shenk
    • Hero Rocketeer
    • Posts: 424
    • Thanks: 11

    Re: How to apply build-in gantry table styles in a k2 item?

    Posted 11 years 3 months ago
    • Well I have modified thirdparty-k2.css, removed that annoying !important. Now my question is, is this change gonna be overwritten someday?
    • Henning's Avatar
    • Henning
    • Preeminent Rocketeer
    • Posts: 29362
    • Thanks: 954
    • Volunteer

    Re: How to apply build-in gantry table styles in a k2 item?

    Posted 11 years 3 months ago
    • since there is a ticket for this I would think so ... but I'm only a moderator not a developer

Time to create page: 0.064 seconds