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

    [0.15.x] How to change heading font-size?

    Help
    5
    6
    2145
    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.
    • A
      Alinex last edited by

      The headings h1…h4 are a way to big in my opinion. How or there should I change them?

      1 Reply Last reply Reply Quote 1
      • N
        ninafar last edited by

        use p and set font-size instead ?

        1 Reply Last reply Reply Quote 0
        • A
          Alinex last edited by Alinex

          Is there no possibility to decrease font size of h1…h3 globally?
          I don’t want to use <p class=“h1”> everythere and add font size, weight and margin like it should be on heading.

          How can I overwrite this basic stylus settings for font-size of headings?

          1 Reply Last reply Reply Quote 0
          • C
            chbarr last edited by

            I read in the source code and I think now it’s not possible easily.
            in the quasar-framework/src/css/core.variables.styl there’s a variable $headings with the style for each (display-4, display-3, …, caption)
            But there’s no stylus variable for the size.

            Maybe in the future we can have stylus variables like that : $display-1-size, etc…
            @rstoenescu : What do you think about adding these stylus variables ?

            1 Reply Last reply Reply Quote 0
            • A
              april last edited by april

              Is it possible to do this in v1? I tried this in quasar.variables.styl but it threw build errors. How would I achieve this?

              $headings.h2 = {
                  size: 2rem,
                  line-height: 2rem,
                  weight: 300,
                  letter-spacing: -.01562em
              }
              
              1 Reply Last reply Reply Quote 0
              • J
                jacklin10 last edited by jacklin10

                Looks like you can do this in /src/css/app.style. I’m using Quasar 1.0.

                h1 { font-size: 3em; }

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