]> git.ipfire.org Git - thirdparty/foundation/foundation-sites.git/commitdiff
Remove margins from first/last .row inside of a reveal-modal. 1058/head
authorJ Miller <j@jmillerdesign.com>
Tue, 23 Oct 2012 07:20:00 +0000 (00:20 -0700)
committerJ Miller <j@jmillerdesign.com>
Tue, 23 Oct 2012 07:20:00 +0000 (00:20 -0700)
scss/foundation/components/modules/_reveal.scss

index 91574ab94f2169947bc251a4d7af9357ef3bd74b..12cae597483f915b0eb489baff5bbd4f92b635b7 100644 (file)
@@ -9,8 +9,6 @@
   .reveal-modal-bg { position: fixed; height: 100%; width: 100%; background: #000; background: rgba(#000, .45); z-index: 40; display: none; top: 0; #{$defaultFloat}: 0; }
 
   .reveal-modal { background: $white; visibility: hidden; display: none; top: 100px; #{$defaultFloat}: 50%; margin-#{$defaultFloat}: -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;
@@ -28,6 +26,8 @@
     &.xlarge  { width: 70%; margin-#{$defaultFloat}: -35%; }
     &.expand  { width: 90%; margin-#{$defaultFloat}: -45%; }
     .row { min-width: 0; margin-bottom: 10px; }
+    > :first-child { margin-top: 0; }
+    > :last-child { margin-bottom: 0; }
   }
 
   /* Mobile */