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 @@ ...@@ -159,9 +159,6 @@
.ci-book tr { .ci-book tr {
page-break-inside: avoid; page-break-inside: avoid;
} }
.ci-book img {
page-break-after: avoid;
}
.ci-book section:not(:last-child) { .ci-book section:not(:last-child) {
page-break-after: always; page-break-after: always;
page-break-inside: always; page-break-inside: always;
...@@ -427,7 +424,7 @@ ...@@ -427,7 +424,7 @@
/* opinionated align for content tables, overwrite in html if required */ /* 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 td,
.ci-book table:not(.ci-book-header):not(.ci-book-footer):not(.ci-book-table) tbody th { .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, .ci-book table:not(.ci-book-header):not(.ci-book-footer):not(.ci-book-table) tbody tr td:first-child,
...@@ -744,11 +741,17 @@ ...@@ -744,11 +741,17 @@
margin: 0 auto 0; margin: 0 auto 0;
padding-top: 20px; padding-top: 20px;
max-width: 240mm; 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 { .ci-book .ci-book-img + span {
text-align: center; margin-left: 3cm;
display: block;
} }
.ci-book table caption, .ci-book table caption,
.ci-book .ci-book-caption { .ci-book .ci-book-caption {
text-align: center; text-align: center;
......
...@@ -158,9 +158,7 @@ ...@@ -158,9 +158,7 @@
.ci-book pre { .ci-book pre {
page-break-inside: avoid; page-break-inside: avoid;
} }
.ci-book img {
page-break-after: avoid;
}
.ci-book section:not(:last-child) { .ci-book section:not(:last-child) {
page-break-after: always; page-break-after: always;
page-break-inside: always; page-break-inside: always;
...@@ -431,7 +429,7 @@ ...@@ -431,7 +429,7 @@
/* opinionated align for content tables, overwrite in html if required */ /* 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 td,
.ci-book table:not(.ci-book-header):not(.ci-book-footer):not(.ci-book-table) tbody th { .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, .ci-book table:not(.ci-book-header):not(.ci-book-footer):not(.ci-book-table) tbody tr td:first-child,
...@@ -748,10 +746,15 @@ ...@@ -748,10 +746,15 @@
margin: 0 auto 0; margin: 0 auto 0;
padding-top: 20px; padding-top: 20px;
max-width: 240mm; 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 { .ci-book .ci-book-img + span {
text-align: center; margin-left: 3cm;
display: block;
} }
.ci-book table caption, .ci-book table caption,
.ci-book .ci-book-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