0
Welcome Guest! Login
0 items Join Now

ROCKETTHEME IS CLOSING ON JUNE 30, 2025. As a thank-you to our community, enjoy 50% off all themes with the promo code THANKYOU before we shut down. Read our Farewell Blog Post for more details.

SOLVED .btn background-color and color being overridden

    • Mike Feng's Avatar
    • Mike Feng
    • Sr. Rocketeer
    • Posts: 197
    • Thanks: 1

    SOLVED .btn background-color and color being overridden

    Posted 7 years 11 months ago
    • Hi

      The compiled CSS (/templates/rt_protean/custom/css-compiled/protean-joomla_18.css?5955c3df) is overriding the colors of other Bootstrap button classes such as .btn-success and .btn-info because it includes the style rule for:


      p.readmore .btn, .content_vote .btn, .contact .form-actions .btn, .login .btn, .logout .btn, .registration .btn, .profile-edit .btn, .remind .btn, .reset .btn, .profile .btn, .search #searchForm .btn, .finder #finder-search .btn, .edit.item-page .btn-toolbar .btn, .pager.pagenav a, .moduletable #login-form .control-group .btn, #searchForm .btn, #finder-search .btn, .btn

      As you can see, the last rule of that list is .btn, which overrides all other Bootstrap classes. Where can I remove the .btn declaration? Also, it seems weird that .btn is used instead of .btn-primary, and I feel it's generally not a good idea to override output of Bootstrap classes as other 3rd party extensions use them too.
    • My extensions: http://www.simbunch.com/
      http://twitter.com/simbunch
    • Damir's Avatar
    • Damir
    • Preeminent Rocketeer
    • Posts: 22450
    • Thanks: 2679
    • Web Developer

    Re: SOLVED .btn background-color and color being overridden

    Posted 7 years 11 months ago
    • Mike Feng's Avatar
    • Mike Feng
    • Sr. Rocketeer
    • Posts: 197
    • Thanks: 1

    Re: SOLVED .btn background-color and color being overridden

    Posted 7 years 11 months ago
    • Right I know that, my question is where can I remove that last .btn. I can find the other .btn rules (that are higher level declarations) in _core.scss, but I cannot find the singular declaration ".btn".
    • My extensions: http://www.simbunch.com/
      http://twitter.com/simbunch
    • Damir's Avatar
    • Damir
    • Preeminent Rocketeer
    • Posts: 22450
    • Thanks: 2679
    • Web Developer

    Re: SOLVED .btn background-color and color being overridden

    Posted 7 years 11 months ago
    • Mike Feng's Avatar
    • Mike Feng
    • Sr. Rocketeer
    • Posts: 197
    • Thanks: 1

    Re: SOLVED .btn background-color and color being overridden

    Posted 7 years 11 months ago

Time to create page: 0.093 seconds