diff options
| author | Jules Laplace <jules@okfoc.us> | 2015-04-30 19:12:29 -0400 |
|---|---|---|
| committer | Jules Laplace <jules@okfoc.us> | 2015-04-30 19:12:29 -0400 |
| commit | 3d8e9bd0502c9aa7bea8c448a54cee7fdea6607f (patch) | |
| tree | 27f6f20e7466aff1eb29046b73a117caf9e5c6fc /site | |
| parent | 004532719e822174475ba3eb0b76dec833a8bdc4 (diff) | |
singleton galleries
Diffstat (limited to 'site')
| -rw-r--r-- | site/public/assets/javascripts/_env.js | 4 | ||||
| -rw-r--r-- | site/public/assets/style.css | 8 |
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; } |
