Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Modify CSS sidebar #8

Open
Tarik37 opened this issue Feb 11, 2023 · 2 comments
Open

Modify CSS sidebar #8

Tarik37 opened this issue Feb 11, 2023 · 2 comments

Comments

@Tarik37
Copy link

Tarik37 commented Feb 11, 2023

Hello, first of all thanks for those fantastic module,
I Wonder how Can i Modify CSS sidebar opacity and add red bouder on selected tab. On Hover thé texte color IS highlighted but since i am a complété beginers in CSS and streamlit Can you show me a example.

@Socvest
Copy link
Owner

Socvest commented Feb 22, 2023

Hello, glad you like the component. You can change the sidebar css via altering the elements via the style.css file here.

If you want to change the colour of the sidebar for example as demonstrated in the css file:

section[data-testid='stSidebar'] {
    background-color: #111;
    min-width:unset !important;
    width: unset !important;
    flex-shrink: unset !important;   
}

Thanks!

@Socvest
Copy link
Owner

Socvest commented Jul 24, 2023

Hello again :). So It seems from my previous answer I completely misunderstood your question. What you are asking for is not an enabled functionality. I will as just the package tonight and make this possible and update the package docs. Again, very sorry for my previous response. :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants