vitogit / vue-chessboard

Chessboard vue component to load positions, create positions and see threats
http://vitomd.com/vue-chessboard-examples/
GNU General Public License v3.0
165 stars 50 forks source link

Using with Vuetify #22

Closed mcasto closed 3 years ago

mcasto commented 3 years ago

I encountered an interesting situation (at least to me).

If I set up vue-chessboard on a page running vuetify (e.g.: inside the v-app tag), the css/graphics don't play nicely.

Screen Shot 2020-12-01 at 12 01 51 AM

I realize I could pull that page out of the vuetify framework and run it as a vanilla vue page, but I wonder if it's possible to resolve it within the vuetify framework.

Any ideas?

mcasto commented 3 years ago

With a little further exploration in DevTools, I was able to fix this by turning off background-color of the ".v-application .white" and ".v-application .black" properties, but I can't figure out how to do that programmatically.

Setting those properties to background-color:transparent !important in my <style> section doesn't do anything.

mcasto commented 3 years ago

Ah hah!

By stepping the css down to affect the <div id='app'> component, I resolved it.

<style>
#app .white{
background-color: transparent !important;
}

#app .black{
background-color: transparent !important;
}
</style>
mcasto commented 3 years ago

And, of course, by modifying #app .blue, I'm able to remove the blue background.