mirror of
https://github.com/twbs/bootstrap.git
synced 2025-01-29 21:52:22 +01:00
add new modal to docs example
This commit is contained in:
parent
8ca70bd83a
commit
cdb2147b13
@ -271,6 +271,22 @@ section > ul li {
|
|||||||
margin-bottom: 0;
|
margin-bottom: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Example modals */
|
||||||
|
.bs-docs-example-modal {
|
||||||
|
background-color: #f5f5f5;
|
||||||
|
}
|
||||||
|
.bs-docs-example-modal .modal {
|
||||||
|
position: relative;
|
||||||
|
top: auto;
|
||||||
|
right: auto;
|
||||||
|
left: auto;
|
||||||
|
bottom: auto;
|
||||||
|
z-index: 1;
|
||||||
|
display: block;
|
||||||
|
margin-left: auto;
|
||||||
|
margin-right: auto;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/* Example templates
|
/* Example templates
|
||||||
|
@ -185,20 +185,26 @@ $('#myModal').on('show', function (e) {
|
|||||||
|
|
||||||
<h3>Static example</h3>
|
<h3>Static example</h3>
|
||||||
<p>A rendered modal with header, body, and set of actions in the footer.</p>
|
<p>A rendered modal with header, body, and set of actions in the footer.</p>
|
||||||
<div class="bs-docs-example" style="background-color: #f5f5f5;">
|
<div class="bs-docs-example bs-docs-example-modal">
|
||||||
<div class="modal" style="position: relative; top: auto; left: auto; right: auto; display: block; margin: 0 auto 20px; z-index: 1; max-width: 100%;">
|
|
||||||
<div class="modal-header">
|
<div class="modal">
|
||||||
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
|
<div class="modal-dialog">
|
||||||
<h3>Modal header</h3>
|
<div class="modal-content">
|
||||||
</div>
|
<div class="modal-header">
|
||||||
<div class="modal-body">
|
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
|
||||||
<p>One fine body…</p>
|
<h3 class="modal-title">Modal header</h3>
|
||||||
</div>
|
</div>
|
||||||
<div class="modal-footer">
|
<div class="modal-body">
|
||||||
<a href="#" class="btn">Close</a>
|
<p>One fine body…</p>
|
||||||
<a href="#" class="btn btn-primary">Save changes</a>
|
</div>
|
||||||
</div>
|
<div class="modal-footer">
|
||||||
</div>
|
<a href="#" class="btn">Close</a>
|
||||||
|
<a href="#" class="btn btn-primary">Save changes</a>
|
||||||
|
</div>
|
||||||
|
</div><!-- /.modal-content -->
|
||||||
|
</div><!-- /.modal-dalog -->
|
||||||
|
</div><!-- /.modal -->
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
<pre class="prettyprint linenums">
|
<pre class="prettyprint linenums">
|
||||||
<div class="modal fade">
|
<div class="modal fade">
|
||||||
|
34
docs/templates/pages/javascript.mustache
vendored
34
docs/templates/pages/javascript.mustache
vendored
@ -118,20 +118,26 @@ $('#myModal').on('show', function (e) {
|
|||||||
|
|
||||||
<h3>Static example</h3>
|
<h3>Static example</h3>
|
||||||
<p>A rendered modal with header, body, and set of actions in the footer.</p>
|
<p>A rendered modal with header, body, and set of actions in the footer.</p>
|
||||||
<div class="bs-docs-example" style="background-color: #f5f5f5;">
|
<div class="bs-docs-example bs-docs-example-modal">
|
||||||
<div class="modal" style="position: relative; top: auto; left: auto; right: auto; display: block; margin: 0 auto 20px; z-index: 1; max-width: 100%;">
|
|
||||||
<div class="modal-header">
|
<div class="modal">
|
||||||
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
|
<div class="modal-dialog">
|
||||||
<h3>Modal header</h3>
|
<div class="modal-content">
|
||||||
</div>
|
<div class="modal-header">
|
||||||
<div class="modal-body">
|
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
|
||||||
<p>One fine body…</p>
|
<h3 class="modal-title">Modal header</h3>
|
||||||
</div>
|
</div>
|
||||||
<div class="modal-footer">
|
<div class="modal-body">
|
||||||
<a href="#" class="btn">Close</a>
|
<p>One fine body…</p>
|
||||||
<a href="#" class="btn btn-primary">Save changes</a>
|
</div>
|
||||||
</div>
|
<div class="modal-footer">
|
||||||
</div>
|
<a href="#" class="btn">Close</a>
|
||||||
|
<a href="#" class="btn btn-primary">Save changes</a>
|
||||||
|
</div>
|
||||||
|
</div><!-- /.modal-content -->
|
||||||
|
</div><!-- /.modal-dalog -->
|
||||||
|
</div><!-- /.modal -->
|
||||||
|
|
||||||
</div>{{! /example }}
|
</div>{{! /example }}
|
||||||
<pre class="prettyprint linenums">
|
<pre class="prettyprint linenums">
|
||||||
<div class="modal fade">
|
<div class="modal fade">
|
||||||
|
Loading…
x
Reference in New Issue
Block a user