mojotech / jeet

The most advanced, yet intuitive, grid system available for Sass or Stylus
http://jeet.gs
MIT License
2.99k stars 260 forks source link

Using align(both) collapses div? #532

Open blaasvaer opened 7 years ago

blaasvaer commented 7 years ago

When I have this markup:

<span class="jewellery_image" data-id="<?php the_ID(); ?>">
    <a class="image_link" href=""><?php the_post_thumbnail('medium'); ?></a>
    <a class="title" href=""><?php the_title(); ?></a>
</span>

And this (s)css:

.jewellery_image {
    @include column(1/4, $cycle: 4, $gutter: 1);

    img {
        @include align(both);
    }
}

The box (.jewellery_image) collapses. And I have to specify a height (in px as % doesn't work) for it to not have it collapse.

Is this by design or a bug?

I've tried all possible display modes for all parent and child elements to make it work, but only specifying a height for .jewellery_image will work.