No More Posting New Topics!

If you have a question or an issue, please start a thread in our Github Discussions Forum.
This forum is closed for new threads/ topics.

Navigation

    Quasar Framework

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search

    Overwriting quasar styles only works in app.styl

    Help
    2
    2
    88
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • rami.almofleh
      rami.almofleh last edited by

      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?

      1 Reply Last reply Reply Quote 0
      • s.molinari
        s.molinari last edited by

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

        What is it you are trying to accomplish?

        Scott

        1 Reply Last reply Reply Quote 0
        • First post
          Last post