Commit 3a20a32d authored by Xiaowu Zhang's avatar Xiaowu Zhang

erp5_corporate_identity: several css changes

1.auto centre for image
2.table line is centered
3. image option is left-margin 3cm under image
parent 7e7f5678
......@@ -159,9 +159,6 @@
.ci-book tr {
page-break-inside: avoid;
}
.ci-book img {
page-break-after: avoid;
}
.ci-book section:not(:last-child) {
page-break-after: always;
page-break-inside: always;
......@@ -427,7 +424,7 @@
/* opinionated align for content tables, overwrite in html if required */
.ci-book table:not(.ci-book-header):not(.ci-book-footer):not(.ci-book-table) tbody td,
.ci-book table:not(.ci-book-header):not(.ci-book-footer):not(.ci-book-table) tbody th {
text-align: left;
text-align: center;
}
/*
.ci-book table:not(.ci-book-header):not(.ci-book-footer):not(.ci-book-table) tbody tr td:first-child,
......@@ -744,11 +741,17 @@
margin: 0 auto 0;
padding-top: 20px;
max-width: 240mm;
page-break-after: avoid;
width: 50%;
}
.ci-book .ci-book-img > img ~ span {
margin-left: 3cm;
}
.ci-book .ci-book-img + span {
text-align: center;
display: block;
margin-left: 3cm;
}
.ci-book table caption,
.ci-book .ci-book-caption {
text-align: center;
......
......@@ -158,9 +158,7 @@
.ci-book pre {
page-break-inside: avoid;
}
.ci-book img {
page-break-after: avoid;
}
.ci-book section:not(:last-child) {
page-break-after: always;
page-break-inside: always;
......@@ -431,7 +429,7 @@
/* opinionated align for content tables, overwrite in html if required */
.ci-book table:not(.ci-book-header):not(.ci-book-footer):not(.ci-book-table) tbody td,
.ci-book table:not(.ci-book-header):not(.ci-book-footer):not(.ci-book-table) tbody th {
text-align: left;
text-align: center;
}
/*
.ci-book table:not(.ci-book-header):not(.ci-book-footer):not(.ci-book-table) tbody tr td:first-child,
......@@ -748,10 +746,15 @@
margin: 0 auto 0;
padding-top: 20px;
max-width: 240mm;
page-break-after: avoid;
width: 50%;
}
.ci-book .ci-book-img > img ~ span {
margin-left: 3cm;
}
.ci-book .ci-book-img + span {
text-align: center;
display: block;
margin-left: 3cm;
}
.ci-book table caption,
.ci-book .ci-book-caption {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment