Advertisement
Guest User

Default Export to PDF CSS

a guest
Oct 28th, 2022
176
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
CSS 12.39 KB | Source Code | 0 0
  1. @page
  2. {
  3.     margin: 0.5in;
  4.     padding: 1em;
  5.     @top-left
  6.     {
  7.         content: element(header);
  8.     }
  9.     @bottom-left
  10.     {
  11.         content: element(footer);
  12.     }
  13. }
  14.  
  15. @page title
  16. {
  17.     margin: 0.5in;
  18.     padding: 1em;  
  19.    
  20.     @top-left
  21.     {        
  22.     }
  23.     @bottom-left
  24.     {        
  25.     }
  26. }
  27.  
  28. a
  29. {
  30.     text-decoration:none;
  31. }
  32.  
  33. div.titlepage,div.toc
  34. {
  35.     page:title;    
  36. }
  37.  
  38. img
  39. {
  40.    page-break-inside: avoid;
  41.    -fs-fit-images-to-width:6in;
  42. }
  43.  
  44. table.lozenge
  45. {
  46.    page-break-inside: avoid;
  47. }
  48.  
  49. table.confluenceTable tr
  50. {
  51.     page-break-inside: avoid;
  52. }
  53.  
  54. body
  55. {
  56.     margin: 0;
  57.     padding: 0;
  58.     font-family: ConfluenceInstalledFont, Helvetica, Arial, sans-serif;
  59. }
  60.  
  61. a, #default-labels-header a.add
  62. {
  63.     color:#003366;
  64. }
  65.  
  66. /* list numbering */
  67. .wiki-content ol, .wiki-content ol ol ol ol, .wiki-content ol ol ol ol ol ol ol, .wiki-content ol ol ol ol ol ol ol ol ol ol
  68. {
  69. list-style-type:decimal;
  70. }
  71.  
  72. .wiki-content ol ol, .wiki-content ol ol ol ol ol, .wiki-content ol ol ol ol ol ol ol ol, .wiki-content ol ol ol ol ol ol ol ol ol ol ol
  73. {
  74.     list-style-type:lower-alpha;
  75. }
  76.  
  77. .wiki-content ol ol ol, .wiki-content ol ol ol ol ol ol, .wiki-content ol ol ol ol ol ol ol ol ol, .wiki-content ol ol ol ol ol ol ol ol ol ol ol ol
  78. {
  79.     list-style-type:lower-roman;
  80. }
  81.  
  82. .wiki-content ul
  83. {
  84.     list-style-type:disc;
  85. }
  86.  
  87. /* table view for several macros*/
  88. .tableview td
  89. {
  90.     border-color:#CCCCCC;
  91.     border-style:solid;
  92.     border-width:0 0 1px;
  93.     margin:0;
  94.     padding:4px 10px 4px 5px;
  95.     text-align:left;
  96. }
  97.  
  98. /* built in gallery macro */
  99. div.gallery>table
  100. {
  101.     display: table-cell;
  102. }
  103.  
  104. div.gallery>table>tr
  105. {
  106.     display: inline;
  107. }
  108.  
  109. div.gallery>table>tr>td
  110. {
  111.     display: inline;
  112. }
  113.  
  114. div.gallery>table>tr>th
  115. {
  116.     display: inline;
  117. }
  118.  
  119. div.gallery>table>tr:first-child
  120. {
  121.     display: block;
  122. }
  123.  
  124. pre
  125. {
  126.     white-space: pre-wrap;
  127. }
  128.  
  129. table
  130. {
  131.     border-collapse: collapse;
  132. }
  133.  
  134. div.panelMacro
  135. {
  136.     page-break-inside: avoid;
  137. }
  138.  
  139. th.confluenceTh
  140. {
  141.     color: #003366;
  142.     background-color: #f0f0f0;
  143. }
  144.  
  145. /* wraps the section columns underneath each other so they don't run off the page */
  146. table.sectionMacro
  147. {
  148.     display: block;
  149. }
  150.  
  151. table.sectionMacro>tbody
  152. {
  153.     display: block;
  154. }
  155.  
  156. table.sectionMacro>tbody>tr
  157. {
  158.     display: block;
  159. }
  160.  
  161. table.sectionMacro>tbody>tr>td
  162. {
  163.     display: block;
  164. }
  165.  
  166. table.sectionMacro>tbody>tr>td
  167. {
  168.     width: 100%
  169. }
  170.  
  171. table.sectionMacroWithBorder
  172. {
  173.     display: block;
  174. }
  175.  
  176. table.sectionMacroWithBorder>tbody
  177. {
  178.     display: block;
  179. }
  180.  
  181. table.sectionMacroWithBorder>tbody>tr
  182. {
  183.     display: block;
  184. }
  185.  
  186. table.sectionMacroWithBorder>tbody>tr>td
  187. {
  188.     display: block;
  189. }
  190.  
  191. table.sectionMacroWithBorder>tbody>tr>td
  192. {
  193.    /* why 99 you ask? because the right border won't show in the export up if it's 100 */
  194.     width: 99%
  195. }
  196.  
  197. body.content-preview
  198. {
  199.     background-color: #fff;
  200.     border: none;
  201. }
  202.  
  203. body,p,li,td,table,tr,.bodytext,.stepfield
  204. {
  205.     font-size: 8pt;
  206.     /*line-height: 1.1;*/
  207.     color: #000;
  208.     font-weight: normal;
  209. }
  210. .print-only
  211. {
  212.     display: none;
  213. }
  214.  
  215. .monospaceInput
  216. {
  217.     font: 10pt monospace;
  218. }
  219.  
  220. pre
  221. {
  222.     padding: 0;
  223.     margin: 10px 0;
  224.     text-align: left;
  225.     overflow: auto;
  226. }
  227.  
  228. a.grey:link
  229. {
  230.     color: #666;
  231. }
  232.  
  233. a.grey:visited
  234. {
  235.     color: #666;
  236. }
  237.  
  238. a.grey:active
  239. {
  240.     color: #666;
  241. }
  242.  
  243. a.grey:hover
  244. {
  245.     color: #666;
  246. }
  247.  
  248. hr
  249. {
  250.     color: #3c78b5;
  251.     height: 1px;
  252. }
  253.  
  254. h1 a:link,h1 a:visited,h1 a:active
  255. {
  256.     text-decoration: none;
  257. }
  258.  
  259. h1,h2,h3,h4,h5,h6,h7,h8,h9
  260. {
  261.     line-height: normal;
  262.     font-weight: bold;
  263.     padding: 2px;
  264. }
  265.  
  266. h1
  267. {
  268.     font-size: 26px;
  269.     margin: 36px 0 4px 0;
  270. }
  271.  
  272. h2
  273. {
  274.     font-size: 20px;
  275.     margin: 27px 0 4px 0;
  276. }
  277.  
  278. h3
  279. {
  280.     font-size: 18px;
  281.     margin: 21px 0 4px 0;
  282. }
  283.  
  284. h4
  285. {
  286.     font-size: 16px;
  287.     margin: 18px 0 4px 0;
  288. }
  289.  
  290. h5
  291. {
  292.     font-size: 14px;
  293.     margin: 14px 0 4px 0;
  294. }
  295.  
  296. h6
  297. {
  298.     font-size: 12px;
  299.     margin: 14px 0 4px 0;
  300.     display: block;
  301. }
  302.  
  303. h7
  304. {
  305.     font-size: 12px;
  306.     margin: 14px 0 4px 0;
  307.     display: block;
  308.     font-style: italic;
  309. }
  310.  
  311. h8
  312. {
  313.     font-size: 10px;
  314.     margin: 14px 0 4px 0;
  315.     display: block;
  316. }
  317.  
  318. h9
  319. {
  320.     font-size: 10px;
  321.     font-style: italic;
  322.     margin: 14px 0 4px 0;
  323.     display: block;
  324. }
  325.  
  326. .grid
  327. {
  328.     margin: 2px 0 5px 0;
  329.     border-collapse: collapse;
  330. }
  331.  
  332. .grid th
  333. {
  334.     border: 1px solid #ccc;
  335.     padding: 2px 4px 2px 4px;
  336.     background: #f0f0f0;
  337.     text-align: center;
  338. }
  339.  
  340. .grid td
  341. {
  342.     border: 1px solid #ccc;
  343.     padding: 3px 4px 3px 4px;
  344. }
  345.  
  346. .gridHover
  347. {
  348.     background-color: #f9f9f9;
  349. }
  350.  
  351. td.infocell
  352. {
  353.     background-color: #f0f0f0;
  354. }
  355.  
  356.  
  357. /* block quote */
  358. blockquote
  359. {
  360.     font-style: italic;
  361.     border-left-width: 1px;
  362.     border-left-style: solid;
  363.     padding: 0 20px;
  364.     margin: 10px 20px;
  365. }
  366.  
  367.  
  368. blockquote em
  369. {
  370.     font-style: normal;
  371. }
  372.  
  373. table.admin
  374. {
  375.     margin: 5px;
  376.     border-collapse: collapse;
  377.     width: 100%;
  378. }
  379.  
  380. table.admin td,table.admin th
  381. {
  382.     width: 50%;
  383.     border: 1px solid #ccc;
  384.     padding: 5px;
  385.     vertical-align: top;
  386. }
  387.  
  388. table.admin th
  389. {
  390.     background-color: #f0f0f0;
  391.     text-align: right;
  392.     font-weight: bold;
  393. }
  394.  
  395. table.admin td.controls
  396. {
  397.     text-align: center;
  398. }
  399.  
  400. div.small
  401. {
  402.     font-size: 9px;
  403. }
  404.  
  405. h1.pagetitle
  406. {
  407.     page-break-before: always;
  408. }
  409.  
  410. h1.pagename
  411. {
  412.     margin-top: 0;
  413. }
  414.  
  415. span.toclead:before
  416. {
  417.     content: leader(dotted);
  418. }
  419.  
  420. span.tocnum:before
  421. {
  422.     content: target-counter(attr(href), page, decimal );
  423. }
  424.  
  425. div.toc
  426. {
  427.     page-break-after: always;
  428.     counter-reset: chapter 0;
  429. }
  430.  
  431. div.toc a
  432. {
  433.     text-decoration: none;
  434.     color: black;    
  435. }
  436.  
  437. div.toclvl0:before
  438. {
  439.     content:  counter(chapter) ". ";
  440.     counter-increment: chapter;  /* Add 1 to chapter */
  441. }
  442.  
  443. div.toclvl0
  444. {
  445.     padding-left: 20px;
  446.     counter-reset: section 0;      /* Set section to 0 */
  447. }
  448.  
  449. div.toclvl1:before
  450. {
  451.     content:  counter(chapter) "." counter(section) " ";
  452.     counter-increment:section;
  453. }
  454.  
  455. div.toclvl1
  456. {
  457.     padding-left: 40px;
  458.     counter-reset: subsection 0;
  459. }
  460.  
  461. div.toclvl2:before
  462. {
  463.     content:  counter(chapter) "." counter(section) "." counter(subsection) " ";
  464.     counter-increment:subsection;
  465. }
  466.  
  467. div.toclvl2
  468. {
  469.     padding-left: 60px;
  470.     counter-reset: subsubsection 0;
  471. }
  472.  
  473. div.toclvl3:before
  474. {
  475.     content:  counter(chapter) "." counter(section) "." counter(subsection) "." counter(subsubsection)  " ";
  476.     counter-increment:subsubsection;
  477. }
  478.  
  479. div.toclvl3
  480. {
  481.     padding-left: 80px;
  482.     counter-reset: subsubsubsection 0;
  483. }
  484.  
  485. div.toclvl4:before
  486. {
  487.     content:  counter(chapter) "." counter(section) "." counter(subsection) "." counter(subsubsection)  "." counter(subsubsubsection) " ";
  488.     counter-increment:subsubsubsection;
  489. }
  490.  
  491. div.toclvl4
  492. {
  493.     padding-left: 100px;
  494. }
  495.  
  496. /* hide any toc items beyond lvl 4 */
  497. div.toclvl5, div.toclvl6, div.toclvl7,div.toclvl8,div.toclvl9,div.toclvl10,div.toclvl11,div.toclvl12
  498. {
  499.     display:none;
  500. }
  501.  
  502. span.pageName:before
  503. {
  504.     content: counter(page);
  505. }
  506.  
  507. /* title area of tables for certain bundled macros (favpages)*/
  508. .tabletitle, .heading-text-color
  509. {
  510.     color:#003366;
  511. }
  512.  
  513. .tabletitle, .pageSectionHeader
  514. {
  515.     border-bottom-color:#6699CC;
  516. }
  517.  
  518. .tabletitle
  519. {
  520.     border-bottom-style:solid;
  521.     border-bottom-width:2px;
  522.     font-weight:bold;
  523.     margin:8px 4px 2px 0;
  524.     padding:3px 0 2px;
  525. }
  526.  
  527. /* tabs */
  528. .tabnav, .comment .tabnav, ul.tabnav
  529. {
  530.     border-bottom-color:#6699CC;
  531. }
  532. .tabnav, .comment .tabnav
  533. {
  534.     border-bottom-style:solid;
  535.     border-bottom-width:1px;
  536.     display:inline;
  537.     float:left;
  538.     font-weight:bold;
  539.     list-style-position:outside;
  540.     margin:0;
  541.     padding:0;
  542.     width:100%;
  543. }
  544. .tabnav .tabs a:hover
  545. {
  546.     background:#003366 none repeat scroll 0 0;
  547.     border-color:#003366;
  548.     color:#FFFFFF;
  549. }
  550. .tabnav .tabs a:link, .tabnav .tabs a:visited
  551. {
  552.     color:#FFFFFF;
  553. }
  554. .tabnav .tabs a
  555. {
  556.     border-bottom:medium none;
  557.     border-style:solid solid none;
  558.     border-width:1px 1px medium;
  559.     display:block;
  560.     float:left;
  561.     margin:5px 3px 0 0;
  562.     padding:5px 5px 4px;
  563.     text-decoration:none;
  564. }
  565. .tabnav .tabs a
  566. {
  567.     background:#6699CC none repeat scroll 0 0;
  568.     border-color:#6699CC;
  569. }
  570. .tabnav .tabs a.current
  571. {
  572.     background:white none repeat scroll 0 0;
  573.     border-bottom:1px solid white;
  574.     color:black;
  575. }
  576. .tabnav li.tabs
  577. {
  578.     display:block;
  579.     float:left;
  580.     list-style-image:none;
  581.     list-style-position:outside;
  582.     list-style-type:none;
  583.     margin:0 0 -1px 10px;
  584. }
  585.  
  586. /* space list macro */
  587. tr.spaceList td
  588. {
  589.     border-bottom:1px solid #CCCCCC;
  590.     padding:5px 0 5px 5px;
  591.     vertical-align:top;
  592. }
  593. #spacesLabel
  594. {
  595.     float:left;
  596.     margin-top:5px;
  597.     padding:4px 6px;
  598. }
  599.  
  600.  
  601.  
  602. /*
  603. built in macro: popular-labels style = heatmap
  604. */
  605. .heatmap
  606. {
  607.     list-style-image:none;
  608.     list-style-position:outside;
  609.     list-style-type:none;
  610.     margin:0 auto;
  611.     width:95%;
  612. }
  613.  
  614. .heatmap li
  615. {
  616.     display:inline;
  617. }
  618.  
  619. .heatmap a
  620. {
  621.     text-decoration:none;
  622. }
  623.  
  624. /*
  625. built in macros: panel, code, info, note, warning, noformat, tip
  626. */
  627.  
  628. .noteMacro
  629. {
  630.     background-color:#FFFFCE;
  631. }
  632.  
  633.  
  634. .panelMacro
  635. {
  636.     margin:10px 20px;
  637.     overflow:hidden;
  638. }
  639.  
  640. .panelMacro table
  641. {
  642.     text-align:left;
  643.     width:100%;
  644.     padding:0px 20px;
  645. }
  646.  
  647. .panelMacro td
  648. {
  649.     font-size: 1em;
  650.     padding: 14px 7px;
  651. }
  652.  
  653. .panel
  654. {
  655.     border-color:#6699CC;
  656.     background:#F0F0F0 none repeat scroll 0 0;
  657.     border-style:solid;
  658.     border-width:1px;
  659.     color:black;
  660.     margin:10px 20px;
  661.     overflow:hidden;
  662.     padding:0;
  663.     page-break-inside: avoid;
  664. }
  665.  
  666. .codeHeader, .panelHeader, .panelContent {
  667.     background:#F0F0F0 none repeat scroll 0 0;
  668. }
  669.  
  670. .panelHeader {
  671.     border-bottom-style:solid;
  672.     border-bottom-width:1px;
  673.     line-height:2;
  674.     padding:0 12px;
  675.     text-align:center;
  676. }
  677.  
  678. .panelHeader, .menuheading, .pageheader, .sectionbottom
  679. {
  680.     border-bottom-color:#6699CC;
  681. }
  682.  
  683. .panelContent
  684. {
  685.     color:#000000;
  686.     font-size:0.95em;
  687.     margin:0;
  688.     padding:0 12px;
  689.     text-align:left;
  690.        
  691. }
  692.  
  693. .code, .preformatted
  694. {
  695.     background-color:#FFFFFF;
  696. }
  697.  
  698. .preformattedHeader, .codeContent, .preformattedContent
  699. {
  700.     background:#FFFFFF none repeat scroll 0 0;
  701. }
  702.  
  703. .code pre, .preformatted pre
  704. {
  705.     font-family:"Courier New",Courier,monospace;
  706.     line-height:1.3;
  707. }
  708.  
  709. pre
  710. {
  711.     margin:10px 0;
  712.     overflow:auto;
  713.     padding:0;
  714.     text-align:left;
  715.     page-break-inside: avoid;
  716. }
  717.  
  718. .code
  719. {
  720.     border-style:dashed;
  721.     border-width:1px;
  722.     overflow:auto;
  723.     page-break-inside: avoid;
  724. }
  725. .code-object
  726. {
  727.     background-color:inherit;
  728.     color:#910091;
  729. }
  730.  
  731. .code-keyword
  732. {
  733.     background-color:inherit;
  734.     color:#000091;
  735. }
  736. .code-tag
  737.  {
  738.     background-color:inherit;
  739.     color:#000091;
  740. }
  741.  
  742. .code-quote
  743. {
  744.     background-color:inherit;
  745.     color:#009100;
  746. }
  747.  
  748. .infoMacro
  749. {
  750.     background-color:#D8E4F1;
  751.     page-break-inside: avoid;
  752. }
  753.  
  754. .tipMacro
  755. {
  756.     background-color:#DDFFDD;
  757.     page-break-inside: avoid;
  758. }
  759.  
  760. .warningMacro
  761. {
  762.     background-color:#FFCCCC;
  763.     page-break-inside: avoid;
  764. }
  765.  
  766. .errorBox
  767.  {
  768.     background-color:#FFCCCC;
  769.     border:1px solid #CC0000;
  770.     margin:5px;
  771.     padding:5px;
  772. }
  773.  
  774. /* tables */
  775. table.sectionMacro td
  776. {
  777.     border:medium none;
  778. }
  779.  
  780. table
  781. {
  782.     clear:left;
  783. }
  784.  
  785. .wiki-content .confluenceTable, .grid
  786. {
  787.     margin:10px 0 10px 0;
  788.     padding:0;
  789. }
  790.  
  791. table.confluenceTable
  792.  {
  793.     border-collapse:collapse;
  794. }
  795.  
  796. th.confluenceTh, table.confluenceTable th.confluenceTh
  797. {
  798.     background-color:#F0F0F0;
  799.     border:1px solid #CCCCCC;
  800.     padding:5px;
  801.     text-align:left;
  802.     vertical-align:top;
  803. }
  804.  
  805. td.confluenceTd, table.confluenceTable td.confluenceTd
  806. {
  807.     border:1px solid #CCCCCC;
  808.     padding:5px;
  809.     vertical-align:top;
  810. }
  811.  
  812. .wiki-content td.confluenceTd, .wiki-content th.confluenceTh
  813. {
  814.     margin:0;
  815.     padding:0;
  816. }
  817.  
  818. .wiki-content td.confluenceTd
  819. {
  820.     padding-right:10px;
  821. }
  822.  
  823. .wiki-content td.confluenceTd, .wiki-content th.confluenceTh
  824.  {
  825.     margin:0;
  826.     padding:0;
  827. }
  828.  
  829. /* Attachments macro */
  830. table.attachments
  831. {
  832.     width: 100%;
  833. }
  834.  
  835. table.attachments th
  836. {
  837.     color:#003366;
  838.     border-bottom-style:solid;
  839.     border-bottom-width:2px;
  840.     font-weight:bold;
  841.    
  842. }
  843.  
  844. table.attachments a
  845. {
  846.     text-decoration: none;
  847.     color: black;
  848. }
  849.  
  850. /* expand user macro */
  851. .toggle-answer  
  852.  {  
  853.    display: block !important;  
  854.  }  
  855.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement