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

    Style input text color

    Help
    stylus text-color
    2
    7
    9921
    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 Martin

      I don’t think there’s a stylus variable available yet for this, is there?

      How can I change it with css? I can’t seem to find the right class to override.

      0_1477929270949_upload-9d02930a-4c7d-46e3-b586-7253d346a432

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

        Hi Martin,

        Please go to http://quasar-framework.org/api/css-stylus-variables.html and search for textfield. There’s color there too.

        Cheers!

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

          @rstoenescu
          I can’t find it.

          0_1477935965835_upload-647d2a8a-352a-4e5b-a527-967762c2c839

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

            Border color and focus border color.

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

              @rstoenescu

              I don’t understand why I should change border-color when I’m trying to change the color of the text inside the input.
              Anyway, changing $textfield-border-color and $textfield-focus-border-color doesn’t trigger anything either.

              I’m still on v0.7 btw. Maybe I should I upgrade to 0.8 and vuejs 2.x?
              (I guess you’re not committing all fixes/enhancements from 0.8 to 0.7)

              These are my customised variables

              $text-color          = darken(white, 20%)
              $background = #222222
              $toolbar-background = #2d2c2c
              $drawer-background = #3c3c3c
              $modal-background = #3c3c3c
              $modal-body-color = $text-color
              $item-label-color = $text-color
              $item-content-label-color = $text-color
              $modal-body-color = $text-color
              $textfield-border-color= "red"
              $textfield-focus-border-color="green"
              $link-color          = lighten($primary, 25%)
              $link-color-active   = $primary
              
              1 Reply Last reply Reply Quote 0
              • rstoenescu
                rstoenescu Admin last edited by

                Yes, please do make time to upgrade to v0.8.

                As for your issue, oh man, did I got this wrong… I really thought you wanted to change that border. So sorry. Anyway, Quasar does not alter the text color of your input, so please go ahead and apply some CSS to it, like: input { color: 'red'; }.

                Cheers.

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

                  @rstoenescu Thanks Razvan. Using css will work fine for now.

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