summaryrefslogtreecommitdiff
path: root/addons/web/static/src/scss/control_panel.scss
blob: 075fce5cfe40b582539b94c3cd69a9145da051cb (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
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137

.o_control_panel {
    border-bottom: 1px solid darken($o-control-panel-background-color, 20%);
    @include o-webclient-padding($top: 5px, $bottom: 5px);
    background-color: $o-control-panel-background-color;

    > div {
        display: flex;
        min-height: 30px;
        margin: 5px 0px;
    }

    @include media-breakpoint-up(md) {
        .o_cp_top_left, .o_cp_top_right,
        .o_cp_bottom_left, .o_cp_bottom_right {
            width: 50%;
        }
    }

    .breadcrumb {
        font-size: 18px;

        > li {
            @include o-text-overflow($max-width: 90%);
        }
    }

    .o_cp_top_right {
        min-height: $o-cp-breadcrumb-height;
    }

    .o_cp_bottom_left {
        display: flex;
        justify-content: space-between;

        > .o_cp_action_menus {
            padding-right: 10px;

            .o_hidden_input_file {
                position: relative;
                input.o_input_file {
                    position: absolute;
                    top: 1px;
                    opacity: 0;
                    width: 100%;
                    height: 26px;
                }
                .o_form_binary_form span {
                    padding: 3px 25px;
                    color: $o-brand-primary;
                }
                .o_form_binary_form:hover {
                    background-color: $table-hover-bg;
                }
            }
            .o_sidebar_delete_attachment {
                padding: 0px;
                position: absolute;
                top: 5px;
                right: 10px;
            }
            .o_dropdown_toggler_btn {
                margin-right: 15px;
            }
        }
    }

    .o_cp_bottom_right {
        display: flex;

        > .o_cp_pager {
            margin: auto 0 auto auto;
            padding-left: 5px;
            text-align: center;
            user-select: none;

            .o_pager {
                display: flex;
                align-items: center;

                .o_pager_counter {
                    margin-right: 5px;
                    min-width: $o-statbutton-height;
                }
            }
        }

        > .o_cp_switch_buttons > .btn:first-child {
            margin-left: $o-horizontal-padding;
            @include media-breakpoint-down(sm) {
                margin-left: 0;
            }
        }
    }
}

.o_x2m_control_panel {
    display: flex;
    flex-flow: row wrap;

    .o_cp_buttons {
        display: flex;
        margin-right: auto;
        > div {
            margin-top: 5px;
        }
        .o-kanban-button-new {
            margin-left: $o-kanban-record-margin;
        }
    }
    .o_cp_pager {
        display: flex;
        margin-left: auto;
    }
}

.o_pager_value {
    display: inline-block;
}

span.o_pager_value {
    border-bottom: 1px solid transparent;
}

input.o_pager_value {
    text-align: right;
    width: 60px;
    &:focus {
        outline: none;
    }
}

@media print {
    .o_control_panel {
        display: none;
    }
}