mpdf.css 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. /* LISTS */
  2. /*
  3. A default margin-top/bottom for lists is NOT set in config.php - (standard browsers give outermost list a top and bottom margin).
  4. [mPDF default CSS set in config.php only works on basic elements, cannot do selectors such as "ol ol"]
  5. Need to add the following to do this, but also prevent margins in nested lists as per default HTML in most browsers:
  6. */
  7. ul, ol { margin-top: 0.83em; margin-bottom: 0.83em; }
  8. ul ul, ul ol, ol ul, ol ol { margin-top: 0; margin-bottom: 0; }
  9. /* INDEXES */
  10. div.mpdf_index_main {
  11. font-family: sans-serif;
  12. line-height: normal;
  13. }
  14. div.mpdf_index_entry {
  15. line-height: normal;
  16. text-indent: -1.5em;
  17. }
  18. div.mpdf_index_letter {
  19. font-family: sans-serif;
  20. font-size: 1.8em;
  21. font-weight: bold;
  22. line-height: normal;
  23. text-transform: uppercase;
  24. page-break-after: avoid;
  25. margin-top: 0.3em;
  26. margin-collapse: collapse;
  27. }
  28. a.mpdf_index_link {
  29. color: #000000;
  30. text-decoration: none;
  31. }
  32. /* TABLE OF CONTENTS */
  33. div.mpdf_toc {
  34. font-family: sans-serif;
  35. line-height: normal;
  36. }
  37. a.mpdf_toc_a {
  38. text-decoration: none;
  39. color: black;
  40. }
  41. div.mpdf_toc_level_0 { /* Whole line level 0 */
  42. line-height: 1.5;
  43. margin-left: 0;
  44. padding-right: 0em; /* should match the outdent specified for ToC; 0 is default; suggested value 2em */
  45. }
  46. span.mpdf_toc_t_level_0 { /* Title level 0 - may be inside <a> */
  47. font-weight: bold;
  48. }
  49. span.mpdf_toc_p_level_0 { /* Page no. level 0 - may be inside <a> */
  50. }
  51. div.mpdf_toc_level_1 { /* Whole line level 1 */
  52. margin-left: 2em;
  53. text-indent: -2em;
  54. padding-right: 0em; /* should match the outdent specified for ToC; 0 is default; suggested value 2em */
  55. }
  56. span.mpdf_toc_t_level_1 { /* Title level 1 */
  57. font-style: italic;
  58. font-weight: bold;
  59. }
  60. span.mpdf_toc_p_level_1 { /* Page no. level 1 - may be inside <a> */
  61. }
  62. div.mpdf_toc_level_2 { /* Whole line level 2 */
  63. margin-left: 4em;
  64. text-indent: -2em;
  65. padding-right: 0em; /* should match the outdent specified for ToC; 0 is default; suggested value 2em */
  66. }
  67. span.mpdf_toc_t_level_2 { /* Title level 2 */
  68. }
  69. span.mpdf_toc_p_level_2 { /* Page no. level 2 - may be inside <a> */
  70. }