Blazored / Modal

A powerful and customizable modal implementation for Blazor applications.
https://blazored.github.io/Modal/
MIT License
764 stars 184 forks source link

[Question] How to customize selected styling elements? #529

Closed macias closed 10 months ago

macias commented 11 months ago

I've read documentation about custom layout: https://blazored.github.io/Modal/styling/custom-layout but it is (as I understand) when you want completely, 100%, custom styling.

In my case I would like to change just a few bits, like:

.bm-header
{
    padding:0;
}

but since Modal uses isolated styling I don't know how to do it. I tried also adding ::deep but it didn't change anything.

chrissainty commented 10 months ago

Have you tried adding the !important modifier to your CSS rules?

macias commented 10 months ago

Thank you very much, it did the trick :-).