@@ -29,6 +32,62 @@ Adjust the `overflow` property on the fly with four default values and classes.
...
```
+### `overflow-x`
+
+Adjust the `overflow-x` property to affect the overflow of content horizontally.
+
+
+
+
.overflow-x-auto
example on an element
+
with set width and height dimensions.
+
+
+
.overflow-x-hidden
example
+
on an element with set width and height dimensions.
+
+
+
.overflow-x-visible
example
+
on an element with set width and height dimensions.
+
+
+
+
+```html
+
...
+
...
+
...
+
...
+```
+
+### `overflow-y`
+
+Adjust the `overflow-y` property to affect the overflow of content vertically.
+
+
+
+ .overflow-y-auto
example on an element with set width and height dimensions.
+
+
+ .overflow-y-hidden
example on an element with set width and height dimensions.
+
+
+ .overflow-y-visible
example on an element with set width and height dimensions.
+
+
+ .overflow-y-scroll
example on an element with set width and height dimensions.
+
+
+
+```html
+
...
+
...
+
...
+
...
+```
+
Using Sass variables, you may customize the overflow utilities by changing the `$overflows` variable in `_variables.scss`.
## Sass
diff --git a/site/data/sidebar.yml b/site/data/sidebar.yml
index 2b7fddfd4f92..c35631add422 100644
--- a/site/data/sidebar.yml
+++ b/site/data/sidebar.yml
@@ -123,6 +123,7 @@
- title: Flex
- title: Float
- title: Interactions
+ - title: Object fit
- title: Opacity
- title: Overflow
- title: Position
diff --git a/site/layouts/shortcodes/example.html b/site/layouts/shortcodes/example.html
index c6dcddbe0d48..122dc1a156b5 100644
--- a/site/layouts/shortcodes/example.html
+++ b/site/layouts/shortcodes/example.html
@@ -17,6 +17,7 @@
{{- $show_markup := .Get "show_markup" | default true -}}
{{- $show_preview := .Get "show_preview" | default true -}}
{{- $input := .Inner -}}
+{{- $content := .Inner -}}
{{- if eq $show_preview true -}}
@@ -40,7 +41,8 @@
{{- end -}}
- {{- $content := replaceRE `