-
-
Notifications
You must be signed in to change notification settings - Fork 7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs(flex): switch examples to plain markup (#14559)
- Loading branch information
Showing
4 changed files
with
112 additions
and
125 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,39 +1,87 @@ | ||
<template> | ||
<div> | ||
<v-card | ||
v-for="j in justify" | ||
:key="j" | ||
class="d-flex mb-6" | ||
color="grey lighten-2" | ||
flat | ||
height="100" | ||
tile | ||
> | ||
<v-card | ||
v-for="n in 3" | ||
:key="n" | ||
class="pa-2" | ||
:class="[n === 2 && `align-self-${j}`]" | ||
outlined | ||
tile | ||
> | ||
{{ n === 2 ? 'Aligned flex item' : 'Flex item' }} | ||
<v-card class="d-flex mb-6" color="grey lighten-2" flat height="100" tile> | ||
<v-card class="pa-2" outlined tile> | ||
flex item | ||
</v-card> | ||
|
||
<v-card class="pa-2 align-self-start" outlined tile> | ||
Aligned start | ||
</v-card> | ||
|
||
<v-card class="pa-2" outlined tile> | ||
flex item | ||
</v-card> | ||
</v-card> | ||
|
||
<v-card class="d-flex mb-6" color="grey lighten-2" flat height="100" tile> | ||
<v-card class="pa-2" outlined tile> | ||
flex item | ||
</v-card> | ||
|
||
<v-card class="pa-2 align-self-center" outlined tile> | ||
Aligned center | ||
</v-card> | ||
|
||
<v-card class="pa-2" outlined tile> | ||
flex item | ||
</v-card> | ||
</v-card> | ||
|
||
<v-card class="d-flex mb-6" color="grey lighten-2" flat height="100" tile> | ||
<v-card class="pa-2" outlined tile> | ||
flex item | ||
</v-card> | ||
|
||
<v-card class="pa-2 align-self-end" outlined tile> | ||
Aligned end | ||
</v-card> | ||
|
||
<v-card class="pa-2" outlined tile> | ||
flex item | ||
</v-card> | ||
</v-card> | ||
|
||
<v-card class="d-flex mb-6" color="grey lighten-2" flat height="100" tile> | ||
<v-card class="pa-2" outlined tile> | ||
flex item | ||
</v-card> | ||
|
||
<v-card class="pa-2 align-self-baseline" outlined tile> | ||
Aligned baseline | ||
</v-card> | ||
|
||
<v-card class="pa-2" outlined tile> | ||
flex item | ||
</v-card> | ||
</v-card> | ||
|
||
<v-card class="d-flex mb-6" color="grey lighten-2" flat height="100" tile> | ||
<v-card class="pa-2" outlined tile> | ||
flex item | ||
</v-card> | ||
|
||
<v-card class="pa-2 align-self-auto" outlined tile> | ||
Aligned auto | ||
</v-card> | ||
|
||
<v-card class="pa-2" outlined tile> | ||
flex item | ||
</v-card> | ||
</v-card> | ||
|
||
<v-card class="d-flex mb-6" color="grey lighten-2" flat height="100" tile> | ||
<v-card class="pa-2" outlined tile> | ||
flex item | ||
</v-card> | ||
|
||
<v-card class="pa-2 align-self-stretch" outlined tile> | ||
Aligned stretch | ||
</v-card> | ||
|
||
<v-card class="pa-2" outlined tile> | ||
flex item | ||
</v-card> | ||
</v-card> | ||
</div> | ||
</template> | ||
|
||
<script> | ||
export default { | ||
data: () => ({ | ||
justify: [ | ||
'start', | ||
'end', | ||
'center', | ||
'baseline', | ||
'auto', | ||
'stretch', | ||
], | ||
}), | ||
} | ||
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,32 +1,11 @@ | ||
<template> | ||
<div> | ||
<v-card | ||
class="d-flex flex-wrap-reverse" | ||
color="grey lighten-2" | ||
flat | ||
tile | ||
> | ||
<v-card | ||
class="order-3 pa-2" | ||
outlined | ||
tile | ||
> | ||
First flex item | ||
</v-card> | ||
<v-card | ||
class="order-2 pa-2" | ||
outlined | ||
tile | ||
> | ||
Second flex item | ||
</v-card> | ||
<v-card | ||
class="order-1 pa-2" | ||
outlined | ||
tile | ||
> | ||
Third flex item | ||
</v-card> | ||
<v-card class="d-flex flex-wrap-reverse" color="grey lighten-2" flat tile> | ||
<v-card class="order-3 pa-2" outlined tile> First flex item </v-card> | ||
|
||
<v-card class="order-2 pa-2" outlined tile> Second flex item </v-card> | ||
|
||
<v-card class="order-1 pa-2" outlined tile> Third flex item </v-card> | ||
</v-card> | ||
</div> | ||
</template> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,56 +1,25 @@ | ||
<template> | ||
<div> | ||
<v-card | ||
class="d-flex mb-6" | ||
color="grey lighten-2" | ||
flat | ||
tile | ||
> | ||
<v-card | ||
v-for="n in 3" | ||
:key="n" | ||
class="pa-2" | ||
outlined | ||
tile | ||
> | ||
<v-card class="d-flex mb-6" color="grey lighten-2" flat tile> | ||
<v-card v-for="n in 3" :key="n" class="pa-2" outlined tile> | ||
Flex item | ||
</v-card> | ||
</v-card> | ||
|
||
<v-card | ||
class="d-flex mb-6" | ||
color="grey lighten-2" | ||
flat | ||
tile | ||
> | ||
<v-card | ||
v-for="n in 3" | ||
:key="n" | ||
:class="n === 1 && 'mr-auto'" | ||
class="pa-2" | ||
outlined | ||
tile | ||
> | ||
Flex item | ||
</v-card> | ||
<v-card class="d-flex mb-6" color="grey lighten-2" flat tile> | ||
<v-card class="pa-2 mr-auto" outlined tile> Flex item </v-card> | ||
|
||
<v-card class="pa-2" outlined tile> Flex item </v-card> | ||
|
||
<v-card class="pa-2" outlined tile> Flex item </v-card> | ||
</v-card> | ||
|
||
<v-card | ||
class="d-flex mb-6" | ||
color="grey lighten-2" | ||
flat | ||
tile | ||
> | ||
<v-card | ||
v-for="n in 3" | ||
:key="n" | ||
:class="n === 3 && 'ml-auto'" | ||
class="pa-2" | ||
outlined | ||
tile | ||
> | ||
Flex item | ||
</v-card> | ||
<v-card class="d-flex" color="grey lighten-2" flat tile> | ||
<v-card class="pa-2" outlined tile> Flex item </v-card> | ||
|
||
<v-card class="pa-2" outlined tile> Flex item </v-card> | ||
|
||
<v-card class="pa-2 ml-auto" outlined tile> Flex item </v-card> | ||
</v-card> | ||
</div> | ||
</template> |