From 9ad8b23b36538dad953720f39a09264b7d8eb5e9 Mon Sep 17 00:00:00 2001 From: Ben Schwarz Date: Mon, 24 Dec 2012 09:57:10 +1100 Subject: [PATCH] Documented modals First run - we could probably extend this * Used some custom CSS to make the position: fixed demo absolute. --- docs/index.html | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) diff --git a/docs/index.html b/docs/index.html index 96c1c6f..85bbcd1 100644 --- a/docs/index.html +++ b/docs/index.html @@ -58,6 +58,7 @@
  • Forms
  • Toggles
  • Popovers
  • +
  • Modals
  • Sliders
  • Push
  • @@ -976,6 +977,40 @@ document + + +
    + +

    Modals

    + +
    + +
    + +
    +<a href="#myModal" class="button">Open modal</a>
    +
    +<div id="myModal" class="modal">
    +  <header class="bar-title">
    +    <h1 class="title">Modal</h1>
    +    <a class="button" href="#myModal">
    +      Close
    +    </a>
    +  </header>
    +  
    +  <div class="content content-padded">
    +    <p>The contents of my modal</p>
    +  </div>
    +</div>
    +
    + +

    Modals are designed to only fire from links. Set the value of the toggle links href to the id of a modal.

    + +
    -- 2.39.2