Compare commits

...

3 Commits

Author SHA1 Message Date
c9151d598a Fix lightbox prev/next buttons position 2022-01-10 17:54:56 +01:00
a8f3a0502e Fix minor fixes 2022-01-10 16:57:02 +01:00
74fd8bd972 Fix lightbox prev/next buttons 2022-01-10 16:56:01 +01:00
6 changed files with 9 additions and 8 deletions

View File

@@ -150,7 +150,7 @@ class Spot extends Main
(
Feed::SPOT_TABLE => array(Feed::FEED_TABLE),
Feed::FEED_TABLE => array(Feed::MSG_TABLE),
Project::PROJ_TABLE => array(Feed::FEED_TABLE, Media::MEDIA_TABLE, self::POST_TABLE),
Project::PROJ_TABLE => array(Feed::FEED_TABLE, Media::MEDIA_TABLE, self::POST_TABLE, Map::MAPPING_TABLE),
Map::MAP_TABLE => array(Map::MAPPING_TABLE)
)
);

View File

@@ -114,7 +114,7 @@
// on the page below.
//
// Github issue: https://github.com/lokesh/lightbox2/issues/663
$('<div id="lightboxOverlay" tabindex="-1" class="lightboxOverlay"></div><div id="lightbox" tabindex="-1" class="lightbox"><div class="lb-outerContainer"><div class="lb-container"><img class="lb-image" src="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw==" alt=""/><div class="lb-nav"><a class="lb-prev" aria-label="Previous image" href="" ></a><a class="lb-next" aria-label="Next image" href="" ></a></div><div class="lb-loader"><a class="lb-cancel"></a></div></div></div><div class="lb-dataContainer"><div class="lb-data"><div class="lb-details"><span class="lb-caption"></span><span class="lb-number"></span></div><div class="lb-closeContainer"><a class="lb-close"></a></div></div></div></div>').appendTo($('body'));
$('<div id="lightboxOverlay" tabindex="-1" class="lightboxOverlay"></div><div id="lightbox" tabindex="-1" class="lightbox"><div class="lb-outerContainer"><div class="lb-container"><img class="lb-image" src="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw==" alt=""/><div class="lb-nav"><a class="lb-prev" aria-label="Previous image" href="" ></a><a class="lb-next" aria-label="Next image" href="" ></a></div><div class="lb-loader"><a class="lb-cancel" href="#"></a></div></div></div><div class="lb-dataContainer"><div class="lb-data"><div class="lb-details"><span class="lb-caption"></span><span class="lb-number"></span></div><div class="lb-closeContainer"><a class="lb-close"></a></div></div></div></div>').appendTo($('body'));
// Cache jQuery objects
this.$lightbox = $('#lightbox');

View File

@@ -105,18 +105,19 @@
box-sizing: content-box;
}
&.lb-video-nav .lb-nav {
top: 45px;
height: calc(100% - 90px);
top: 0;
height: calc(100% - 100px); //Leave space for video progress bar
}
.lb-nav {
a.lb-prev, a.lb-next {
color: white;
text-decoration: none;
text-shadow: 0px 1px 1px rgba(0,0,0,0.8);
&:before {
position: absolute;
top: calc(50% - 1em);
top: calc(50% - 1em + 50px);
}
}

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long