diff --git a/site/data/sidebar.yml b/site/data/sidebar.yml index fcaffa4941..f4dd6c9ab3 100644 --- a/site/data/sidebar.yml +++ b/site/data/sidebar.yml @@ -117,6 +117,9 @@ icon_color: red pages: - title: API + - title: Align content + - title: Align items + - title: Align self - title: Aspect ratio - title: Background - title: Border @@ -126,10 +129,13 @@ - title: Flex - title: Float - title: Interactions + - title: Justify content + - title: Justify items - title: Link - title: Object fit - title: Opacity - title: Overflow + - title: Place items - title: Position - title: Shadows - title: Sizing diff --git a/site/src/content/docs/utilities/align-content.mdx b/site/src/content/docs/utilities/align-content.mdx new file mode 100644 index 0000000000..bda380635e --- /dev/null +++ b/site/src/content/docs/utilities/align-content.mdx @@ -0,0 +1,212 @@ +--- +title: Align content +description: Use align-content utilities to align flex items together on the cross axis. +toc: true +mdn: https://developer.mozilla.org/en-US/docs/Web/CSS/align-content +--- + +import { getData } from '@libs/data' + +## Overview + +Use `align-content` utilities on flexbox containers to align flex items _together_ on the cross axis. Choose from `start` (browser default), `end`, `center`, `between`, `around`, or `stretch`. To demonstrate these utilities, we've enforced `flex-wrap: wrap` and increased the number of flex items. + +**Heads up!** This property has no effect on single rows of flex items. + +## Basic usage + +### Start + +
+
+
Flex item
+
Flex item
+
Flex item
+
Flex item
+
Flex item
+
Flex item
+
Flex item
+
Flex item
+
Flex item
+
Flex item
+
Flex item
+
Flex item
+
Flex item
+
Flex item
+
Flex item
+
+
+ +```html +
...
+``` + +### End + +
+
+
Flex item
+
Flex item
+
Flex item
+
Flex item
+
Flex item
+
Flex item
+
Flex item
+
Flex item
+
Flex item
+
Flex item
+
Flex item
+
Flex item
+
Flex item
+
Flex item
+
Flex item
+
+
+ +```html +
...
+``` + +### Center + +
+
+
Flex item
+
Flex item
+
Flex item
+
Flex item
+
Flex item
+
Flex item
+
Flex item
+
Flex item
+
Flex item
+
Flex item
+
Flex item
+
Flex item
+
Flex item
+
Flex item
+
Flex item
+
+
+ +```html +
...
+``` + +### Between + +
+
+
Flex item
+
Flex item
+
Flex item
+
Flex item
+
Flex item
+
Flex item
+
Flex item
+
Flex item
+
Flex item
+
Flex item
+
Flex item
+
Flex item
+
Flex item
+
Flex item
+
Flex item
+
+
+ +```html +
...
+``` + +### Around + +
+
+
Flex item
+
Flex item
+
Flex item
+
Flex item
+
Flex item
+
Flex item
+
Flex item
+
Flex item
+
Flex item
+
Flex item
+
Flex item
+
Flex item
+
Flex item
+
Flex item
+
Flex item
+
+
+ +```html +
...
+``` + +### Stretch + +
+
+
Flex item
+
Flex item
+
Flex item
+
Flex item
+
Flex item
+
Flex item
+
Flex item
+
Flex item
+
Flex item
+
Flex item
+
Flex item
+
Flex item
+
Flex item
+
Flex item
+
Flex item
+
+
+ +```html +
...
+``` + +## Responsive + +Responsive variations also exist for `align-content`. + + + +## CSS + +### Sass utilities API + +Align content utilities are declared in our utilities API in `scss/_utilities.scss`. [Learn how to use the utilities API.]([[docsref:/utilities/api#using-the-api]]) + +```scss +"align-content": ( + responsive: true, + property: align-content, + values: ( + start: flex-start, + end: flex-end, + center: center, + between: space-between, + around: space-around, + stretch: stretch, + ) +), +``` diff --git a/site/src/content/docs/utilities/align-items.mdx b/site/src/content/docs/utilities/align-items.mdx new file mode 100644 index 0000000000..58b8b010fb --- /dev/null +++ b/site/src/content/docs/utilities/align-items.mdx @@ -0,0 +1,88 @@ +--- +title: Align items +description: Use align-items utilities to change the alignment of flex items on the cross axis. +toc: true +mdn: https://developer.mozilla.org/en-US/docs/Web/CSS/align-items +--- + +import { getData } from '@libs/data' + +## Overview + +Use `align-items` utilities on flexbox containers to change the alignment of flex items on the cross axis (the y-axis to start, x-axis if `flex-direction: column`). Choose from `start`, `end`, `center`, `baseline`, or `stretch` (browser default). + +## Basic usage + +
+
+
Flex item
+
Flex item
+
Flex item
+
+
+
Flex item
+
Flex item
+
Flex item
+
+
+
Flex item
+
Flex item
+
Flex item
+
+
+
Flex item
+
Flex item
+
Flex item
+
+
+
Flex item
+
Flex item
+
Flex item
+
+
+ +```html +
...
+
...
+
...
+
...
+
...
+``` + +## Responsive + +Responsive variations also exist for `align-items`. + + + +## CSS + +### Sass utilities API + +Align items utilities are declared in our utilities API in `scss/_utilities.scss`. [Learn how to use the utilities API.]([[docsref:/utilities/api#using-the-api]]) + +```scss +"align-items": ( + responsive: true, + property: align-items, + values: ( + start: flex-start, + end: flex-end, + center: center, + baseline: baseline, + stretch: stretch, + ) +), +``` diff --git a/site/src/content/docs/utilities/align-self.mdx b/site/src/content/docs/utilities/align-self.mdx new file mode 100644 index 0000000000..b5ff495cd8 --- /dev/null +++ b/site/src/content/docs/utilities/align-self.mdx @@ -0,0 +1,89 @@ +--- +title: Align self +description: Use align-self utilities to individually change the alignment of flex items on the cross axis. +toc: true +mdn: https://developer.mozilla.org/en-US/docs/Web/CSS/align-self +--- + +import { getData } from '@libs/data' + +## Overview + +Use `align-self` utilities on flexbox items to individually change their alignment on the cross axis (the y-axis to start, x-axis if `flex-direction: column`). Choose from the same options as `align-items`: `start`, `end`, `center`, `baseline`, or `stretch` (browser default). + +## Basic usage + +
+
+
Flex item
+
Aligned flex item
+
Flex item
+
+
+
Flex item
+
Aligned flex item
+
Flex item
+
+
+
Flex item
+
Aligned flex item
+
Flex item
+
+
+
Flex item
+
Aligned flex item
+
Flex item
+
+
+
Flex item
+
Aligned flex item
+
Flex item
+
+
+ +```html +
Aligned flex item
+
Aligned flex item
+
Aligned flex item
+
Aligned flex item
+
Aligned flex item
+``` + +## Responsive + +Responsive variations also exist for `align-self`. + + + +## CSS + +### Sass utilities API + +Align self utilities are declared in our utilities API in `scss/_utilities.scss`. [Learn how to use the utilities API.]([[docsref:/utilities/api#using-the-api]]) + +```scss +"align-self": ( + responsive: true, + property: align-self, + values: ( + auto: auto, + start: flex-start, + end: flex-end, + center: center, + baseline: baseline, + stretch: stretch, + ) +), +``` diff --git a/site/src/content/docs/utilities/flex.mdx b/site/src/content/docs/utilities/flex.mdx index 0b0e562c93..28213491f9 100644 --- a/site/src/content/docs/utilities/flex.mdx +++ b/site/src/content/docs/utilities/flex.mdx @@ -49,7 +49,7 @@ Use `.flex-row` to set a horizontal direction (the browser default), or `.flex-r
Flex item 3
`} /> -Use `.flex-column` to set a vertical direction, or `.flex-column-reverse` to start the vertical direction from the opposite side. +Use `.flex-column` to set a vertical direction, or `.flex-column-reverse` to start the vertical direction from the opposite side.
Flex item 1
@@ -65,191 +65,14 @@ Use `.flex-column` to set a vertical direction, or `.flex-column-reverse` to st Responsive variations also exist for `flex-direction`. - -## 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`, `around`, or `evenly`. - -
-
-
Justify
-
Content
-
Start
-
-
-
Justify
-
Content
-
End
-
-
-
Justify
-
Content
-
Center
-
-
-
Justify
-
Content
-
Between
-
-
-
Justify
-
Content
-
Around
-
-
-
Justify
-
Content
-
Evenly
-
-
- -```html -
...
-
...
-
...
-
...
-
...
-
...
-``` - -Responsive variations also exist for `justify-content`. - - - -## Align items - -Use `align-items` utilities on flexbox containers to change the alignment of flex items on the cross axis (the y-axis to start, x-axis if `flex-direction: column`). Choose from `start`, `end`, `center`, `baseline`, or `stretch` (browser default). - -
-
-
Flex item
-
Flex item
-
Flex item
-
-
-
Flex item
-
Flex item
-
Flex item
-
-
-
Flex item
-
Flex item
-
Flex item
-
-
-
Flex item
-
Flex item
-
Flex item
-
-
-
Flex item
-
Flex item
-
Flex item
-
-
- -```html -
...
-
...
-
...
-
...
-
...
-``` - -Responsive variations also exist for `align-items`. - - - -## Align self - -Use `align-self` utilities on flexbox items to individually change their alignment on the cross axis (the y-axis to start, x-axis if `flex-direction: column`). Choose from the same options as `align-items`: `start`, `end`, `center`, `baseline`, or `stretch` (browser default). - -
-
-
Flex item
-
Aligned flex item
-
Flex item
-
-
-
Flex item
-
Aligned flex item
-
Flex item
-
-
-
Flex item
-
Aligned flex item
-
Flex item
-
-
-
Flex item
-
Aligned flex item
-
Flex item
-
-
-
Flex item
-
Aligned flex item
-
Flex item
-
-
- -```html -
Aligned flex item
-
Aligned flex item
-
Aligned flex item
-
Aligned flex item
-
Aligned flex item
-``` - -Responsive variations also exist for `align-self`. - - ## Fill @@ -267,14 +90,14 @@ Responsive variations also exist for `flex-fill`. ## Grow and shrink -Use `.flex-grow-*` utilities to toggle a flex item’s ability to grow to fill available space. In the example below, the `.flex-grow-1` elements uses all available space it can, while allowing the remaining two flex items their necessary space. +Use `.flex-grow-*` utilities to toggle a flex item's ability to grow to fill available space. In the example below, the `.flex-grow-1` elements uses all available space it can, while allowing the remaining two flex items their necessary space.
Flex item
@@ -282,7 +105,7 @@ Use `.flex-grow-*` utilities to toggle a flex item’s ability to grow to fill a
Third flex item
`} /> -Use `.flex-shrink-*` utilities to toggle a flex item’s ability to shrink if necessary. In the example below, the second flex item with `.flex-shrink-1` is forced to wrap its contents to a new line, “shrinking” to allow more space for the previous flex item with `.w-100`. +Use `.flex-shrink-*` utilities to toggle a flex item's ability to shrink if necessary. In the example below, the second flex item with `.flex-shrink-1` is forced to wrap its contents to a new line, "shrinking" to allow more space for the previous flex item with `.w-100`.
Flex item
@@ -294,52 +117,16 @@ Responsive variations also exist for `flex-grow` and `flex-shrink`.
    {getData('breakpoints').map((breakpoint) => { return ( - -
  • .flex{breakpoint.abbr}-{'{'}grow|shrink{'}'}-0
  • -
  • .flex{breakpoint.abbr}-{'{'}grow|shrink{'}'}-1
  • + +
  • .flex{breakpoint.abbr}-grow-0
  • +
  • .flex{breakpoint.abbr}-grow-1
  • +
  • .flex{breakpoint.abbr}-shrink-0
  • +
  • .flex{breakpoint.abbr}-shrink-1
  • ) })}
-## Auto margins - -Flexbox can do some pretty awesome things when you mix flex alignments with auto margins. Shown below are three examples of controlling flex items via auto margins: default (no auto margin), pushing two items to the right (`.me-auto`), and pushing two items to the left (`.ms-auto`). - - -
Flex item
-
Flex item
-
Flex item
- - -
-
Flex item
-
Flex item
-
Flex item
-
- -
-
Flex item
-
Flex item
-
Flex item
-
`} /> - -### With align-items - -Vertically move one flex item to the top or bottom of a container by mixing `align-items`, `flex-direction: column`, and `margin-top: auto` or `margin-bottom: auto`. - - -
Flex item
-
Flex item
-
Flex item
- - -
-
Flex item
-
Flex item
-
Flex item
-
`} /> - ## Wrap Change how flex items wrap in a flex container. Choose from no wrapping at all (the browser default) with `.flex-nowrap`, wrapping with `.flex-wrap`, or reverse wrapping with `.flex-wrap-reverse`. @@ -415,7 +202,7 @@ Responsive variations also exist for `flex-wrap`.
    {getData('breakpoints').map((breakpoint) => { return ( - +
  • .flex{breakpoint.abbr}-nowrap
  • .flex{breakpoint.abbr}-wrap
  • .flex{breakpoint.abbr}-wrap-reverse
  • @@ -424,335 +211,10 @@ Responsive variations also exist for `flex-wrap`. })}
-## Order - -Change the _visual_ order of specific flex items with a handful of `order` utilities. We only provide options for making an item first or last, as well as a reset to use the DOM order. As `order` takes any integer value from 0 to 5, add custom CSS for any additional values needed. - - -
First flex item
-
Second flex item
-
Third flex item
- `} /> - -Responsive variations also exist for `order`. - -
    -{getData('breakpoints').map((breakpoint) => getSequence(0, 5).map((value) => { - return ( -
  • .order{breakpoint.abbr}-{value}
  • - ) -}))} -
- -Additionally there are also responsive `.order-first` and `.order-last` classes that change the `order` of an element by applying `order: -1` and `order: 6`, respectively. - -
    -{getData('breakpoints').map((breakpoint) => ['first', 'last'].map((value) => { - return ( -
  • .order{breakpoint.abbr}-{value}
  • - ) -}))} -
- -## Align content - -Use `align-content` utilities on flexbox containers to align flex items _together_ on the cross axis. Choose from `start` (browser default), `end`, `center`, `between`, `around`, or `stretch`. To demonstrate these utilities, we’ve enforced `flex-wrap: wrap` and increased the number of flex items. - -**Heads up!** This property has no effect on single rows of flex items. - -
-
-
Flex item
-
Flex item
-
Flex item
-
Flex item
-
Flex item
-
Flex item
-
Flex item
-
Flex item
-
Flex item
-
Flex item
-
Flex item
-
Flex item
-
Flex item
-
Flex item
-
Flex item
-
-
- -```html -
- ... -
-``` - -
-
-
Flex item
-
Flex item
-
Flex item
-
Flex item
-
Flex item
-
Flex item
-
Flex item
-
Flex item
-
Flex item
-
Flex item
-
Flex item
-
Flex item
-
Flex item
-
Flex item
-
Flex item
-
-
- -```html -
...
-``` - -
-
-
Flex item
-
Flex item
-
Flex item
-
Flex item
-
Flex item
-
Flex item
-
Flex item
-
Flex item
-
Flex item
-
Flex item
-
Flex item
-
Flex item
-
Flex item
-
Flex item
-
Flex item
-
-
- -```html -
...
-``` - -
-
-
Flex item
-
Flex item
-
Flex item
-
Flex item
-
Flex item
-
Flex item
-
Flex item
-
Flex item
-
Flex item
-
Flex item
-
Flex item
-
Flex item
-
Flex item
-
Flex item
-
Flex item
-
-
- -```html -
...
-``` - -
-
-
Flex item
-
Flex item
-
Flex item
-
Flex item
-
Flex item
-
Flex item
-
Flex item
-
Flex item
-
Flex item
-
Flex item
-
Flex item
-
Flex item
-
Flex item
-
Flex item
-
Flex item
-
-
- -```html -
...
-``` - -
-
-
Flex item
-
Flex item
-
Flex item
-
Flex item
-
Flex item
-
Flex item
-
Flex item
-
Flex item
-
Flex item
-
Flex item
-
Flex item
-
Flex item
-
Flex item
-
Flex item
-
Flex item
-
-
- -```html -
...
-``` - -Responsive variations also exist for `align-content`. - -
    -{getData('breakpoints').map((breakpoint) => { - return ( - -
  • .align-content{breakpoint.abbr}-start
  • -
  • .align-content{breakpoint.abbr}-end
  • -
  • .align-content{breakpoint.abbr}-center
  • -
  • .align-content{breakpoint.abbr}-between
  • -
  • .align-content{breakpoint.abbr}-around
  • -
  • .align-content{breakpoint.abbr}-stretch
  • -
    - ) -})} -
- -## CSS Grid utilities - -While most of the utilities above apply to flexbox containers, Bootstrap also includes utilities specifically for CSS Grid layouts. - -### Justify items - -Use `justify-items` utilities on CSS Grid containers to change the alignment of grid items along the inline (row) axis. Choose from `start`, `end`, `center`, or `stretch` (browser default). - -
-
-
Grid item
-
Grid item
-
Grid item
-
-
-
Grid item
-
Grid item
-
Grid item
-
-
-
Grid item
-
Grid item
-
Grid item
-
-
-
Grid item
-
Grid item
-
Grid item
-
-
- -```html -
...
-
...
-
...
-
...
-``` - -Responsive variations also exist for `justify-items`. - -
    -{getData('breakpoints').map((breakpoint) => { - return ( - -
  • .justify-items{breakpoint.abbr}-start
  • -
  • .justify-items{breakpoint.abbr}-end
  • -
  • .justify-items{breakpoint.abbr}-center
  • -
  • .justify-items{breakpoint.abbr}-stretch
  • -
    - ) -})} -
- -### Place items - -Use `place-items` utilities on CSS Grid containers as a shorthand to set both `align-items` and `justify-items` at once. Choose from `start`, `end`, `center`, or `stretch` (browser default). - -
-
-
Grid item
-
Grid item
-
Grid item
-
-
-
Grid item
-
Grid item
-
Grid item
-
-
-
Grid item
-
Grid item
-
Grid item
-
-
-
Grid item
-
Grid item
-
Grid item
-
-
- -```html -
...
-
...
-
...
-
...
-``` - -Responsive variations also exist for `place-items`. - -
    -{getData('breakpoints').map((breakpoint) => { - return ( - -
  • .place-items{breakpoint.abbr}-start
  • -
  • .place-items{breakpoint.abbr}-end
  • -
  • .place-items{breakpoint.abbr}-center
  • -
  • .place-items{breakpoint.abbr}-stretch
  • -
    - ) -})} -
- -## Media object - -Looking to replicate the [media object component](https://getbootstrap.com/docs/4.6/components/media-object/) from Bootstrap 4? Recreate it in no time with a few flex utilities that allow even more flexibility and customization than before. - - -
- -
-
- This is some content from a media component. You can replace this with any content and adjust it as needed. -
- `} /> - -And say you want to vertically center the content next to the image: - - -
- -
-
- This is some content from a media component. You can replace this with any content and adjust it as needed. -
- `} /> - ## CSS ### Sass utilities API -Flexbox and CSS Grid utilities are declared in our utilities API in `scss/_utilities.scss`. [Learn how to use the utilities API.]([[docsref:/utilities/api#using-the-api]]) +Flexbox utilities are declared in our utilities API in `scss/_utilities.scss`. [Learn how to use the utilities API.]([[docsref:/utilities/api#using-the-api]]) diff --git a/site/src/content/docs/utilities/justify-content.mdx b/site/src/content/docs/utilities/justify-content.mdx new file mode 100644 index 0000000000..e61fe278d7 --- /dev/null +++ b/site/src/content/docs/utilities/justify-content.mdx @@ -0,0 +1,96 @@ +--- +title: Justify content +description: Use justify-content utilities to change the alignment of flex items on the main axis. +toc: true +mdn: https://developer.mozilla.org/en-US/docs/Web/CSS/justify-content +--- + +import { getData } from '@libs/data' + +## Overview + +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`. + +## Basic usage + +
+
+
Justify
+
Content
+
Start
+
+
+
Justify
+
Content
+
End
+
+
+
Justify
+
Content
+
Center
+
+
+
Justify
+
Content
+
Between
+
+
+
Justify
+
Content
+
Around
+
+
+
Justify
+
Content
+
Evenly
+
+
+ +```html +
...
+
...
+
...
+
...
+
...
+
...
+``` + +## Responsive + +Responsive variations also exist for `justify-content`. + +
    +{getData('breakpoints').map((breakpoint) => { + return ( + +
  • .justify-content{breakpoint.abbr}-start
  • +
  • .justify-content{breakpoint.abbr}-end
  • +
  • .justify-content{breakpoint.abbr}-center
  • +
  • .justify-content{breakpoint.abbr}-between
  • +
  • .justify-content{breakpoint.abbr}-around
  • +
  • .justify-content{breakpoint.abbr}-evenly
  • +
    + ) +})} +
+ +## CSS + +### Sass utilities API + +Justify content utilities are declared in our utilities API in `scss/_utilities.scss`. [Learn how to use the utilities API.]([[docsref:/utilities/api#using-the-api]]) + +```scss +"justify-content": ( + responsive: true, + property: justify-content, + values: ( + start: flex-start, + end: flex-end, + center: center, + between: space-between, + around: space-around, + evenly: space-evenly, + ) +), +``` diff --git a/site/src/content/docs/utilities/justify-items.mdx b/site/src/content/docs/utilities/justify-items.mdx new file mode 100644 index 0000000000..0540a4b2f5 --- /dev/null +++ b/site/src/content/docs/utilities/justify-items.mdx @@ -0,0 +1,82 @@ +--- +title: Justify items +description: Use justify-items utilities to control the alignment of grid items along the inline axis (horizontally, in most writing modes). +toc: true +mdn: https://developer.mozilla.org/en-US/docs/Web/CSS/justify-items +--- + +import { getData } from '@libs/data' + +## Overview + +Use `justify-items` utilities on CSS Grid containers to change the alignment of grid items along the inline (row) axis. This property controls how grid items are positioned horizontally within their grid areas. + +## Basic usage + +Use `justify-items` utilities to control the horizontal alignment of grid items. Choose from `start`, `end`, `center`, or `stretch` (browser default). + +
+
+
Grid item
+
Grid item
+
Grid item
+
+
+
Grid item
+
Grid item
+
Grid item
+
+
+
Grid item
+
Grid item
+
Grid item
+
+
+
Grid item
+
Grid item
+
Grid item
+
+
+ +```html +
...
+
...
+
...
+
...
+``` + +## Responsive + +Responsive variations also exist for `justify-items`. + +
    +{getData('breakpoints').map((breakpoint) => { + return ( + +
  • .justify-items{breakpoint.abbr}-start
  • +
  • .justify-items{breakpoint.abbr}-end
  • +
  • .justify-items{breakpoint.abbr}-center
  • +
  • .justify-items{breakpoint.abbr}-stretch
  • +
    + ) +})} +
+ +## CSS + +### Sass utilities API + +Justify items utilities are declared in our utilities API in `scss/_utilities.scss`. [Learn how to use the utilities API.]([[docsref:/utilities/api#using-the-api]]) + +```scss +"justify-items": ( + responsive: true, + property: justify-items, + values: ( + start: start, + end: end, + center: center, + stretch: stretch, + ) +), +``` diff --git a/site/src/content/docs/utilities/place-items.mdx b/site/src/content/docs/utilities/place-items.mdx new file mode 100644 index 0000000000..87413eb8ae --- /dev/null +++ b/site/src/content/docs/utilities/place-items.mdx @@ -0,0 +1,82 @@ +--- +title: Place items +description: Use place-items utilities to control the alignment of grid items within their grid areas on both the block and inline axes simultaneously. +toc: true +mdn: https://developer.mozilla.org/en-US/docs/Web/CSS/place-items +--- + +import { getData } from '@libs/data' + +## Overview + +Use `place-items` utilities on CSS Grid containers as a shorthand to set both `align-items` and `justify-items` at once. This property controls how grid items are positioned within their grid areas on both axes. + +## Basic usage + +Use `place-items` utilities to control the alignment of grid items. Choose from `start`, `end`, `center`, or `stretch` (browser default). + +
+
+
Grid item
+
Grid item
+
Grid item
+
+
+
Grid item
+
Grid item
+
Grid item
+
+
+
Grid item
+
Grid item
+
Grid item
+
+
+
Grid item
+
Grid item
+
Grid item
+
+
+ +```html +
...
+
...
+
...
+
...
+``` + +## Responsive + +Responsive variations also exist for `place-items`. + +
    +{getData('breakpoints').map((breakpoint) => { + return ( + +
  • .place-items{breakpoint.abbr}-start
  • +
  • .place-items{breakpoint.abbr}-end
  • +
  • .place-items{breakpoint.abbr}-center
  • +
  • .place-items{breakpoint.abbr}-stretch
  • +
    + ) +})} +
+ +## CSS + +### Sass utilities API + +Place items utilities are declared in our utilities API in `scss/_utilities.scss`. [Learn how to use the utilities API.]([[docsref:/utilities/api#using-the-api]]) + +```scss +"place-items": ( + responsive: true, + property: place-items, + values: ( + start: start, + end: end, + center: center, + stretch: stretch, + ) +), +```