I am working on something with Vuetify but I struggle to customize components.
In this example I added background-color: red
to class rounded-card
applied the class in two places but it only worked in v-card-media but the parent component applied only one property, the border-radius one and did not apply the background-color.
Why the style is not applied on both? How am I supposed to customize components styling?
<div id="app">
<v-app id="inspire">
<v-layout>
<v-flex xs12 sm6 offset-sm3>
<v-card flat class="rounded-card">
<v-card-media
class="white--text rounded-card"
height="200px"
src="https://vuetifyjs.com/static/doc-images/cards/docks.jpg"
>
<v-container fill-height fluid>
<v-layout fill-height>
<v-flex xs12 align-end flexbox>
<span class="headline">Top 10 Australian beaches</span>
</v-flex>
</v-layout>
</v-container>
</v-card-media>
<v-card-title>
<div>
<span class="grey--text">Number 10</span><br>
<span>Whitehaven Beach</span><br>
<span>Whitsunday Island, Whitsunday Islands</span>
</div>
</v-card-title>
<v-card-actions>
<v-btn flat color="orange">Share</v-btn>
<v-btn flat color="orange">Explore</v-btn>
</v-card-actions>
</v-card>
</v-flex>
</v-layout>
</v-app>
</div>
#app{
padding-top:1em;
}
.rounded-card{
border-radius:50px;
background-color: red;
}