by murkt · 2y ago · 0 comments
I also really liked an idea about class-less CSS frameworks, as I was frustrated with all the `<table class="table">` and so on. Then I've tried it for one project where I had to integrate Leaflet map on a page. And it's just not possible to do with class-less CSS frameworks.
Since then I write `<table class="table">` and have zero problems with that.
#map{
foo: initial
}
#map *{
foo: initial
}
For the styles that are a problem? That’s maybe 10 properties you need to remove?Another solution might be packing the map in a shadow element so that it doesn't get affected by the page CSS.