]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
Adding overflow visible as util
authorGaurav Behere <gaurav.techgeek@gmail.com>
Tue, 21 Jul 2020 08:24:38 +0000 (11:24 +0300)
committerXhmikosR <xhmikosr@gmail.com>
Tue, 13 Oct 2020 13:48:17 +0000 (16:48 +0300)
scss/_utilities.scss
site/content/docs/5.0/utilities/overflow.md

index 565c466c2fa2dede90a516b897aa0ebb54467b51..226c9143a1a1e2cb351c6e52e5a6659f910a59fa 100644 (file)
@@ -16,7 +16,7 @@ $utilities: map-merge(
     ),
     "overflow": (
       property: overflow,
-      values: auto hidden,
+      values: auto hidden visible scroll,
     ),
     "display": (
       responsive: true,
index f8ae2f3248ee65268dc2cb30be6a819393659185..b400db74e0711031fd11a1dfb1cff89045b8472d 100644 (file)
@@ -5,7 +5,7 @@ description: Use these shorthand utilities for quickly configuring how content o
 group: utilities
 ---
 
-Barebones `overflow` functionality is provided for two values by default, and they are not responsive.
+Barebones `overflow` functionality is provided for four values by default, and they are not responsive.
 
 <div class="bd-example d-md-flex">
   <div class="overflow-auto p-3 mb-3 mb-md-0 mr-md-3 bg-light" style="max-width: 260px; max-height: 100px;">
@@ -14,11 +14,19 @@ Barebones `overflow` functionality is provided for two values by default, and th
   <div class="overflow-hidden p-3 bg-light" style="max-width: 260px; max-height: 100px;">
     This is an example of using <code>.overflow-hidden</code> on an element with set width and height dimensions.
   </div>
+  <div class="overflow-visible p-3 bg-light" style="max-width: 260px; max-height: 100px;">
+    This is an example of using <code>.overflow-visible</code> on an element with set width and height dimensions.
+  </div>
+  <div class="overflow-scroll p-3 bg-light" style="max-width: 260px; max-height: 100px;">
+    This is an example of using <code>.overflow-scroll</code> on an element with set width and height dimensions.
+  </div>
 </div>
 
 {{< highlight html >}}
 <div class="overflow-auto">...</div>
 <div class="overflow-hidden">...</div>
+<div class="overflow-visible">...</div>
+<div class="overflow-scroll">...</div>
 {{< /highlight >}}
 
 Using Sass variables, you may customize the overflow utilities by changing the `$overflows` variable in `_variables.scss`.