Please upgrade here. These earlier versions are no longer being updated and have security issues.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.

[Documentation] Editing css of plugins in Vanilla

CaioCaio
edited April 2012 in Vanilla 2.0 - 2.8

I was wondering the protocol for editing the css in plugins in Vanilla, do you edit it directly or through your theme?

Tagged:

Best Answers

  • 422422 Developer MVP
    edited April 2012 Answer ✓

    I add a caveat to custom css file , like this.

    < !-- the css below changes voting plugin -- >

    Then add the css changes, use !important attribute where needed

    There was an error rendering this rich post.

  • hbfhbf wiki guy? MVP
    Answer ✓

    Caio said:
    I was wondering the protocol for editing the css in plugins in Vanilla, do you edit it directly or through your theme?

    it's a matter of preference... but doing it in the theme gives you the ability to upgrade the plugin without losing the css changes... however, making the changes to the plugin css file allows your changes to propagate across themes. (you just need to be more careful at upgrade)

  • 422422 Developer MVP
    edited April 2012 Answer ✓

    You could use

    @import

    and whack them in a separate css file too.

    There was an error rendering this rich post.

Answers

  • 422422 Developer MVP
    edited April 2012 Answer ✓

    I add a caveat to custom css file , like this.

    < !-- the css below changes voting plugin -- >

    Then add the css changes, use !important attribute where needed

    There was an error rendering this rich post.

  • hbfhbf wiki guy? MVP
    Answer ✓

    Caio said:
    I was wondering the protocol for editing the css in plugins in Vanilla, do you edit it directly or through your theme?

    it's a matter of preference... but doing it in the theme gives you the ability to upgrade the plugin without losing the css changes... however, making the changes to the plugin css file allows your changes to propagate across themes. (you just need to be more careful at upgrade)

  • 422422 Developer MVP
    edited April 2012 Answer ✓

    You could use

    @import

    and whack them in a separate css file too.

    There was an error rendering this rich post.

  • Thank you for helping me. I decided to edit the plugin directly.

Sign In or Register to comment.