prettify.css 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. /**
  2. * @license
  3. * Copyright (C) 2015 Google Inc.
  4. *
  5. * Licensed under the Apache License, Version 2.0 (the "License");
  6. * you may not use this file except in compliance with the License.
  7. * You may obtain a copy of the License at
  8. *
  9. * http://www.apache.org/licenses/LICENSE-2.0
  10. *
  11. * Unless required by applicable law or agreed to in writing, software
  12. * distributed under the License is distributed on an "AS IS" BASIS,
  13. * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  14. * See the License for the specific language governing permissions and
  15. * limitations under the License.
  16. */
  17. /* Pretty printing styles. Used with prettify.js. */
  18. /* SPAN elements with the classes below are added by prettyprint. */
  19. .pln { color: #000 } /* plain text */
  20. @media screen {
  21. .str { color: #080 } /* string content */
  22. .kwd { color: #008 } /* a keyword */
  23. .com { color: #800 } /* a comment */
  24. .typ { color: #606 } /* a type name */
  25. .lit { color: #066 } /* a literal value */
  26. /* punctuation, lisp open bracket, lisp close bracket */
  27. .pun, .opn, .clo { color: #660 }
  28. .tag { color: #008 } /* a markup tag name */
  29. .atn { color: #606 } /* a markup attribute name */
  30. .atv { color: #080 } /* a markup attribute value */
  31. .dec, .var { color: #606 } /* a declaration; a variable name */
  32. .fun { color: red } /* a function name */
  33. }
  34. /* Use higher contrast and text-weight for printable form. */
  35. @media print, projection {
  36. .str { color: #060 }
  37. .kwd { color: #006; font-weight: bold }
  38. .com { color: #600; font-style: italic }
  39. .typ { color: #404; font-weight: bold }
  40. .lit { color: #044 }
  41. .pun, .opn, .clo { color: #440 }
  42. .tag { color: #006; font-weight: bold }
  43. .atn { color: #404 }
  44. .atv { color: #060 }
  45. }
  46. /* Put a border around prettyprinted code snippets. */
  47. pre.prettyprint { padding: 2px; border: 1px solid #888 }
  48. /* Specify class=linenums on a pre to get line numbering */
  49. ol.linenums { margin-top: 0; margin-bottom: 0 } /* IE indents via margin-left */
  50. li.L0,
  51. li.L1,
  52. li.L2,
  53. li.L3,
  54. li.L5,
  55. li.L6,
  56. li.L7,
  57. li.L8 { list-style-type: none }
  58. /* Alternate shading for lines */
  59. li.L1,
  60. li.L3,
  61. li.L5,
  62. li.L7,
  63. li.L9 { background: #eee }
  64. li.L0, li.L1, li.L2, li.L3,
  65. li.L5, li.L6, li.L7, li.L8
  66. { list-style-type: decimal !important }