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

    q-editor font size labels

    Help
    2
    2
    285
    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.
    • D
      daveline last edited by

      How do you change the font size labels for the q-editor?

      967bb46d-3954-4697-b285-087779f8c743-image.png

      beets 1 Reply Last reply Reply Quote 0
      • beets
        beets @daveline last edited by

        @daveline You can try something like this css:

        font[size="1"] {
          font-size: 10px
        }
        font[size="2"] {
          font-size: 14px
        }
        font[size="3"] {
          font-size: 16px
        }
        font[size="4"] {
          font-size: 18px
        }
        font[size="5"] {
          font-size: 24px
        }
        font[size="6"] {
          font-size: 32px
        }
        font[size="7"] {
          font-size: 48px
        }
        

        I’m not sure if you only want to change the size in the toolbar, and not the actual editor though. If only the toolbar, you can wrap those above definitions in a .q-menu selector, like:

        .q-menu {
          font[size="1"] {
            font-size: 10px
          }
          font[size="2"] {
            font-size: 14px
          }
          font[size="3"] {
            font-size: 16px
          }
          font[size="4"] {
            font-size: 18px
          }
          font[size="5"] {
            font-size: 24px
          }
          font[size="6"] {
            font-size: 32px
          }
          font[size="7"] {
            font-size: 48px
          }
        }
        
        1 Reply Last reply Reply Quote 0
        • First post
          Last post