Sha256: 7d67a3ae26114fc2f2bf0b1983759229ddd7a8421740c665424ef26e64318136

Contents?: true

Size: 1.41 KB

Versions: 3

Compression:

Stored size: 1.41 KB

Contents

//http://stackoverflow.com/questions/21749179/typeahead-js-v0-10-1-and-bootstrap-3/33177315#33177315
@mixin typeahead-active() {
    // mimics  @extend .dropdown-menu > .active > a;
    color: $dropdown-link-active-color;
    text-decoration: none;
    outline: 0;
    background-color: $dropdown-link-active-bg;
}

//https://github.com/corejavascript/typeahead.js/blob/master/doc/jquery_typeahead.md#class-names
span.twitter-typeahead {
    // this is the suggested matches dropdown
    .tt-menu {
        @extend .dropdown-menu;
    }

    .tt-hint {
        color: #999;
    }
    // Added to suggestion elements.
    .tt-suggestion {
        // mimic .dropdown-menu > li > a
        padding: 3px 20px;
        line-height: $line-height-base;
        // Added to suggestion element when menu cursor moves to said suggestion.
        &.tt-cursor {
            @include typeahead-active;
        }
        // Hover/focus on suggestion
        &:focus,
        &:hover {
            @include typeahead-active;
        }

        p {
            margin: 0;
        }
    }

    .input-group & {
        display: block !important;

        .tt-dropdown-menu {
            top: 32px !important;
        }
    }

    .input-group.input-group-lg & {
        .tt-dropdown-menu {
            top: 44px !important;
        }
    }

    .input-group.input-group-sm & {
        .tt-dropdown-menu {
            top: 28px !important;
        }
    }
}

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
apx-docs-theme-0.1.15 _sass/typeahead.scss
apx-docs-theme-0.1.7 _sass/_typeahead.scss
apx-docs-theme-0.1.1 _sass/_typeahead.scss