Skip to content

How to set tab label font size #3975

Closed Answered by falkoschindler
belalhmedan90 asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @belalhmedan90,

Quasar seems to define the font-size in quasar.prod.css like this:

.q-tab__label {
    font-size: 14px;
    ...
}

So you can adjust it by adding the following CSS:

.main-tab .q-tab__label {
    font-size: 38px;
}

By the way, calling ui.run inside the page function seems pretty broken. I'd suggest structuring it like this:

@ui.page('/page_layout')
def create():
    ui.add_head_html(...)
    with ui.tabs().classes('tabs-container') as tabs:
        ui.tab("Create Program").classes('main-tab')
        ui.tab("Run Program").classes('main-tab')

ui.run(show=False)

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@belalhmedan90
Comment options

Answer selected by belalhmedan90
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants