From 65da181344f483f344a1ef96662fc5b3cc38b26a Mon Sep 17 00:00:00 2001 From: Jake Howard Date: Fri, 10 Nov 2017 21:00:49 +0000 Subject: [PATCH] Fix gallery --- static/src/js/index.js | 1 - static/src/scss/style.scss | 7 ++++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/static/src/js/index.js b/static/src/js/index.js index f81b52a..0c429ef 100644 --- a/static/src/js/index.js +++ b/static/src/js/index.js @@ -3,7 +3,6 @@ require('./jquery-global'); require('bootstrap'); -// Install alpha things require('lightgallery/dist/js/lightgallery'); require('lg-thumbnail/dist/lg-thumbnail'); diff --git a/static/src/scss/style.scss b/static/src/scss/style.scss index 71920f9..b327f14 100644 --- a/static/src/scss/style.scss +++ b/static/src/scss/style.scss @@ -1,9 +1,9 @@ $fa-font-path: "../fonts"; @import "node_modules/font-awesome/scss/font-awesome"; - @import "highlight"; // Generated by Hugo +@import "node_modules/lightgallery/src/sass/lightgallery"; @import "node_modules/bootstrap/scss/bootstrap"; $primary: #E89980; @@ -71,6 +71,7 @@ code { cursor: zoom-in; width: 100%; overflow: hidden; + margin-bottom: $grid-gutter-width; img { transition: opacity 0.5s; @@ -81,6 +82,10 @@ code { opacity: 0.7; } } + + & + h4 { + margin-top: -$grid-gutter-width / 2; + } } table td {