Following BS4 migration and adding sections and notes.
=====
Document templates:
- Remove margin from <p> in "informations" to allow them to be
correctly centered vertically on their container.
- Also add a mt- and mb- on their <div> to better handle them going to a new
line when there are too many of them.
- Add class for section and note to be able to customize them in layouts.
- Add class for price_total to be able to customize it in layouts instead
of relying on :last-child.
- Add "page-break-inside: avoid;" on the "total" table to not split it
between pages when it can be avoided.
- Fix sale report template "Informations" to use col-auto just like invoice
See 6b8d7bb6d6
=====
Boxed layout:
- fix section & note style
- fix borders in general
- fix the total table
Background layout:
- fix section style
- fix the total table
Clean layout:
- fix page number vertical align
task-1889346
closes odoo/odoo#27782
62 lines
1.1 KiB
SCSS
62 lines
1.1 KiB
SCSS
html, body {
|
|
height: 100%;
|
|
direction: ltr;
|
|
}
|
|
|
|
body {
|
|
color: #000 !important;
|
|
word-wrap: break-word;
|
|
}
|
|
.border-black td, .border-black th {
|
|
border-top: 1px solid black !important;
|
|
}
|
|
|
|
/* See https://github.com/wkhtmltopdf/wkhtmltopdf/issues/1524 */
|
|
.table-sm {
|
|
> thead > tr > th {
|
|
border-bottom: none !important;
|
|
}
|
|
> tbody > tr {
|
|
page-break-inside: avoid !important;
|
|
border-top: none !important;
|
|
}
|
|
}
|
|
.zero_min_height {
|
|
min-height: 0px !important;
|
|
}
|
|
|
|
/* To avoid broken snippets in report rendering */
|
|
.jumbotron, .panel, .carousel, section{
|
|
page-break-inside: avoid;
|
|
}
|
|
|
|
/* Wkhtmltopdf doesn't support very well the media-print CSS (depends on the version) */
|
|
.d-print-none{
|
|
display: none;
|
|
}
|
|
|
|
.o_bold {
|
|
font-weight: bolder;
|
|
}
|
|
.o_italic {
|
|
font-style: italic;
|
|
}
|
|
.o_underline {
|
|
text-decoration: underline;
|
|
}
|
|
|
|
/*Total table*/
|
|
div#total {
|
|
page-break-inside: avoid;
|
|
table {
|
|
tr {
|
|
&.o_subtotal,
|
|
&.o_total {
|
|
td {
|
|
border-top: 1px solid black !important;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|