Overwriting quasar styles only works in app.styl



  • When I want to style an element differently depending on the component, I tried to put the specific styles into the component like this:

    <style lang="stylus" scoped>
      .q-input
        margin-bottom:0.3em
      .q-select
        margin-bottom:0.5em
    </style>
    

    But that did not work, the elements still had the original look. Only when I put that code into app.styl it worked – but clearly then it applied to all q-inputs not those specific ones.

    Is there anything I am missing?



  • 0.3em won’t make much of a difference. It should work though.

    What is it you are trying to accomplish?

    Scott


Log in to reply