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

    How to use stylus on quasar dom?

    Help
    2
    3
    322
    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.
    • B
      bosconovitchi last edited by

      When i use q-card ,use style=“width: 300px” to control width.
      Like this <q-card style=“width: 300px”>…</q-card>.
      But i tried to use stylus to control ,it doesn’t work.
      <style lang=“stylus”>
      q-card
      width 300px
      </style>

      1 Reply Last reply Reply Quote 0
      • M
        morlz last edited by

        QCard component has class q-card
        use:

        <style lang=“stylus”>
        .q-card
          width 300px
        </style>
        

        or add own class

        <q-card class="myOwnClass">...</q-card>
        
        <style lang=“stylus”>
        .myOwnClass
          width 300px
        </style>
        
        B 1 Reply Last reply Reply Quote 1
        • B
          bosconovitchi @morlz last edited by

          @morlz
          Thanks ,it’s very helpful.

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