prettify.css 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. /* Pretty printing styles. Used with prettify.js. */
  2. /* SPAN elements with the classes below are added by prettyprint. */
  3. .pln { color: #000 } /* plain text */
  4. @media screen {
  5. .str { color: #080 } /* string content */
  6. .kwd { color: #008 } /* a keyword */
  7. .com { color: #800 } /* a comment */
  8. .typ { color: #606 } /* a type name */
  9. .lit { color: #066 } /* a literal value */
  10. /* punctuation, lisp open bracket, lisp close bracket */
  11. .pun, .opn, .clo { color: #660 }
  12. .tag { color: #008 } /* a markup tag name */
  13. .atn { color: #606 } /* a markup attribute name */
  14. .atv { color: #080 } /* a markup attribute value */
  15. .dec, .var { color: #606 } /* a declaration; a variable name */
  16. .fun { color: red } /* a function name */
  17. }
  18. /* Use higher contrast and text-weight for printable form. */
  19. @media print, projection {
  20. .str { color: #060 }
  21. .kwd { color: #006; font-weight: bold }
  22. .com { color: #600; font-style: italic }
  23. .typ { color: #404; font-weight: bold }
  24. .lit { color: #044 }
  25. .pun, .opn, .clo { color: #440 }
  26. .tag { color: #006; font-weight: bold }
  27. .atn { color: #404 }
  28. .atv { color: #060 }
  29. }
  30. /* Put a border around prettyprinted code snippets. */
  31. pre.prettyprint { padding: 2px; border: 1px solid #888 }
  32. /* Specify class=linenums on a pre to get line numbering */
  33. ol.linenums { margin-top: 0; margin-bottom: 0 } /* IE indents via margin-left */
  34. li.L0,
  35. li.L1,
  36. li.L2,
  37. li.L3,
  38. li.L5,
  39. li.L6,
  40. li.L7,
  41. li.L8 { list-style-type: none }
  42. /* Alternate shading for lines */
  43. li.L1,
  44. li.L3,
  45. li.L5,
  46. li.L7,
  47. li.L9 { background: #eee }