summaryrefslogtreecommitdiff
path: root/addons/l10n_de/static/src/scss/report_din5008.scss
blob: dbe9440740cda9cd0d1217268320bca73a66f0e6 (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
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
.din_page {
    width: 180mm;
    margin-left: -1rem;
    font-size: 9pt;

    &.header {
        table {
            width: 100%;
            img, h3, td, tr {
                padding: 0;
                margin: 0;
            }
            h3 {
                color: $o-default-report-primary-color;
                position: relative;
                top: -10mm;
                margin-bottom: -10mm;
            }
            img {
                float: right;
            }
        }
    }
    &.invoice_note {
        tr {
            td {
                vertical-align: bottom;
            }
            &:nth-child(2) td {
                vertical-align: top;
            }
            .address, .information_block, .shipping_address, .invoice_address {
                margin: 0;
            }
            .address {
                height: 45mm;
            }
            .address, .shipping_address {
                width: 85mm;
                padding-left: 5mm;
                .company_invoice_line {
                    margin-top: 1mm;
                }
                > span {
                    color: $o-default-report-secondary-color;
                }
            }
            .information_block, .invoice_address {
                width: 75mm;
                min-height: 40mm;
                margin-left: 20mm;
                table {
                    width: 100%;
                }
            }
        }
        h2 {
            margin-left: 5mm;
            margin-right: 10mm;
            margin-top: 8.46mm;
            color: $o-default-report-primary-color;
        }
        > .pt-5 {  // hide hardcoded address from base.template.layout
            display: none;
        }
        .page {
            margin-left: 5mm;
            margin-right: 10mm;
            > h2, h1, #informations {
                display: none;
            }
            [name=invoice_line_table], [name=stock_move_table], .o_main_table {
                margin-top: 8.46mm;
                th {
                    color: $o-default-report-secondary-color;
                }
            }
        }
    }
    &.footer {
        padding-left: 5mm;
        padding-right: 10mm;
        .page_number {
            margin-top: 4.23mm;
            width: 100%;
            height: 4.23mm;
        }
        .company_details {
            margin-top: 4.23mm;
            width: 100%;
            table {
                border-top: solid 1px;
                width: 100%;
                td {
                    vertical-align: baseline;
                    padding-right: 3mm;
                    &:last-child {
                        padding-right: initial;
                    }
                }
            }
        }
    }
}


// TODO WAN remove in master
.din {
    &.header {
        min-height: 45mm;
        max-height: 45mm;
        overflow: hidden;
        img {
            max-height: 45mm;
        }
    }
    .company_address {
        position: relative;
        left: 45mm;
        top: 5mm;
        width: 75mm;
        min-width: 75mm;
        display: inline-block;
    }
    .company_invoice_address {
        position: relative;
        left: 25mm;
        top: 17.7mm;
        width: 85mm;
        min-width: 85mm;
        margin-bottom: 1mm;
        font-size: 7pt;
        overflow-y: hidden;
        word-break: break-word;
    }
    .company_invoice_line {
        margin-top: 1mm;
    }
    .invoice_address {
        position: relative;
        left: 25mm;
        top: 14.7mm;
        width: 85mm;
        height: 27.3mm;
        line-height: 1.15;
        overflow-y: hidden;
        word-break: break-word;
        float: left;
    }
    .header_address {
        min-height: 45mm;
    }
    .page_number {
        margin-top: 4.23mm;
        margin-bottom: 4.23mm;
    }
    &.article {
        .page {
            position: relative;
            top: 8.46mm;
            left: 25mm;
            width: 190mm;
        }
        .address {
            margin-top: 5mm;
        }
    }
    &.o_background_footer {
        position: relative;
        left: 25mm;
        width: 190mm;
    }
    .o_account_reports_header {
        .fallback_header {
            display: none;
        }
    }
}