Gitlab CSE Unil

typeaheadjs.scss 1.02 KB
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
$import (reference) "../lib/bootstrap/less/mixins";
$import (reference) "../lib/bootstrap/less/variables";
$import (reference) "../lib/bootstrap/less/dropdowns";
$import (reference) "../lib/bootstrap/less/forms";


span.twitter-typeahead {
    width: 100%;

    .tt-dropdown-menu {
        &:extend(@include dropdown-menu);
    }

    .tt-suggestion > p {
        &:extend(.dropdown-menu > li > a);
        &:hover,
        &:focus {
            &:extend(.dropdown-menu > .active > a);
        }
    }
    .input-group & {
        display: block !important;
        .tt-dropdown-menu {
            top: 32px !important;
        }
        .tt-input, .tt-hint {
            border-radius: 4px 0 0 4px !important;
            @include input-sm();
        }
        .tt-hint { color: lighten($input-color, 10%); }
    }
    .input-group.input-group-lg & {
        .tt-dropdown-menu {
            top: 44px !important;
        }
    }
    .input-group.input-group-sm & {
        .tt-dropdown-menu {
            top: 28px !important;
        }
    }
}