]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
add table of classes
authorMark Otto <markdotto@gmail.com>
Sun, 8 Jul 2018 03:15:48 +0000 (20:15 -0700)
committerMark Otto <markdotto@gmail.com>
Sun, 8 Jul 2018 03:15:48 +0000 (20:15 -0700)
docs/4.1/components/modal.md

index 39c638b6d4abd9f471bd436ab167ec71513e40ac..0d0fc49a6d42f155a1f844c60f54150fb71fa583 100644 (file)
@@ -474,6 +474,40 @@ Embedding YouTube videos in modals requires additional JavaScript not in Bootstr
 
 Modals have three optional sizes, available via modifier classes to be placed on a `.modal-dialog`. These sizes kick in at certain breakpoints to avoid horizontal scrollbars on narrower viewports.
 
+<table class="table table-striped">
+  <thead>
+    <tr>
+      <th>Size</th>
+      <th>Class</th>
+      <th>Modal max-width</th>
+    </tr>
+  </thead>
+  <tbody>
+    <tr>
+      <td>Small</td>
+      <td><code>.modal-sm</code></td>
+      <td><code>300px</code></td>
+    </tr>
+    <tr>
+      <td>Default</td>
+      <td class="text-muted">None</td>
+      <td><code>500px</code></td>
+    </tr>
+    <tr>
+      <td>Large</td>
+      <td><code>.modal-lg</code></td>
+      <td><code>800px</code></td>
+    </tr>
+    <tr>
+      <td>Extra large</td>
+      <td><code>.modal-xl</code></td>
+      <td><code>1140px</code></td>
+    </tr>
+  </tbody>
+</table>
+
+Our default modal without modifier class constitutes the "medium" size modal.
+
 <div class="bd-example">
   <button type="button" class="btn btn-primary" data-toggle="modal" data-target=".bd-example-modal-xl">Extra large modal</button>
   <button type="button" class="btn btn-primary" data-toggle="modal" data-target=".bd-example-modal-lg">Large modal</button>