}
/* Modal example */
-.iphone .iphone-content .modal { position: absolute; }
-.iphone .iphone-content .modal .content { margin-top: 44px; }
-#myModal.active { background: #cecece; }
-#modalsInPhone #iwindow > .button { margin: 10px; }
+.component-example .modal {
+ left: 0;
+ z-index: 10001;
+}
+.iphone .iphone-content .modal {
+ position: absolute;
+}
+.component-example .modal .content,
+.iphone .iphone-content .modal .content {
+ margin-top: 44px;
+}
+#modalsInPhone #iwindow > .button {
+ margin: 10px;
+}
+
/* Slider examples */
.component-example-fullbleed .slider,
<h3 class="component-title">Modals</h3>
<div class="component-example">
-
+ <a href="#myModalexample" class="button">Open modal</a>
+ <div id="myModalexample" class="modal">
+ <header class="bar-title">
+ <h1 class="title">Modal</h1>
+ <a class="button" href="#myModalexample">
+ Close
+ </a>
+ </header>
+
+ <div class="content content-padded">
+ <p>The contents of my modal</p>
+ </div>
+ </div>
</div>
+
<pre class="prettyprint">
<a href="#myModal" class="button">Open modal</a>
</header>
<div class="content content-padded">
- <p>The contents of my modal</p>
+ <p>The contents of my modal.</p>
</div>
</div>
</pre>