diff --git a/docs/assets/css/docs.css b/docs/assets/css/docs.css index fea9766367..32cbdbf0b8 100644 --- a/docs/assets/css/docs.css +++ b/docs/assets/css/docs.css @@ -271,6 +271,22 @@ section > ul li { 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 diff --git a/docs/javascript.html b/docs/javascript.html index 6b60cfcd51..8f941f2787 100644 --- a/docs/javascript.html +++ b/docs/javascript.html @@ -185,20 +185,26 @@ $('#myModal').on('show', function (e) {
A rendered modal with header, body, and set of actions in the footer.
-One fine body…
-<div class="modal fade"> diff --git a/docs/templates/pages/javascript.mustache b/docs/templates/pages/javascript.mustache index 8a602a67dd..b1a27d1466 100644 --- a/docs/templates/pages/javascript.mustache +++ b/docs/templates/pages/javascript.mustache @@ -118,20 +118,26 @@ $('#myModal').on('show', function (e) {Static example
A rendered modal with header, body, and set of actions in the footer.
---+- --Modal header
--- -One fine body…
-+ +{{! /example }}++++ +<div class="modal fade">