diff options
author | Thomas Park <thomas@thomaspark.me> | 2013-08-21 00:40:13 -0400 |
---|---|---|
committer | Thomas Park <thomas@thomaspark.me> | 2013-08-21 00:40:13 -0400 |
commit | 35d339d2b6f6bfce108f017e5f0f26d1a416a52f (patch) | |
tree | 208cc444d2991b1c6a1393b556912188f1bf288e /tests/components.html | |
parent | d25d37afe7f490fa75191bc3ccfe4968e76e6dd4 (diff) |
styles popovers, fixes #126
Diffstat (limited to 'tests/components.html')
-rw-r--r-- | tests/components.html | 103 |
1 files changed, 61 insertions, 42 deletions
diff --git a/tests/components.html b/tests/components.html index 65988c90..5f23f2ea 100644 --- a/tests/components.html +++ b/tests/components.html @@ -1,10 +1,10 @@ <!DOCTYPE html> <html lang="en"> <head> - <title>Bootswatch: Default Bootstrap</title> + <title>Bootswatch: Components</title> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta charset="utf-8"> - <link rel="stylesheet" href="../default/bootstrap.css" media="screen"> + <link rel="stylesheet" href="../amelia/bootstrap.css" media="screen"> <link rel="stylesheet" href="../bower_components/font-awesome/css/font-awesome.min.css"> <link rel="stylesheet" href="../assets/css/bootswatch.min.css"> <!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries --> @@ -2640,55 +2640,69 @@ <!-- Modal - ================================================== --> - <div class="bs-docs-section"> - <div class="page-header"> - <h1 id="modals">Modals</h1> - </div> + ================================================== --> + <div class="bs-docs-section"> + <div class="page-header"> + <h1 id="modals">Modals</h1> + </div> - <h3>Live demo</h3> - <p>Toggle a modal via JavaScript by clicking the button below. It will slide down and fade in from the top of the page.</p> - <!-- sample modal content --> - <div id="myModal" class="modal fade" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true"> - <div class="modal-dialog"> - <div class="modal-content"> + <h3>Live demo</h3> + <p>Toggle a modal via JavaScript by clicking the button below. It will slide down and fade in from the top of the page.</p> + <!-- sample modal content --> + <div id="myModal" class="modal fade" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true"> + <div class="modal-dialog"> + <div class="modal-content"> - <div class="modal-header"> - <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button> - <h4 class="modal-title" id="myModalLabel">Modal Heading</h4> - </div> - <div class="modal-body"> - <h4>Text in a modal</h4> - <p>Duis mollis, est non commodo luctus, nisi erat porttitor ligula.</p> + <div class="modal-header"> + <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button> + <h4 class="modal-title" id="myModalLabel">Modal Heading</h4> + </div> + <div class="modal-body"> + <h4>Text in a modal</h4> + <p>Duis mollis, est non commodo luctus, nisi erat porttitor ligula.</p> - <h4>Popover in a modal</h4> - <p>This <a href="#" role="button" class="btn btn-default popover-test" title="" data-content="And here's some amazing content. It's very engaging. right?" data-original-title="A Title">button</a> should trigger a popover on click.</p> + <h4>Popover in a modal</h4> + <p>This <a href="#" role="button" class="btn btn-default popover-test" title="" data-content="And here's some amazing content. It's very engaging. right?" data-original-title="A Title">button</a> should trigger a popover on click.</p> - <h4>Tooltips in a modal</h4> - <p><a href="#" class="tooltip-test" title="" data-original-title="Tooltip">This link</a> and <a href="#" class="tooltip-test" title="" data-original-title="Tooltip">that link</a> should have tooltips on hover.</p> + <h4>Tooltips in a modal</h4> + <p><a href="#" class="tooltip-test" title="" data-original-title="Tooltip">This link</a> and <a href="#" class="tooltip-test" title="" data-original-title="Tooltip">that link</a> should have tooltips on hover.</p> - <hr> + <hr> - <h4>Overflowing text to show scroll behavior</h4> - <p>Cras mattis consectetur purus sit amet fermentum. Cras justo odio, dapibus ac facilisis in, egestas eget quam. Morbi leo risus, porta ac consectetur ac, vestibulum at eros.</p> - <p>Praesent commodo cursus magna, vel scelerisque nisl consectetur et. Vivamus sagittis lacus vel augue laoreet rutrum faucibus dolor auctor.</p> - <p>Aenean lacinia bibendum nulla sed consectetur. Praesent commodo cursus magna, vel scelerisque nisl consectetur et. Donec sed odio dui. Donec ullamcorper nulla non metus auctor fringilla.</p> - <p>Cras mattis consectetur purus sit amet fermentum. Cras justo odio, dapibus ac facilisis in, egestas eget quam. Morbi leo risus, porta ac consectetur ac, vestibulum at eros.</p> - </div> - <div class="modal-footer"> - <button type="button" class="btn btn-default" data-dismiss="modal">Close</button> - <button type="button" class="btn btn-primary">Save changes</button> - </div> + <h4>Overflowing text to show scroll behavior</h4> + <p>Cras mattis consectetur purus sit amet fermentum. Cras justo odio, dapibus ac facilisis in, egestas eget quam. Morbi leo risus, porta ac consectetur ac, vestibulum at eros.</p> + <p>Praesent commodo cursus magna, vel scelerisque nisl consectetur et. Vivamus sagittis lacus vel augue laoreet rutrum faucibus dolor auctor.</p> + <p>Aenean lacinia bibendum nulla sed consectetur. Praesent commodo cursus magna, vel scelerisque nisl consectetur et. Donec sed odio dui. Donec ullamcorper nulla non metus auctor fringilla.</p> + <p>Cras mattis consectetur purus sit amet fermentum. Cras justo odio, dapibus ac facilisis in, egestas eget quam. Morbi leo risus, porta ac consectetur ac, vestibulum at eros.</p> + </div> + <div class="modal-footer"> + <button type="button" class="btn btn-default" data-dismiss="modal">Close</button> + <button type="button" class="btn btn-primary">Save changes</button> + </div> - </div><!-- /.modal-content --> - </div><!-- /.modal-dialog --> - </div><!-- /.modal --> + </div><!-- /.modal-content --> + </div><!-- /.modal-dialog --> + </div><!-- /.modal --> - <div class="bs-example" style="padding-bottom: 24px;"> - <a data-toggle="modal" href="#myModal" class="btn btn-primary btn-lg">Launch demo modal</a> - </div><!-- /example --> + <div class="bs-example" style="padding-bottom: 24px;"> + <a data-toggle="modal" href="#myModal" class="btn btn-primary btn-lg">Launch demo modal</a> + </div><!-- /example --> - </div> + </div> + + + <!-- Popover + ================================================== --> + <div class="bs-docs-section"> + <div class="page-header"> + <h1 id="popovers">Popovers</h1> + </div> + <div class="bs-example" style="padding-bottom: 24px;"> + <a class="btn btn-lg btn-danger" data-toggle="popover" title="" data-content="And here's some amazing content. It's very engaging. right?" data-original-title="A Title">Click to toggle popover</a> + </div> + </div> + + <footer> @@ -2713,5 +2727,10 @@ <script src="../bower_components/jquery/jquery.min.js"></script> <script src="../bower_components/bootstrap/dist/js/bootstrap.min.js"></script> <script src="../assets/js/bootswatch.js"></script> + <script> + + $('[data-toggle=popover]').popover(); + + </script> </body> </html>
\ No newline at end of file |