]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
docs(Modal): Add xxl fullscreen example (#31583)
authorKyle Tsang <6854874+kyletsang@users.noreply.github.com>
Tue, 29 Sep 2020 18:56:01 +0000 (11:56 -0700)
committerGitHub <noreply@github.com>
Tue, 29 Sep 2020 18:56:01 +0000 (21:56 +0300)
* docs(Modal): Add xxl fullscreen example

* Update modal.md

Co-authored-by: XhmikosR <xhmikosr@gmail.com>
site/content/docs/5.0/components/modal.md

index bb00382a26b274d5e7870b3031918a578ebbe09f..d1815e1703f4ac605f9b99a11f9825329a0c5470 100644 (file)
@@ -683,6 +683,10 @@ Another override is the option to pop up a modal that covers the user viewport,
       <td><code>.modal-fullscreen-xl-down</code></td>
       <td>Below <code>1200px</code></td>
     </tr>
+    <tr>
+      <td><code>.modal-fullscreen-xxl-down</code></td>
+      <td>Below <code>1400px</code></td>
+    </tr>
   </tbody>
 </table>
 
@@ -692,6 +696,7 @@ Another override is the option to pop up a modal that covers the user viewport,
   <button type="button" class="btn btn-primary" data-toggle="modal" data-target="#exampleModalFullscreenMd">Full screen below md</button>
   <button type="button" class="btn btn-primary" data-toggle="modal" data-target="#exampleModalFullscreenLg">Full screen below lg</button>
   <button type="button" class="btn btn-primary" data-toggle="modal" data-target="#exampleModalFullscreenXl">Full screen below xl</button>
+  <button type="button" class="btn btn-primary" data-toggle="modal" data-target="#exampleModalFullscreenXxl">Full screen below xxl</button>
 </div>
 
 {{< highlight html >}}
@@ -803,6 +808,23 @@ Another override is the option to pop up a modal that covers the user viewport,
   </div>
 </div>
 
+<div class="modal fade" id="exampleModalFullscreenXxl" tabindex="-1" aria-labelledby="exampleModalFullscreenXxlLabel" aria-hidden="true">
+  <div class="modal-dialog modal-fullscreen-xxl-down">
+    <div class="modal-content">
+      <div class="modal-header">
+        <h5 class="modal-title h4" id="exampleModalFullscreenXxlLabel">Full screen below xxl</h5>
+        <button type="button" class="btn-close" data-dismiss="modal" aria-label="Close"></button>
+      </div>
+      <div class="modal-body">
+        ...
+      </div>
+      <div class="modal-footer">
+        <button type="button" class="btn btn-secondary" data-dismiss="modal">Close</button>
+      </div>
+    </div>
+  </div>
+</div>
+
 ## Usage
 
 The modal plugin toggles your hidden content on demand, via data attributes or JavaScript. It also adds `.modal-open` to the `<body>` to override default scrolling behavior and generates a `.modal-backdrop` to provide a click area for dismissing shown modals when clicking outside the modal.