Skip to content

Commit

Permalink
docs(border-radius): update doc page
Browse files Browse the repository at this point in the history
  • Loading branch information
johnleider committed Apr 3, 2024
1 parent 163821d commit 338fe86
Show file tree
Hide file tree
Showing 8 changed files with 248 additions and 130 deletions.
10 changes: 10 additions & 0 deletions packages/docs/src/examples/border-radius/misc-components.vue
@@ -0,0 +1,10 @@
<template>
<v-container class="text-center">
<v-btn
color="primary"
rounded="pill"
text="Update Account"
flat
></v-btn>
</v-container>
</template>
26 changes: 17 additions & 9 deletions packages/docs/src/examples/border-radius/misc-pill-and-circle.vue
@@ -1,11 +1,19 @@
<template>
<div class="d-flex justify-space-around">
<div
class="px-10 bg-secondary rounded-pill"
>
</div>
<div
class="pa-6 bg-secondary rounded-circle d-inline-block"
></div>
</div>
<v-container>
<v-row justify="space-around">
<v-col cols="auto">
<div class="text-center">
<div class="bg-surface-variant rounded-pill mx-auto" style="height: 64px; width: 164px;"></div>
<div class="text-caption">rounded-pill</div>
</div>
</v-col>

<v-col cols="auto">
<div class="text-center">
<div class="bg-surface-variant rounded-circle mx-auto" style="height: 64px; width: 64px;"></div>
<div class="text-caption">rounded-circle</div>
</div>
</v-col>
</v-row>
</v-container>
</template>
@@ -1,11 +1,10 @@
<template>
<div class="d-flex justify-space-around">
<div class="pa-4 text-center bg-secondary rounded-0">
.rounded-0
</div>

<div class="pa-4 text-center bg-secondary rounded-xl rounded-be-0">
.rounded-xl .rounded-be-0
</div>
</div>
<v-container class="text-center">
<v-btn
color="primary"
rounded="0"
text="Update Account"
flat
></v-btn>
</v-container>
</template>
40 changes: 40 additions & 0 deletions packages/docs/src/examples/border-radius/misc-rounded-corners.vue
@@ -0,0 +1,40 @@
<template>
<v-container>
<v-row justify="space-around">
<v-col cols="auto">
<div class="text-center">
<div class="bg-surface-variant rounded-sm mx-auto" style="height: 64px; width: 64px;"></div>
<div class="text-caption">rounded-sm</div>
</div>
</v-col>

<v-col cols="auto">
<div class="text-center">
<div class="bg-surface-variant rounded mx-auto" style="height: 64px; width: 64px;"></div>
<div class="text-caption">rounded</div>
</div>
</v-col>

<v-col cols="auto">
<div class="text-center">
<div class="bg-surface-variant rounded-md mx-auto" style="height: 64px; width: 64px;"></div>
<div class="text-caption">rounded-md</div>
</div>
</v-col>

<v-col cols="auto">
<div class="text-center">
<div class="bg-surface-variant rounded-lg mx-auto" style="height: 64px; width: 64px;"></div>
<div class="text-caption">rounded-lg</div>
</div>
</v-col>

<v-col cols="auto">
<div class="text-center">
<div class="bg-surface-variant rounded-xl mx-auto" style="height: 64px; width: 64px;"></div>
<div class="text-caption">rounded-xl</div>
</div>
</v-col>
</v-row>
</v-container>
</template>
@@ -1,19 +1,33 @@
<template>
<div class="d-flex justify-space-around">
<div class="pa-4 bg-secondary rounded-ts-xl">
.rounded-ts-xl
</div>
<v-container>
<v-row justify="space-around">
<v-col cols="auto">
<div class="text-center">
<div class="bg-surface-variant rounded-ts-lg mx-auto" style="height: 64px; width: 64px;"></div>
<div class="text-caption">rounded-ts-lg</div>
</div>
</v-col>

<div class="pa-4 bg-secondary rounded-te-xl">
.rounded-te-xl
</div>
<v-col cols="auto">
<div class="text-center">
<div class="bg-surface-variant rounded-te-lg mx-auto" style="height: 64px; width: 64px;"></div>
<div class="text-caption">rounded-te-lg</div>
</div>
</v-col>

<div class="pa-4 bg-secondary rounded-be-xl">
.rounded-be-xl
</div>
<v-col cols="auto">
<div class="text-center">
<div class="bg-surface-variant rounded-be-lg mx-auto" style="height: 64px; width: 64px;"></div>
<div class="text-caption">rounded-be-lg</div>
</div>
</v-col>

<div class="pa-4 bg-secondary rounded-bs-xl">
.rounded-bs-xl
</div>
</div>
<v-col cols="auto">
<div class="text-center">
<div class="bg-surface-variant rounded-bs-lg mx-auto" style="height: 64px; width: 64px;"></div>
<div class="text-caption">rounded-bs-lg</div>
</div>
</v-col>
</v-row>
</v-container>
</template>
42 changes: 28 additions & 14 deletions packages/docs/src/examples/border-radius/misc-rounding-by-side.vue
@@ -1,19 +1,33 @@
<template>
<div class="d-flex justify-space-around">
<div class="pa-4 bg-secondary rounded-t-xl">
.rounded-t-xl
</div>
<v-container>
<v-row justify="space-around">
<v-col cols="auto">
<div class="text-center">
<div class="bg-surface-variant rounded-t-lg mx-auto" style="height: 64px; width: 64px;"></div>
<div class="text-caption">rounded-t-lg</div>
</div>
</v-col>

<div class="pa-4 bg-secondary rounded-b-xl">
.rounded-b-xl
</div>
<v-col cols="auto">
<div class="text-center">
<div class="bg-surface-variant rounded-e-lg mx-auto" style="height: 64px; width: 64px;"></div>
<div class="text-caption">rounded-e-lg</div>
</div>
</v-col>

<div class="pa-4 bg-secondary rounded-s-xl">
.rounded-s-xl
</div>
<v-col cols="auto">
<div class="text-center">
<div class="bg-surface-variant rounded-b-lg mx-auto" style="height: 64px; width: 64px;"></div>
<div class="text-caption">rounded-b-lg</div>
</div>
</v-col>

<div class="pa-4 bg-secondary rounded-e-xl">
.rounded-e-xl
</div>
</div>
<v-col cols="auto">
<div class="text-center">
<div class="bg-surface-variant rounded-s-lg mx-auto" style="height: 64px; width: 64px;"></div>
<div class="text-caption">rounded-s-lg</div>
</div>
</v-col>
</v-row>
</v-container>
</template>
37 changes: 0 additions & 37 deletions packages/docs/src/examples/border-radius/usage.vue

This file was deleted.

0 comments on commit 338fe86

Please sign in to comment.