Sha256: 19ea5aa7b223352d69f6d582ff62ca305bf56fadfb145c1c862c1b59a97c191f

Contents?: true

Size: 1.92 KB

Versions: 3

Compression:

Stored size: 1.92 KB

Contents

/* CSS for jQuery Reveal Plugin
 * Maintained for Foundation. foundation.zurb.com
 * Free to use under the MIT license.
 * http://www.opensource.org/licenses/mit-license.php
 */

/* Reveal Modals ---------------------- */

  .reveal-modal-bg { position: fixed; height: 100%; width: 100%; background: #000; background: rgba(#000, .45); z-index: 40; display: none; top: 0; left: 0; }

  .reveal-modal { background: $white; visibility: hidden; display: none; top: 100px; left: 50%; margin-left: -260px; width: 520px; position: absolute; z-index: 41; padding: 30px; @include box-shadow(0 0 10px rgba(#000,.4));
    *:first-child { margin-top: 0; }
    *:last-child { margin-bottom: 0; }
    .close-reveal-modal {
      @include font-size(22);
      line-height: .5;
      position: absolute;
      top: 8px;
      right: 11px;
      color: #aaa;
      text-shadow: 0 -1px 1px rgba(0,0,0,.6);
      font-weight: bold;
      cursor: pointer;
    }
    &.small   { width: 30%; margin-left: -10%; }
    &.medium  { width: 40%; margin-left: -20%; }
    &.large   { width: 60%; margin-left: -30%; }
    &.expand  { width: 90%; margin-left: -45%; }
    .row { min-width: 0; }
  }

  /* Mobile */
  @media only screen and (max-width: $screenSmall - 1) {
    .reveal-modal-bg { position: absolute; }

    .reveal-modal,
    .reveal-modal.small,
    .reveal-modal.medium,
    .reveal-modal.large,
    .reveal-modal.xlarge { width: 80%; top: 15px; left: 50%; margin-left: -40%; padding: 20px; height: auto; }
  }

  /* NOTES
  Close button entity is ×

  Example markup
  <div id="myModal" class="reveal-modal">
   <h2>Awesome. I have it.</h2>
   <p class="lead">Your couch.  I it's mine.</p>
   <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. In ultrices aliquet placerat. Duis pulvinar orci et nisi euismod vitae tempus lorem consectetur. Duis at magna quis turpis mattis venenatis eget id diam. </p>
   <a class="close-reveal-modal">&#215;</a>
  </div> */

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
zurb-foundation-3.0.7 stylesheets/foundation/components/modules/_reveal.scss
zurb-foundation-3.0.7.rc10 stylesheets/foundation/components/modules/_reveal.scss
zurb-foundation-3.0.6 stylesheets/foundation/reveal.scss