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

    Are current available stylus variables covering entire theme?

    Help
    stylus themes
    2
    6
    2612
    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.
    • Martin
      Martin last edited by

      I’m experimenting with stylus variables, but I was wondering if there are also variables for eg. items (in lists) like text, borders etc? If not, what would be the best way to go?
      0_1476892812118_upload-ce0bc753-203a-4c13-b6d1-1693290f3d4a

      1 Reply Last reply Reply Quote 0
      • rstoenescu
        rstoenescu Admin last edited by

        Hi Martin,

        Yes, there are a lot of Stylus variables. Check out: http://quasar-framework.org/api/css-stylus-variables.html

        If there is one variable that you need badly and can’t overwrite a CSS property then make a PR pls.

        Martin 1 Reply Last reply Reply Quote 0
        • Martin
          Martin @rstoenescu last edited by

          @rstoenescu I can’t find variables for styling item-content class. For instance the text stays black.
          I’ve set up following customization: (I like the stylus approach btw., very clean and easy 🕶 )

          0_1476908352686_upload-10ac2482-dbec-415d-9e3f-f7ee254ffbb5

          <div class="item-content has-secondary" >
              <div>...</div>
              <p>...</p>
            </div>
          

          0_1476908229766_upload-32be408b-df18-4dfe-a9be-0a620963a5f0

          1 Reply Last reply Reply Quote 0
          • rstoenescu
            rstoenescu Admin last edited by

            Either overwrite the text color in your app’s Stylus CSS or use “text-<color>” Quasar CSS classes on item-content divs.

            Martin 1 Reply Last reply Reply Quote 0
            • Martin
              Martin @rstoenescu last edited by

              @rstoenescu said in Are current available stylus variables covering entire theme?:

              Either overwrite the text color in your app’s Stylus CSS

              Aren’t I doing that already in app.variables.styl with:

              $text-color = white
              

              All texts are going white except for those in list items.

              1 Reply Last reply Reply Quote 0
              • rstoenescu
                rstoenescu Admin last edited by

                Yes, you’re right. Lists have their own text color. Will fix this in v0.8. You can however CSS overwrite the “color” property (not through stylus variables) of lists on v0.7 until the improvement arrives in v0.8.

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