How to use stylus on quasar dom?
-
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> -
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>
-
@morlz
Thanks ,it’s very helpful.