/** * @copyright 2010-2013, The Titon Project * @license http://opensource.org/licenses/bsd-license.php * @link http://titon.io */ @import "../common"; .#{$vendor-prefix}showcase { position: fixed; top: 50%; left: 50%; width: auto; height: auto; margin: 0; padding: 0; z-index: 610; // higher than blackout opacity: 0; visibility: hidden; backface-visibility: hidden; @include transform(translateX(-50%) translateY(-50%)); @include transition(opacity $showcase-transition, visibility $showcase-transition); &.#{$state-is-prefix}loading, &.#{$state-is-prefix}single { .#{$vendor-prefix}showcase-prev, .#{$vendor-prefix}showcase-next, .#{$vendor-prefix}showcase-tabs { display: none !important; } } &.#{$state-is-prefix}loading { .#{$vendor-prefix}showcase-close { display: none !important; } } } .#{$vendor-prefix}showcase-close { position: absolute; top: $padding; right: $padding; line-height: 1rem; padding: $padding; } .#{$vendor-prefix}showcase-inner { position: relative; padding: $padding; background: $gray; border: 1px solid $gray-dark; } .#{$vendor-prefix}showcase-items { @include reset-list; 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 { .#{$vendor-prefix}showcase-caption { display: block; } } } } .#{$vendor-prefix}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; } } .#{$vendor-prefix}showcase-prev, .#{$vendor-prefix}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; } } .#{$vendor-prefix}showcase-prev { left: $padding; } .#{$vendor-prefix}showcase-next { right: $padding; } .#{$vendor-prefix}showcase-tabs { position: absolute; top: ($padding * 2); left: 50%; @include transform(translateX(-50%)); // move left 50% of their width }