User Tools

Site Tools


help:wiki:dwpdf_styles

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
help:wiki:dwpdf_styles [2021/11/30 14:58]
gerhard created
help:wiki:dwpdf_styles [2021/11/30 15:10] (current)
gerhard [DWPDF Styling]
Line 18: Line 18:
  
 ====== DWPDF Styling ====== ====== DWPDF Styling ======
 +
 +<WRAP center round info 60%>
 +info box
 +</WRAP>
 +
 +
 +===== Style CSS =====
 +
 +
 +<code css style.css>
 +/* @import '../../../../../conf/userstyle.css'; */
 +@import 'userstyle.css';
 +
 +/*.wrap_third, .code {
 +  border: solid 0.5mm #DDDDDD;
 +  padding: 2mm;
 +  border-radius: 2mm 2mm;
 +  width: 100%;
 +}*/
 +
 +.code {
 +  background-color: #EEEEEE;
 +  border-radius: 2mm 2mm;
 +}
 +
 +table, th, td {
 + padding: 5px;
 + padding-right: 10px;
 + padding-left: 10px;
 +}
 +
 +table {
 +    width: 100%;
 +}
 +
 +th {
 +    background-color: #E8E8E8;
 +}
 +
 +p, ul, ol, td  {
 +    font-size: 9pt;
 +}
 +
 +/*added by jattie on Sunday 17 Feb 2019 to decrease font size of pdf code sections*/
 +.code {
 +    font-size: 80%;
 +}
 +
 +/*added by jattie on Mon 4 March to force code comment green printing*/
 +.code .co1, .code .co2 { color: #008000; }
 +
 +/*  Added by Jattie on 5 Dec 2017 to round announcement box headers*/
 +.wrap_round h2,
 +.wrap_round h3,
 +.wrap_round h4,
 +.wrap_round h5 {
 +    border-radius: 1.1em 1.1em 0em 0em;
 +}
 +
 +table.pdfheader {
 +    font-size: 8pt;
 +    border-collapse: collapse;
 +    border-bottom: 1px solid #000000;
 +    clear: both;
 +}
 +
 +table.pdffooter {
 +    font-size: 8pt;
 +    border-collapse: collapse;
 +    border-top: 1px solid #000000;
 +    clear: both;
 +}
 +
 +/* Table of Content -- see http://mpdf1.com/manual/index.php?tid=243 */
 +div.mpdf_toc {
 +}
 +a.mpdf_toc_a {
 +    color: black; /* links black as well */
 +}
 +/* Whole line level 0 */
 +div.mpdf_toc_level_0 {
 +    line-height: 1.5;
 +    margin-left: 0;
 +    padding-right: 1em; /* padding-right should match e.g <dottab outdent="2em" /> 0 is default */
 +}
 +/* Title level 0 - may be inside <a> */
 +span.mpdf_toc_t_level_0 {
 +}
 +/* Page no. level 0 - may be inside <a> */
 +span.mpdf_toc_p_level_0 {
 +}
 +/* Whole line level 1 */
 +div.mpdf_toc_level_1 {
 +    margin-left: 1em;
 +    text-indent: -1em;
 +    padding-right: 1em; /* padding-right should match <dottab outdent="2em" /> 2em is default */
 +}
 +/* Title level 1 */
 +span.mpdf_toc_t_level_1 {
 +}
 +/* Page no. level 1 - may be inside <a> */
 +span.mpdf_toc_p_level_1 {
 +}
 +/* level 2 */
 +div.mpdf_toc_level_2 {
 +    margin-left: 2em;
 +    text-indent: -1em;
 +    padding-right: 1em; /* padding-right should match <dottab outdent="2em" /> 2em is default */
 +}
 +span.mpdf_toc_t_level_2 {}
 +span.mpdf_toc_p_level_2 {}
 +
 +/* level 3 */
 +div.mpdf_toc_level_3 {
 +    margin-left: 3em;
 +    text-indent: -1em;
 +    padding-right: 1em; /* padding-right should match <dottab outdent="2em" /> 2em is default */
 +}
 +span.mpdf_toc_t_level_3 {}
 +span.mpdf_toc_p_level_3 {}
 +
 +/* level 4 */
 +div.mpdf_toc_level_4 {
 +    margin-left: 4em;
 +    text-indent: -1em;
 +    padding-right: 1em; /* padding-right should match <dottab outdent="2em" /> 2em is default */
 +}
 +span.mpdf_toc_t_level_4 {}
 +span.mpdf_toc_p_level_4 {}
 +
 +</code>
 +
 +===== Userstyle CSS =====
  
 <code css userstyle.css> <code css userstyle.css>
help/wiki/dwpdf_styles.1638284300.txt.gz ยท Last modified: 2021/11/30 14:58 by gerhard