/** * @copyright 2010-2013, The Titon Project * @license http://opensource.org/licenses/bsd-license.php * @link http://titon.io */ @import "../common"; .showcase { position: fixed; top: 50%; left: 50%; width: auto; height: auto; margin: 0; padding: 0; z-index: 610; // higher than blackout visibility: hidden; backface-visibility: hidden; @include transform(translateX(-50%) translateY(-50%)); &.is-loading, &.is-single { .showcase-prev, .showcase-next, .showcase-tabs { display: none !important; } } &.is-loading { .showcase-close { display: none !important; } } } .showcase-close { position: absolute; top: $padding; right: $padding; line-height: 1rem; padding: $padding; } .showcase-inner { position: relative; padding: $padding; background: $gray; border: 1px solid $gray-dark; } .showcase-items { list-style: none; padding: 0; margin: 0; width: 100px; height: 100px; max-width: 1024px; position: relative; overflow: hidden; @include transition(width $showcase-transition, height $showcase-transition); > li { position: absolute; top: 0; left: 0; opacity: 0; @include transition(opacity $showcase-transition); > img { max-width: 100%; width: 100%; height: auto; display: block; } &.show { .showcase-caption { display: block; } } } } .showcase-caption { position: absolute; bottom: 0; left: 0; width: 100%; padding: $padding; color: #fff; background: black(.70); display: none; @include in-small { @include size-small; } } .showcase-prev, .showcase-next { display: block; position: absolute; padding: $padding; width: auto; height: auto; z-index: 5; top: 50%; @include transform(translateY(-50%)); // move up 50% of their height &:focus { outline: none; } } .showcase-prev { left: $padding; } .showcase-next { right: $padding; } .showcase-tabs { position: absolute; top: ($padding * 2); left: 50%; @include transform(translateX(-50%)); // move left 50% of their width }