prettify-cmd.css 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  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. /* Specify class=linenums on a pre to get line numbering */
  19. ol.linenums { margin-top: 0; margin-bottom: 0; color: rgba(102, 128, 153, 0.4) } /* IE indents via margin-left */
  20. ol.linenums { margin-left: 35px;}
  21. ol.linenums > li { padding-left: 15px;}
  22. pre.prettyprint {
  23. display: block;
  24. background-color: rgba(102, 128, 153, 0.05);
  25. box-shadow: 0 1px 2px rgba(255, 255, 255, 0.1) inset, 45px 0 0 rgba(102, 128, 153, 0.05) inset, 0 1px 0 rgba(102, 128, 153, 0.05);
  26. padding: 9.5px;
  27. }
  28. /* li.L0, li.L1, li.L2, li.L3, li.L5, li.L6, li.L7, li.L8 { list-style-type: none } */
  29. /* Alternate shading for lines */
  30. li.L1, li.L3, li.L5, li.L7, li.L9 { }
  31. /* Use higher contrast and text-weight for printable form. */
  32. @media print, projection {
  33. .str { color: #060 }
  34. .kwd { color: #006; font-weight: bold }
  35. .com { color: #600; font-style: italic }
  36. .typ { color: #404; font-weight: bold }
  37. .lit { color: #044 }
  38. .pun, .opn, .clo { color: #440 }
  39. .tag { color: #006; font-weight: bold }
  40. .atn { color: #404 }
  41. .atv { color: #060 }
  42. }