summaryrefslogtreecommitdiff
path: root/addons/web/static/src/scss/layout_background.scss
blob: 0fea6d0a7640eb08c372e646c4d567cba7f1945d (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

.o_background_footer, .o_background_header, .o_report_layout_background {
    color: gray('700');
}
.o_background_header {
    min-width: 900px;
    border-bottom: 1px solid gray('200');
    img {
        max-height: 96px;
        max-width: 200px;
        margin-right: 16px;
    }
    h3 {
        color: $o-default-report-primary-color;
        font-weight: 700;
        font-size: 1.25rem;
        max-width: 300px;
    }
}
.o_background_footer {
    .list-inline-item {
        white-space: nowrap;
    }
    ul {
        border-top: 1px solid $o-default-report-secondary-color;
        border-bottom: 1px solid $o-default-report-secondary-color;
        padding: 4px 0;
        margin: 0 0 4px 0;
        li {
            color: $o-default-report-secondary-color;
        }
    }
}
.o_report_layout_background {
    background-image: url(/base/static/img/bg_background_template.jpg);
    background-size: cover;
    background-position: bottom center;
    background-repeat: no-repeat;
    min-height: 620px;
    
    strong {
        color: $o-default-report-secondary-color;
    }
    .table {
        border-top: 1px solid gray('300');
    }

    .table td, .table th {
        border-top: none;
    }
    h2 {
        color: $o-default-report-primary-color;
    }
    thead tr th {
        color: $o-default-report-secondary-color
    }
    tbody {
        color: gray('700');
        tr {
            &:nth-child(odd) {
                background-color: rgba(220, 205, 216, 0.2);
            }
            &.o_line_section {
                color: $o-brand-odoo;
                background-color: rgba(73, 80, 87, 0.2) !important;
            }
        }
    }
    /*Total table*/
    /* row div rule compat 12.0 */
    .row > div > table,
    div#total table {
        tr {
            &:nth-child(odd) {
                background-color: transparent !important;
            }
            /* first-child & last-child rule compat 12.0 */
            &:first-child,
            &:last-child,
            &.o_subtotal,
            &.o_total {
                border-top: none !important;
                td {
                    border-top: 1px solid gray('400') !important;
                }
                strong {
                    color: $o-default-report-primary-color;
                }
            }
        }
    }
}

/* special case for displaying report in iframe */
.o_in_iframe {
    .o_background_header {
        min-width: 0;
    }
}