Skip to content

Commit 5ee5d21

Browse files
committed
Fix responsiveness
1 parent 0a5450e commit 5ee5d21

File tree

1 file changed

+26
-24
lines changed

1 file changed

+26
-24
lines changed

examples.html

Lines changed: 26 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
<meta charset="UTF-8">
77
<meta name="viewport" content="width=device-width, initial-scale=1">
8-
8+
99
<title>jQuery.leanModal2.js</title>
1010

1111
<script src="https://cdn.jsdelivr.net/g/jquery,jquery.equalize,jquery.downboy"></script>
@@ -92,14 +92,6 @@ <h2>Defaults</h2>
9292
<h3 class="background-white button color-belize-hole display-block rounded">Defaults Example</h3>
9393
</section>
9494

95-
<div id="defaults-example" class="background-white color-3 display-none modal rounded">
96-
<h3>Hello!</h3>
97-
<p>This is a modal using our defaults.</p>
98-
<a href="#" class="color-pomegranate js-leanmodal-close">Close</a>
99-
</div>
100-
101-
<script>$('.leanmodal-defaults').leanModal();</script>
102-
10395
<section class="whole smablet-half leanmodal-modified equalize" data-modal-id="#modified-example">
10496
<h2>Modified</h2>
10597
<code class="background-midnight-blue color-white rounded">$('.leanmodal').leanModal({
@@ -113,27 +105,37 @@ <h2>Modified</h2>
113105
<h3 class="background-white button color-belize-hole display-block rounded">Modified Example</h3>
114106
</section>
115107

116-
<div id="modified-example" class="background-white color-3 display-none modal rounded">
117-
<h3>Hello!</h3>
118-
<p>This is a modal using all the options.</p>
119-
<a href="#" class="color-pomegranate close-it">Close</a>
120-
</div>
121-
122-
<script>$('.leanmodal-modified').leanModal({
123-
top: '1em',
124-
overlayOpacity: 0.3,
125-
closeButton: '.close-it',
126-
disableCloseOnOverlayClick: true,
127-
disableCloseOnEscape: true,
128-
fadeTime: 2000,
129-
});</script>
130-
131108
</div>
132109

133110
<footer>
134111
<p><a href="http://opensource.org/licenses/MIT">MIT License</a> &nbsp;&middot;&nbsp; <a href="https://github.com/eustasy/jQuery.leanModal2">GitHub</a> &nbsp;&middot;&nbsp; <a href="http://eustasy.org/">eustasy</a></p>
135112
</footer>
136113

114+
<div id="defaults-example" class="background-white color-3 display-none modal rounded">
115+
<h3>Hello!</h3>
116+
<p>This is a modal using our defaults.</p>
117+
<a href="#" class="color-pomegranate js-leanmodal-close">Close</a>
118+
</div>
119+
120+
<script>$('.leanmodal-defaults').leanModal();</script>
121+
122+
<div id="modified-example" class="background-white color-3 display-none modal rounded">
123+
<h3>Hello!</h3>
124+
<p>This is a modal using all the options.</p>
125+
<a href="#" class="color-pomegranate close-it">Close</a>
126+
</div>
127+
128+
<script>
129+
$('.leanmodal-modified').leanModal({
130+
top: '1em',
131+
overlayOpacity: 0.3,
132+
closeButton: '.close-it',
133+
disableCloseOnOverlayClick: true,
134+
disableCloseOnEscape: true,
135+
fadeTime: 2000,
136+
});
137+
</script>
138+
137139
</body>
138140

139141
<script>

0 commit comments

Comments
 (0)