Sha256: 3db0edcde76644fda06d3f83e642ccbee51f9b86c7f30448879060afa24d80ce

Contents?: true

Size: 1.83 KB

Versions: 2

Compression:

Stored size: 1.83 KB

Contents

/**
 * @copyright   2010-2013, The Titon Project
 * @license     http://opensource.org/licenses/bsd-license.php
 * @link        http://titon.io
 */

@import "../_common";

/**
 * Should be used in conjunction with the JavaScript Titon.Flyout module.
 */

.flyout {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 500;
    opacity: 0;
    visibility: hidden;
    background: $gray;
    border: 1px solid $gray-dark;
    @include box-sizing(content-box); // required by MooTools for multi columns
    @include transition(opacity 0.3s);

    ul {
        list-style: none;
        margin: 0;
        padding: 0;
        float: left;
        width: 200px;

        li {
            position: relative;

            > a,
            > .divider {
                padding: $small-padding;
                line-height: 100%;
                display: block;
                text-decoration: none;
            }

            > a .caret-right { display: none; }

            &.has-children > a .caret-right {
                float: right;
                display: inline-block; // reveal
                margin-top: 3px;
            }

            // Sub-flyouts
            > .flyout {
                left: 90%;
                @include transition(left .3s, right .3s, opacity .3s);

                // Reverse menu to left side incase it goes outside the viewport
                // Will be set automatically from the Javascript layer
                &.flyout--left {
                    left: auto;
                    right: 90%;
                }
            }

            &.is-open > .flyout {
                opacity: 1;
                visibility: visible;
                left: 100%;

                &.flyout--left {
                    left: auto;
                    right: 100%;
                }
            }
        }
    }

    @include clear-fix;
}

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
titon-toolkit-0.11.1 scss/toolkit/modules/flyout.scss
titon-toolkit-0.11.0 scss/toolkit/modules/flyout.scss