I want to use display: flex as the 'opened' state instead of display: block with fancy-box 2.
Currently the element gets display: block;
inline.
I'm trying to track down where to change it, but maybe I just need to nest a div in the pop-up. Has anyone done this before?
markup
<div class='thing-that-triggers'>
<span>thing</span>
<div class='pop-up'>
<div class='text'>
text
</div>
<div class='image'>
image
</div>
</div>
</div>
<div class='thing-that-triggers'>...</div>
<div class='thing-that-triggers'>...</div>
styles
.pop-up
display: flex // setup
flex-direction: column
display: none // hide it for fancybox
.text
width: 100%
.image
display: none // hide on small screen
@media $break-point-2
flex-direction: row
align-items: center
.block
split-in(2)
.text
flex-center-child()
.recipe
// centered
.image
display: block // show second panel
jQuery
$('.thing-that-triggers').fancybox({...});