Skip to content

Commit badf62a

Browse files
committed
docs(flex): combine examples for align-content
1 parent 5ae3649 commit badf62a

File tree

7 files changed

+27
-79
lines changed

7 files changed

+27
-79
lines changed

packages/docs/src/examples/flex/flex-align-content-around.vue

Lines changed: 0 additions & 14 deletions
This file was deleted.

packages/docs/src/examples/flex/flex-align-content-between.vue

Lines changed: 0 additions & 14 deletions
This file was deleted.

packages/docs/src/examples/flex/flex-align-content-center.vue

Lines changed: 0 additions & 14 deletions
This file was deleted.

packages/docs/src/examples/flex/flex-align-content-end.vue

Lines changed: 0 additions & 14 deletions
This file was deleted.

packages/docs/src/examples/flex/flex-align-content-start.vue

Lines changed: 0 additions & 14 deletions
This file was deleted.
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
<template>
2+
<v-container class="d-flex flex-wrap ga-6" fluid>
3+
<div v-for="variant in variants" :key="variant.value">
4+
<div class="text-caption mb-2">align-content-{{ variant.value }}</div>
5+
<v-sheet
6+
:class="`d-flex align-content-${variant.value} flex-wrap bg-surface-variant`"
7+
height="200"
8+
width="300"
9+
>
10+
<v-sheet v-for="n in 5" :key="n" class="ma-2 pa-2">
11+
Flex item
12+
</v-sheet>
13+
</v-sheet>
14+
</div>
15+
</v-container>
16+
</template>
17+
18+
<script setup>
19+
const variants = [
20+
{ value: 'start' },
21+
{ value: 'center' },
22+
{ value: 'end' },
23+
{ value: 'space-between' },
24+
{ value: 'space-around' },
25+
]
26+
</script>

packages/docs/src/pages/en/styles/flex.md

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -516,15 +516,7 @@ You can change the visual order of flex items with the `order` utilities.
516516

517517
The `align-content` flex setting can be changed using the flex align-content classes. This by default will modify the wrapped flexbox content across the **y-axis** but is reversed when using `flex-direction: column`, modifying the **x-axis**. Choose from `start`, `end`, `center`, `space-between`, `space-around`, `space-evenly` or `stretch` (browser default).
518518

519-
<ExamplesExample file="flex/flex-align-content-start" />
520-
521-
<ExamplesExample file="flex/flex-align-content-end" />
522-
523-
<ExamplesExample file="flex/flex-align-content-center" />
524-
525-
<ExamplesExample file="flex/flex-align-content-between" />
526-
527-
<ExamplesExample file="flex/flex-align-content-around" />
519+
<ExamplesExample file="flex/flex-align-content" />
528520

529521
## Flex grow and shrink
530522

0 commit comments

Comments
 (0)