Skip to content

Allow customizing navbar background with css variables. #353

@SebastianJL

Description

@SebastianJL

I use css variables as outlined here:
https://pydata-sphinx-theme.readthedocs.io/en/latest/user_guide/customizing.html#css-theme-variables

My customs.css looks like this

:root {
    --pst-color-navbar-link: 255, 255, 255;
    --pst-color-navbar-link-hover: 192, 192, 192;
    --pst-color-navbar-link-active: 203, 86, 40;
}

#navbar-main {
    background-color: #2f4858 !important;
}

i.fa-github-square:before {
    color: #ffffffff;
}

I wondered if you could add a css variable for customizing the navbar background.
It could be called --pst-color-navbar-background.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions