Advertisement
mrpavlikov

Foundation reveal modal with max-width

Apr 18th, 2014
196
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
CSS 0.75 KB | None | 0 0
  1. // Hack for modal with max-width
  2. // <div class="reveal-modal reveal-modal-alt">
  3. //  <div class="reveal-modal-inner">
  4. //  <!-- usual modal content -->
  5. //  </div>
  6. // </div>
  7. $reveal-fixed-width: ($row-width + rem-calc(200)) !default;
  8.  
  9. .reveal-modal-alt {
  10.     padding: 0;
  11.     background: transparent;
  12.     border: none;
  13.     box-shadow: none;
  14.  
  15.     .reveal-modal-inner {
  16.         margin: 0 auto;
  17.         position: relative;
  18.         max-width: $reveal-fixed-width;
  19.  
  20.         @media #{$small-only} {
  21.             min-height: 100vh;
  22.         }
  23.  
  24.         @media #{$medium-up} {
  25.             @include reveal-modal-style($padding:$reveal-modal-padding * 1.5);
  26.         }
  27.  
  28.         @include reveal-modal-style(
  29.             $bg: $reveal-modal-bg,
  30.             $padding: $reveal-modal-padding,
  31.             $border: true,
  32.             $box-shadow: true,
  33.             $radius: false
  34.         );
  35.     }
  36. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement