vuetify v-card only two rounded corners
·
Answer a question
I would like to have a v-card where only two corners are rounded. I tried the following but it didn't work (the card is rotated by 90°).
TEMPLATE:
<div class="text-center rotate-ninety ml-n6">
<v-card
hover
ripple
class="rounded-card py-5 px-2"
elevation="10"
color="orange"
>
<v-icon
color="black"
left
>
mdi-domain
</v-icon>
<span class="black--text">
Domain
</span>
</v-card>
</div>
CSS:
.rotate-ninety {
writing-mode: vertical-rl;
text-orientation: mixed;
}
.rounded-card {
border-top-left-radius: 25px;
border-top-right-radius: 25px;
border-bottom-left-radius: 0px;
border-bottom-right-radius: 0px;
}
Do i miss something?
Thanks a lot Chris
Answers
Use Vuetify's own in-built helper classes for border radius.
To achieve a top-rounded card: <v-card tile class="rounded-tr rounded-tl">
更多推荐
所有评论(0)