From cdb2147b132792dd29628055d0fd753ad6bf59a0 Mon Sep 17 00:00:00 2001 From: Mark Otto Date: Thu, 7 Feb 2013 19:00:48 -0800 Subject: [PATCH] add new modal to docs example --- docs/assets/css/docs.css | 16 +++++++++++ docs/javascript.html | 34 ++++++++++++++---------- docs/templates/pages/javascript.mustache | 34 ++++++++++++++---------- 3 files changed, 56 insertions(+), 28 deletions(-) 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) {

Static example

A rendered modal with header, body, and set of actions in the footer.

-
- +
+ + +
 <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.

-
- +
+ + +
{{! /example }}
 <div class="modal fade">