Skip to content

Instantly share code, notes, and snippets.

@bdalziel
Created November 5, 2012 21:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bdalziel/4020397 to your computer and use it in GitHub Desktop.
Save bdalziel/4020397 to your computer and use it in GitHub Desktop.
Slide Body CSS
li.gallerySlide .slideBody {
height: 100%;
/* Total width = 100% with padding */
width: 80%;
padding-left: 5%; /* nudge selected slide in from left */
padding-right: 15%; /* PEEK */
overflow: auto; /* think vertical scroll bars with small browser height */
}
li.gallerySlide .assetWrap {
display: block;
position: relative;
height: 100%;
min-height: 800px; /* Don't want to scale down too much */
margin-right: 370px; /* make space for photo description column */
text-align: right; /* asset up against slide right rail */
}
li.gallerySlide .assetWrap a {
position: relative;
display: inline-block; /
float: left; /* Ensure asset is in the peek when not the active slide */
height: 100%;
max-width: 100%;
min-height: 800px;
line-height: 0;
}
li.gallerySlide.selected .slideBody .assetWrap a {
float: none; /* back to regular positioning now we're the active slide */
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment