mirror of
https://github.com/twbs/bootstrap.git
synced 2025-02-24 20:02:53 +01:00
Add space-evenly
option for justify-content
(#30910)
This commit is contained in:
parent
407b4c3606
commit
1f1b147f19
@ -177,6 +177,7 @@ $utilities: map-merge(
|
|||||||
center: center,
|
center: center,
|
||||||
between: space-between,
|
between: space-between,
|
||||||
around: space-around,
|
around: space-around,
|
||||||
|
evenly: space-evenly,
|
||||||
)
|
)
|
||||||
),
|
),
|
||||||
"align-items": (
|
"align-items": (
|
||||||
|
@ -122,6 +122,14 @@ Use flexbox alignment utilities to vertically and horizontally align columns.
|
|||||||
One of two columns
|
One of two columns
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
<div class="row justify-content-evenly">
|
||||||
|
<div class="col-4">
|
||||||
|
One of two columns
|
||||||
|
</div>
|
||||||
|
<div class="col-4">
|
||||||
|
One of two columns
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
{{< /example >}}
|
{{< /example >}}
|
||||||
|
|
||||||
|
@ -78,7 +78,7 @@ Responsive variations also exist for `flex-direction`.
|
|||||||
|
|
||||||
## Justify content
|
## Justify content
|
||||||
|
|
||||||
Use `justify-content` utilities on flexbox containers to change the alignment of flex items on the main axis (the x-axis to start, y-axis if `flex-direction: column`). Choose from `start` (browser default), `end`, `center`, `between`, or `around`.
|
Use `justify-content` utilities on flexbox containers to change the alignment of flex items on the main axis (the x-axis to start, y-axis if `flex-direction: column`). Choose from `start` (browser default), `end`, `center`, `between`, `around`, or `evenly`.
|
||||||
|
|
||||||
<div class="bd-example">
|
<div class="bd-example">
|
||||||
<div class="d-flex justify-content-start bd-highlight mb-3">
|
<div class="d-flex justify-content-start bd-highlight mb-3">
|
||||||
@ -106,6 +106,11 @@ Use `justify-content` utilities on flexbox containers to change the alignment of
|
|||||||
<div class="p-2 bd-highlight">Flex item</div>
|
<div class="p-2 bd-highlight">Flex item</div>
|
||||||
<div class="p-2 bd-highlight">Flex item</div>
|
<div class="p-2 bd-highlight">Flex item</div>
|
||||||
</div>
|
</div>
|
||||||
|
<div class="d-flex justify-content-evenly bd-highlight">
|
||||||
|
<div class="p-2 bd-highlight">Flex item</div>
|
||||||
|
<div class="p-2 bd-highlight">Flex item</div>
|
||||||
|
<div class="p-2 bd-highlight">Flex item</div>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{{< highlight html >}}
|
{{< highlight html >}}
|
||||||
@ -114,6 +119,7 @@ Use `justify-content` utilities on flexbox containers to change the alignment of
|
|||||||
<div class="d-flex justify-content-center">...</div>
|
<div class="d-flex justify-content-center">...</div>
|
||||||
<div class="d-flex justify-content-between">...</div>
|
<div class="d-flex justify-content-between">...</div>
|
||||||
<div class="d-flex justify-content-around">...</div>
|
<div class="d-flex justify-content-around">...</div>
|
||||||
|
<div class="d-flex justify-content-evenly">...</div>
|
||||||
{{< /highlight >}}
|
{{< /highlight >}}
|
||||||
|
|
||||||
Responsive variations also exist for `justify-content`.
|
Responsive variations also exist for `justify-content`.
|
||||||
@ -126,6 +132,7 @@ Responsive variations also exist for `justify-content`.
|
|||||||
- `.justify-content{{ .abbr }}-center`
|
- `.justify-content{{ .abbr }}-center`
|
||||||
- `.justify-content{{ .abbr }}-between`
|
- `.justify-content{{ .abbr }}-between`
|
||||||
- `.justify-content{{ .abbr }}-around`
|
- `.justify-content{{ .abbr }}-around`
|
||||||
|
- `.justify-content{{ .abbr }}-evenly`
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
{{< /flex.inline >}}
|
{{< /flex.inline >}}
|
||||||
{{< /markdown >}}
|
{{< /markdown >}}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user