summaryrefslogtreecommitdiff
path: root/addons/web/static/src/scss/webclient_layout.scss
blob: 4d2a7b4437473937799ee27b43eab8611a783e54 (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
// ------------------------------------------------------------------
// Base layout rules, use the 'webclient.scss' file for styling
// ------------------------------------------------------------------
html {
    height: 100%;

    .o_web_client {
        height: 100%;
        display: flex;
        flex-flow: column nowrap;

        > .o_action_manager {
            direction: ltr; //Define direction attribute here so when rtlcss preprocessor run, it converts it to rtl
            flex: 1 1 auto;
            height: 100%;
            overflow: hidden;

            > .o_action {
                height: 100%;
                display: flex;
                flex-flow: column nowrap;
                > .o_control_panel {
                    flex: 0 0 auto;
                }
                > .o_content {
                    flex: 1 1 auto;
                    position: relative;  // Allow to redistribute the 100% height to its child
                    overflow: auto;
                    height: 100%;
                }
            }
        }

        &.o_fullscreen {
            .o_main_navbar {
                display: none;
            }
        }

        .o_main_navbar {
            flex: 0 0 auto;
        }

        .o_control_panel {
            flex: 0 0 auto;
        }

        .o_content {
            direction: ltr; //Define direction attribute here so when rtlcss preprocessor run, it converts it to rtl
            flex: 1 1 auto;
            position: relative;  // Allow to redistribute the 100% height to its child

            > .o_view_controller {
                position: absolute;  // Get the 100% height of its flex parent
                top: 0;
                right: 0;
                bottom: 0;
                left: 0;
                height: 100%;
                direction: ltr;
            }
        }
    }

    .o_loading {
        position: fixed;
        bottom: 0;
        right: 0;
        z-index: $zindex-modal + 1;
    }
}

@media print {
    html .o_web_client {
        .o_main_navbar {
            display: none;
        }
        .o_content {
            position: static;
            overflow: visible;
            height: auto;
        }
    }
}