Created
November 5, 2012 21:20
-
-
Save bdalziel/4020397 to your computer and use it in GitHub Desktop.
Slide Body CSS
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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