summaryrefslogtreecommitdiff
path: root/site/public/assets
diff options
context:
space:
mode:
authorJules Laplace <jules@okfoc.us>2015-04-30 19:12:29 -0400
committerJules Laplace <jules@okfoc.us>2015-04-30 19:12:29 -0400
commit3d8e9bd0502c9aa7bea8c448a54cee7fdea6607f (patch)
tree27f6f20e7466aff1eb29046b73a117caf9e5c6fc /site/public/assets
parent004532719e822174475ba3eb0b76dec833a8bdc4 (diff)
singleton galleries
Diffstat (limited to 'site/public/assets')
-rw-r--r--site/public/assets/javascripts/_env.js4
-rw-r--r--site/public/assets/style.css8
2 files changed, 12 insertions, 0 deletions
diff --git a/site/public/assets/javascripts/_env.js b/site/public/assets/javascripts/_env.js
index 00d54d8..45d5231 100644
--- a/site/public/assets/javascripts/_env.js
+++ b/site/public/assets/javascripts/_env.js
@@ -398,6 +398,10 @@ function build_gallery () {
gallery = null
return
}
+ var $cells = $("#entry_container #okgallery .cell")
+ if ($cells.length == 1) {
+ $(".entry").addClass("singleton")
+ }
var $next = $el.next(".next")
var $caption = $el.next(".caption")
gallery = new Flickity( "#okgallery", {
diff --git a/site/public/assets/style.css b/site/public/assets/style.css
index 3db83a9..543a34a 100644
--- a/site/public/assets/style.css
+++ b/site/public/assets/style.css
@@ -476,6 +476,7 @@ nav .sub.active a {
.galnav span:hover {
background:black;
}
+.singleton .galnav { display: none }
.credit {
margin: 4em 0px 0px 0px;
@@ -563,6 +564,10 @@ nav .sub.active a {
cursor: url(images/next.png), auto!important;
background: white;
}
+.singleton .gallery,
+.singleton .cell {
+ cursor: pointer !important;
+}
.cell {
display:inline-block;
height:100%;
@@ -573,6 +578,9 @@ nav .sub.active a {
background-size: cover;
background-position: center center;
}
+.singleton .cell.video {
+ width: 100%;
+}
.cell.video.playing {
background: black !important;
}