/** * @copyright 2010-2013, The Titon Project * @license http://opensource.org/licenses/bsd-license.php * @link http://titon.io */ @import "../common"; .#{$vendor-prefix}drop--down, .#{$vendor-prefix}drop--up, .#{$vendor-prefix}drop--left, .#{$vendor-prefix}drop--right { display: none; text-align: left; position: absolute; top: 100%; left: 0; width: 200px; background: $gray; line-height: 100%; z-index: 500; opacity: 0; visibility: hidden; @include transition(opacity .3s); // Nested .#{$vendor-prefix}drop--down, .#{$vendor-prefix}drop--up { display: block; top: 0; left: 90%; z-index: 510; @include transition(left .3s, opacity .3s); } // Apply to self &, ul { @include reset-list; } li { position: relative; > a { padding: $small-padding; display: block; .caret-right { float: right; display: none; } } &.#{$state-has-prefix}children { > a .caret-right { display: inline-block; } } // Show nested dropdown &:hover { > a { background: $gray-lightest; } .#{$vendor-prefix}drop--down, .#{$vendor-prefix}drop--up { visibility: visible; opacity: 1; left: 100%; } } } // Force display &.show { display: block; } } .#{$vendor-prefix}drop-divider { margin: ($margin / 2) 0; border-top: 1px solid $gray-dark; } .#{$vendor-prefix}drop-heading { padding: $small-padding; background-color: $gray-dark; } //-------------------- Modifiers --------------------// .#{$vendor-prefix}drop--up { top: auto; bottom: 100%; } .#{$vendor-prefix}drop--right { top: auto; left: 100%; } .#{$vendor-prefix}drop--left { top: auto; left: auto; right: 100%; } .#{$vendor-prefix}drop--right, .#{$vendor-prefix}drop--left { &.reverse-align { bottom: 0; } } .#{$vendor-prefix}drop--down, .#{$vendor-prefix}drop--up { &.reverse-align { left: auto; right: 0; } }