summaryrefslogtreecommitdiff
path: root/addons/web/static/src/scss/navbar_mobile.scss
blob: f4593436163fe09f09327cea2c359e623885a836 (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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98

.o_main_navbar {
    .o_app {
        @include media-breakpoint-down(sm) {
            float: none;
            margin: 0;
            border-bottom: 1px solid $o-navbar-inverse-link-hover-bg;
            color: transparent !important;
        }
    }

    > .o_menu_brand {
        @include media-breakpoint-down(sm) {
            float: none;
            margin: 0;
            border-bottom: 1px solid $o-navbar-inverse-link-hover-bg;
            color: transparent !important;
        }
    }

    @include media-breakpoint-down(sm) {
        transition: height 200ms linear 0s;

        position: relative;
        height: $o-navbar-height;

        > ul {
            > li {
                float: none;
                .dropdown-backdrop {
                    display: none;
                }

                .dropdown-menu.show {
                    max-height: none;
                }
            }

            &.o_menu_sections {
                width: 100%;
                display: none;

                .dropdown-menu.show {
                    position: static;
                    float: none;
                    background-color: transparent;
                    box-shadow: none;
                    border: none;
                    overflow: visible;

                    > .dropdown-item {
                        background-color: transparent;
                        color: inherit;
                    }
                }
            }

            &.o_menu_systray {
                @include o-position-absolute(0px, $o-navbar-height, auto, $o-navbar-height);
                height: $o-navbar-height;
                text-align: right;

                > li {
                    display: inline-block;

                    .dropdown-menu.show {
                        @include o-position-absolute($o-navbar-height, 0, 0, 0);
                        position: fixed;
                        width: auto;
                    }
                }

                .o_user_menu .oe_topbar_name {
                    display: none;
                }
            }
        }
    }
}

@include media-breakpoint-down(sm) {
    body.o_mobile_menu_opened > .o_main_navbar {
        height: 100%;
        overflow: auto;
        .o_menu_sections {
            display: block;
        }
    }
}

@include media-breakpoint-down(sm) {
    .o_switch_company_menu > .dropdown-menu {
        padding-top: 0px;
        .bg-info {
            padding: 10px;
        }
    }
}