Fix broken lightbox and attachments-spacing in bulma themes

Introduced by changes associated with brutstrap theme
This commit is contained in:
Jason McBrayer 2019-02-05 10:34:03 -05:00
parent 3293ef5ebf
commit 7d72088422
3 changed files with 20 additions and 1 deletions

View File

@ -250,3 +250,12 @@ a.navbar-item span:nth-child(2):before
content: " "; content: " ";
} }
/* Fix some rules that don't need to be there */
.content figure:not(:last-child)
{
margin-bottom: 0;
}
.content figure:not(:first-child)
{
margin-top: 0;
}

View File

@ -234,3 +234,13 @@ a.navbar-item span:nth-child(2):before
{ {
content: " "; content: " ";
} }
/* Fix some rules that don't need to be there */
.content figure:not(:last-child)
{
margin-bottom: 0;
}
.content figure:not(:first-child)
{
margin-top: 0;
}

View File

@ -200,7 +200,7 @@
{ {
$('.attachments').each(function() { $('.attachments').each(function() {
$(this).magnificPopup({ $(this).magnificPopup({
delegate: 'a.attachment-image', delegate: 'figure.attachment-image a',
type: 'image', type: 'image',
preload: [1, 1], preload: [1, 1],
gallery: {enabled: true }, gallery: {enabled: true },