summaryrefslogtreecommitdiff
path: root/addons/web/static/src/scss/dropdown_extra.scss
blob: e4f68ec0447977de024a2e4c7a85a6c919bc1ac3 (plain)
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
.ui-autocomplete .ui-menu-item {
    > a.ui-state-active {
        background-color: $o-brand-odoo;
        color: white;
    }
    &.o_m2o_dropdown_option > a {
        color: $o-brand-odoo;
        &.ui-state-active {
            color: white;
        }
    }
    &.o_m2o_start_typing > a.ui-state-active {
        color: $dropdown-link-color;
    }
}

.oe_dropdown, .oe_dropdown_toggle {
    position: relative;
    cursor: pointer;
}
.oe_dropdown_toggle {
    color: #2B2B2B;
    font-weight: normal;
}
.oe_dropdown_menu {
    display: none;
    position: absolute;
    z-index: 3;
    margin: 0;
    border: 1px solid #afafb6;
    background: white;
    padding: 4px 0;
    min-width: 140px;
    text-align: left;
    box-shadow: 0 1px 4px rgba(0,0,0,0.3);
    &.oe_opened {
        display: block;
    }
    > li {
        list-style-type: none;
        float: none;
        display: block;
        position: relative;
        margin: 0;
        padding: 2px 8px;
        &:hover {
            background-image: linear-gradient(to bottom, #f0f0fa, #eeeef6);
            box-shadow: none;
        }
        > a {
            white-space: nowrap;
            display: block;
            color: #4c4c4c;
            text-decoration: none;
            &:hover {
                text-decoration: none;
            }
        }
    }
}